Apache is running but no sites are loading

mainswitch

Verified User
Joined
Jan 9, 2004
Messages
44
Hello

1 server with directadmin stop working after reboot.

Apache is running
we can ping the server
customapache ./build all is done

but no sites are loading AND !!!

even no site or page when you use the server ip.

normaly you see the shared ip page but Nothing.

on the server is van ping, trace, nslookup everything.
from outside i can also ping, trace and nslookup to the server

no firewall is running and iptables are off.

does somebody knows how to fix this?

thnx

Paul
 
Can't suggest a fix until we know what's wrong.

What's the output of:

$ ps waux | grep httpd

Do you have a text-based browser on your system (lynx, links, elinks)?

If not install one.

Then try the following:

$ lynx localhost

(replacing "links" with the name of the text-based browser you installed)

What output do you get?

Jeff
 
ps aux output

apache 3765 0.0 5.5 40012 28264 ? S 19:18 0:00 /usr/sbin/httpd -
DHAVE_PHP4 -DHAVE_MMAP_STATIC -DHAVE_VHOST_ALIAS -DHAVE_ENV -DHAVE_DEFINE -DHAVE
_LOG_CONFIG -DHAVE_LOG_AGENT -DHAVE_LOG_REFERER -DHAVE_MIME_MAGIC -DHAVE_MIME -D
HAVE_NEGOTIATION -DHAVE_STATUS -DHAVE_INFO -DHAVE_INCLUDE -DHAVE_AUTOINDEX -DHAV
apache 3767 0.0 5.5 40012 28264 ? S 19:18 0:00 /usr/sbin/httpd -
DHAVE_PHP4 -DHAVE_MMAP_STATIC -DHAVE_VHOST_ALIAS -DHAVE_ENV -DHAVE_DEFINE -DHAVE
_LOG_CONFIG -DHAVE_LOG_AGENT -DHAVE_LOG_REFERER -DHAVE_MIME_MAGIC -DHAVE_MIME -D
HAVE_NEGOTIATION -DHAVE_STATUS -DHAVE_INFO -DHAVE_INCLUDE -DHAVE_AUTOINDEX -DHAV
root 4009 0.0 0.1 4260 588 pts/1 S 19:19 0:00 grep httpd


so it's running

lynx localhost can't connect. !!! :(
 
Looking up localhost first
Looking up localhost
localhost
Making HTTP connection to localhost
Sending HTTP request.
HTTP request sent; waiting for response.
Retrying as HTTP0 request.
Looking up localhost
localhost
Making HTTP connection to localhost
Alert!: Unable to connect to remote host.

lynx: Can't access startfile http://localhost/
 
Last edited:
Hey,

First question would have to be "Why did you have to reboot?".

Second question would be "What was the last thing you did/worked on prior to the reboot?".

David
 
it stoped while server was running

so we rebooted the server to check it out.
maybe after reboot it will work

but nothing.

server runs 1000 sites (just domain parking)
nothing more.
 
Hey,

Do the log files give any info that might help?

What do they show?

David
 
Apache doesnt write log when this problem is going on.

totaly empty :(

so ps aux httpd is running

top = no httpd
lynx localhost 80 = no connection
by www = no connection

directadmin = apache is running


real strange

we formated the server allready and re-install everything
 
"so ps aux httpd is running" makes no sense; as "ps aux httpd" can't be running.

ps can be running. httpd can be running.

Can you post the output of "ps aux httpd"?

Jeff
 
New server New hardware

Same problem.


apache down but running on server

ps aux | grep httpd =

root 14963 0.0 5.5 38612 27952 ? S 09:43 0:02 /usr/sbin/httpd -DHAVE_LOG_CONFIG -DHAVE_PERL -DHAVE_FRONTPAGE -DHAVE_INCLUDE -DHAVE_PROXY -DHAVE_AUTH -DHAVE_LOG_REFERER -DHAVE_HEADERS -DHAVE_DEFINE -DHAVE_EXAMPLE -DHAVE_AUTOINDEX -DHAVE_MIME_MAGIC -DHAVE_IMAP -DHAVE_SPELING -DHAVE_ACTIONS -DHAVE_ASIS -DHAVE_SSL -DHAVE_LOG_AGENT -DHAVE_VHOST_ALIAS -DHAVE_UNIQUE_ID -DHAVE_USERTRACK -DHAVE_USERDIR -DHAVE_CGI -DHAVE_ACCESS -DHAVE_LOG_FORENSIC -DHAVE_EXPIRES -DHAVE_ALIAS -DHAVE_STATUS -DHAVE_AUTH_ANON -DHAVE_DIR -DHAVE_NEGOTIATION -DHAVE_MMAP_STATIC -DHAVE_INFO -DHAVE_SETENVIF -DHAVE_MIME -DHAVE_ENV -DHAVE_DIGEST -DHAVE_PHP4 -DHAVE_REWRITE -DHAVE_CERN_META
apache 14976 0.0 5.5 38612 27956 ? S 09:43 0:00 /usr/sbin/httpd -DHAVE_LOG_CONFIG -DHAVE_PERL -DHAVE_FRONTPAGE -DHAVE_INCLUDE -DHAVE_PROXY -DHAVE_AUTH -DHAVE_LOG_REFERER -DHAVE_HEADERS -DHAVE_DEFINE -DHAVE_EXAMPLE -DHAVE_AUTOINDEX -DHAVE_MIME_MAGIC -DHAVE_IMAP -DHAVE_SPELING -DHAVE_ACTIONS -DHAVE_ASIS -DHAVE_SSL -DHAVE_LOG_AGENT -DHAVE_VHOST_ALIAS -DHAVE_UNIQUE_ID -DHAVE_USERTRACK -DHAVE_USERDIR -DHAVE_CGI -DHAVE_ACCESS -DHAVE_LOG_FORENSIC -DHAVE_EXPIRES -DHAVE_ALIAS -DHAVE_STATUS -DHAVE_AUTH_ANON -DHAVE_DIR -DHAVE_NEGOTIATION -DHAVE_MMAP_STATIC -DHAVE_INFO -DHAVE_SETENVIF -DHAVE_MIME -DHAVE_ENV -DHAVE_DIGEST -DHAVE_PHP4 -DHAVE_REWRITE -DHAVE_CERN_META


at 00:11 httpd was restarted by server ?!?! and then DOWN

directadmin show me also that httpd is running
but no access at all....
 
Looks good from here at first glance.

Have you asked DA tech support to look into this for you?

Jeff
 
Back
Top