ispCP - Board - Support
webserver down, cant find reasons - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: Usage (/forum-34.html)
+--- Thread: webserver down, cant find reasons (/thread-10528.html)



webserver down, cant find reasons - peman - 04-25-2010 05:16 PM

This morning our webserver was down for some reason. when surfing in to some webpage on the server or the admin controlpanel it showed "Internet Explorer cannot display the webpage", i tried to find the error logs, cant find them, which error logs am i supposed to read to see what´s happening with the server?

I first tried to restart apache2, didnt work so I just rebooted the server and after that it was up and running again, this is the second time that it has happen but last time was a couple of months ago, i just wanna know whats going on.

Help appriciated


RE: webserver down, cant find reasons - dcreation - 04-25-2010 05:48 PM

You can start with a:

cat /var/log/syslog | grep apache
and
/var/log/apache2/users/default-error.log

But, it is much more interesting why apache wont restart.
If happens for the next time try to stop it first:
/etc/init.d/apache2 stop
Wait a second.. then look at the processes:
ps aux | grep apache
to verify it is really down. Then try to start it and copy and paste the error-message Smile


RE: webserver down, cant find reasons - peman - 04-25-2010 06:13 PM

(04-25-2010 05:48 PM)dcreation Wrote:  You can start with a:

cat /var/log/syslog | grep apache
and
/var/log/apache2/users/default-error.log

But, it is much more interesting why apache wont restart.
If happens for the next time try to stop it first:
/etc/init.d/apache2 stop
Wait a second.. then look at the processes:
ps aux | grep apache
to verify it is really down. Then try to start it and copy and paste the error-message Smile

Hello and thank you for your reply Smile

Well, it gave me this:
Quote:portal2:/home/martin# cat /var/log/syslog | grep apache
Apr 25 06:40:02 portal2 /USR/SBIN/CRON[5744]: (www-data) CMD ([ -x /usr/lib/cgi-bin/awstats.pl -a -f /etc/awstats/awstats.conf -a -r /var/log/apache/access.log ] && /usr/lib/cgi-bin/awstats.pl -config=awstats -update >/dev/null)
Apr 25 06:50:02 portal2 /USR/SBIN/CRON[6188]: (www-data) CMD ([ -x /usr/lib/cgi-bin/awstats.pl -a -f /etc/awstats/awstats.conf -a -r /var/log/apache/access.log ] && /usr/lib/cgi-bin/awstats.pl -config=awstats -update >/dev/null)

Quote:portal2:/home/martin# cat /var/log/apache2/users/default-error.log
[Sun Apr 25 08:41:06 2010] [notice] Apache/2.2.3 (Debian) configured -- resuming normal operations
[Sun Apr 25 08:41:11 2010] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec)
[Sun Apr 25 08:42:01 2010] [notice] mod_fcgid: call /var/www/ispcp/gui/index.php with wrapper /var/www/fcgi/master/php5-fcgi-starter
[Sun Apr 25 08:42:01 2010] [notice] mod_fcgid: server /var/www/ispcp/gui/index.php(3059) started
[Sun Apr 25 08:50:14 2010] [error] [client 62.249.xx.xxx] Premature end of script headers: index.php
[Sun Apr 25 08:50:18 2010] [notice] mod_fcgid: process 3133 going graceful shutdown, sending SIGTERM
[Sun Apr 25 09:24:00 2010] [error] [client 211.65.xx.xx] Premature end of script headers: index.php
[Sun Apr 25 09:24:01 2010] [notice] mod_fcgid: process 3842 going graceful shutdown, sending SIGTERM
[Sun Apr 25 09:45:35 2010] [error] [client 211.65.xx.xx] Premature end of script headers: index.php
[Sun Apr 25 09:45:39 2010] [notice] mod_fcgid: process 3847 going graceful shutdown, sending SIGTERM

Can this logs explain something?

This mod_fcgid is antother problem i have, i think it is why every wordpress blogs recieves the Error 500 Internal Server Error! But i think i have to upgrade to Debian Lenny.

Too bad i didnt check if apache was running. I will come back next time it happens with why apache wont start.

Thank you


RE: webserver down, cant find reasons - gOOvER - 04-26-2010 02:45 AM

This is à Etch System. Please Upgrade to Lenny. Etch is tooooo old and are Not really good (and with 1.0.6 not longer) supported by ispCP Wink


RE: webserver down, cant find reasons - peman - 04-26-2010 08:11 PM

Ok, no wonder then Smile

I have backups on everything and its on a vmware so it shouldnt be any problems to go back.

Thanks!