apache running but no website is displayed
Hi , I am new to openvz and was reading the forum since 2 days but can´t find an answer to my problem.Apache is running on my VE but no website can be displayed , if I do a lynx localhost I am waiting forever when lynx send the http request, and from outside the same problem, a timeout in the browser. I have double checked the httpd.conf for DocumentRoot etc. apache starts with only one process ( as root ) in the VE a tail -f /var/log/httpd/error_log gives back : [Thu Feb 07 01:55:17 2008] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) [Thu Feb 07 01:55:17 2008] [notice] Digest: generating secret for digest authentication ... [Thu Feb 07 02:16:20 2008] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) [Thu Feb 07 02:16:20 2008] [notice] Digest: generating secret for digest authentication ... [Thu Feb 07 15:19:51 2008] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) [Thu Feb 07 15:19:51 2008] [notice] Digest: generating secret for digest authentication ... [Thu Feb 07 15:23:14 2008] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) [Thu Feb 07 15:23:14 2008] [notice] Digest: generating secret for digest authentication .. My Serve has private IP 192.168.0.141 via dhcp , the VE has 192.168.0.18 The VE has access to the Internet and can ping local Network machines. If I do a telnet IP:80 from outside to the VE it connects but I can´t close the connection , I have to kill the process, same if I do a telnet localhost 80 on the VE. I have the VE with Centos 4.6 and Trixbox running uname -r gives me 2.6.18-53.1.4.el5.028stab053.4 /usr/sbin/httpd -V gives back Server version: Apache/2.0.59 Server built: Jan 14 2008 08:28:27 Server's Module Magic Number: 20020903:12 Server loaded: APR 0.9.4, APR-UTIL 0.9.4 Compiled using: APR 0.9.4, APR-UTIL 0.9.4 Architecture: 32-bit Server compiled with.... -D APACHE_MPM_DIR="server/mpm/prefork" -D APR_HAS_SENDFILE -D APR_HAS_MMAP -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled) -D APR_USE_SYSVSEM_SERIALIZE -D APR_USE_PTHREAD_SERIALIZE -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT -D APR_HAS_OTHER_CHILD -D AP_HAVE_RELIABLE_PIPED_LOGS -D HTTPD_ROOT="/etc/httpd" -D SUEXEC_BIN="/usr/sbin/suexec" -D DEFAULT_PIDLOG="logs/httpd.pid" -D DEFAULT_SCOREBOARD="logs/apache_runtime_status" -D DEFAULT_LOCKFILE="logs/accept.lock" -D DEFAULT_ERRORLOG="logs/error_log" -D AP_TYPES_CONFIG_FILE="conf/mime.types" -D SERVER_CONFIG_FILE="conf/httpd.conf" cat /proc/user_beancounters gives back : uid resource held maxheld barrier limit failcnt 108: kmemsize 1472056 1876068 11055923 11377049 0 lockedpages 0 1128 2048 2048 0 privvmpages 14166 15360 65536 69632 0 shmpages 4 4 21504 21504 0 dummy 0 0 0 0 0 numproc 32 39 340 340 0 physpages 8777 9589 0 2147483647 0 vmguarpages 0 0 33792 2147483647 0 oomguarpages 8777 9589 26112 2147483647 0 numtcpsock 13 14 360 360 0 numflock 0 2 188 206 0 numpty 0 1 16 16 0 numsiginfo 0 15 256 256 0 tcpsndbuf 124276 97444 1720320 2703360 0 tcprcvbuf 206952 281160 1720320 2703360 0 othersockbuf 29068 32004 1126080 2097152 0 dgramrcvbuf 0 244824 262144 262144 0 numothersock 16 20 360 360 0 dcachesize 0 0 3409920 3624960 0 numfile 987 1105 9312 9312 0 dummy 0 0 0 0 0 dummy 0 0 0 0 0 dummy 0 0 0 0 0 numiptent 10 10 128 128 0 0: kmemsize 4709647 5309199 2147483647 2147483647 0 lockedpages 0 0 2147483647 2147483647 0 privvmpages 25454 28585 2147483647 2147483647 0 shmpages 835 835 2147483647 2147483647 0 dummy 0 0 2147483647 2147483647 0 numproc 83 92 2147483647 2147483647 0 physpages 12277 12938 2147483647 2147483647 0 vmguarpages 0 0 2147483647 2147483647 0 oomguarpages 12277 12938 2147483647 2147483647 0 numtcpsock 19 21 2147483647 2147483647 0 numflock 4 9 2147483647 2147483647 0 numpty 1 1 2147483647 2147483647 0 numsiginfo 1 5 2147483647 2147483647 0 tcpsndbuf 178880 178880 2147483647 2147483647 0 tcprcvbuf 311296 131072 2147483647 2147483647 0 othersockbuf 89440 95740 2147483647 2147483647 0 dgramrcvbuf 0 362388 2147483647 2147483647 0 numothersock 76 80 2147483647 2147483647 0 dcachesize 0 0 2147483647 2147483647 0 numfile 1886 2068 2147483647 2147483647 0 dummy 0 0 2147483647 2147483647 0 dummy 0 0 2147483647 2147483647 0 dummy 0 0 2147483647 2147483647 0 numiptent 24 24 2147483647 2147483647 0 thank you for your answers Michael
Re: apache running but no website is displayed
I had the same problem and was just a annoyed but in doing some research on apaches bug traq i found its a /dev/urandom problem most the time. so do the following inside your ve and restart httpd and should work like a champ again at least it did for me rm /dev/urandom mknod --mode 444 /dev/urandom c 1 9 I hope that helps
Thank you for your help, it worked like a charm as you mentioned. Problem solved , of course https and sshd too. thank you !!