Web Hosting Talk







View Full Version : httpd doesnt start :(


thansnet
01-14-2004, 09:17 PM
I upgraded server RH7.3-psadump to RH9.0-psarestore
Plesk 6.0.2

After that httpd doesnt work :(

Apache error log at below



[root@ns1 psa]# tail /var/log/httpd/error_log
[Wed Jan 14 07:34:53 2004] [error] [client 216.88.158.142] File does not exist: /home/httpd/vhosts/default/htdocs/elbis_telasi_tek_bilgi.htm
[Wed Jan 14 07:36:07 2004] [error] [client 216.88.158.142] File does not exist: /home/httpd/vhosts/default/htdocs/anasayfa.htm
[Wed Jan 14 07:37:08 2004] [error] [client 216.88.158.142] File does not exist: /home/httpd/vhosts/default/htdocs/FoRuM
[Wed Jan 14 07:39:43 2004] [error] [client 216.88.158.142] File does not exist: /home/httpd/vhosts/default/htdocs/modules.php
[Wed Jan 14 07:40:36 2004] [error] [client 216.88.158.142] File does not exist: /home/httpd/vhosts/default/htdocs/modules.php
[Wed Jan 14 07:51:14 2004] [error] [client 216.88.158.142] File does not exist: /home/httpd/vhosts/default/htdocs/turkish
[Wed Jan 14 07:54:57 2004] [error] [client 64.68.82.30] File does not exist: /home/httpd/vhosts/default/htdocs/modules.php
[Wed Jan 14 08:00:08 2004] [warn] child process 7300 still did not exit, sending a SIGTERM
[Wed Jan 14 08:00:08 2004] [warn] child process 7302 still did not exit, sending a SIGTERM
[Wed Jan 14 08:00:09 2004] [notice] caught SIGTERM, shutting down

Nymix-CB
01-14-2004, 10:13 PM
/home/httpd/vhosts/default/htdocs/elbis_telasi_tek_bilgi.htm
/home/httpd/vhosts/default/htdocs/anasayfa.htm
/home/httpd/vhosts/default/htdocs/FoRuM
/home/httpd/vhosts/default/htdocs/modules.php
/home/httpd/vhosts/default/htdocs/modules.php
/home/httpd/vhosts/default/htdocs/turkish
/home/httpd/vhosts/default/htdocs/modules.php


Those files doesn't exist.

Steven
01-14-2004, 10:14 PM
that wouldnt be why its failing. thats just a 404 error

thansnet
01-14-2004, 10:29 PM
No
I think this apache problem.......
Apache stoped after that anytime nor worked.
many many times I used command /erc/rc.d/init.d/httpd start

But doesnt give error log... and doesnt start

What is the possible solution anybody.....

ringnebula
01-14-2004, 11:28 PM
If this is a cPanel box try running /usr/local/apache/bin/apachectl configtest and post the output here. This will check your apache config file for errors.
Are you sure that all apache processes have stopped? If there are hung apache processes they could still be bound to port 80 thus not allowing new processes to start.

Steven
01-14-2004, 11:31 PM
netstat -anp | grep 443
netstat -anp | grep 80

see if theres anything using those ports. have you tried rebooting the server?

choon
01-14-2004, 11:38 PM
Originally posted by ringnebula
If this is a cPanel box try running /usr/local/apache/bin/apachectl configtest and post the output here. This will check your apache config file for errors.

Originally posted by thansnet
I upgraded server RH7.3-psadump to RH9.0-psarestore
Plesk 6.0.2

:eek3:

Steven
01-14-2004, 11:57 PM
umm maybe a recompile of apache ?

ringnebula
01-15-2004, 12:09 AM
Originally posted by choon
:eek3:

I hate it when I forget to read the important part of the message.....

choon
01-15-2004, 12:31 AM
Originally posted by ringnebula
I hate it when I forget to read the important part of the message.....

<off topic>Same to me... happen to me most of the time :stickout: </off topic>

thansnet, have you try to restart your server and also the netstat output where the others are asking?

pang
01-15-2004, 01:08 AM
Have you checked your system log?

thansnet
01-15-2004, 01:38 AM
Hi
Yes I restarted my server.
I reinstalled psa-6.02 with
#rpm -Uvh --force psa-6.0.2 ......
after that again started apache .....
after 1-2 minute stoped.
I didnt success restart via /etc/rc.d/init.d/httpd start
It didnt send messages anywhere.....
http error logs at below...

I think I am newbie....
Is there any system admin to help with paying?



[Thu Jan 15 07:14:43 2004] [notice] caught SIGTERM, shutting down
[Thu Jan 15 07:21:46 2004] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Thu Jan 15 07:21:46 2004] [notice] Digest: generating secret for digest authentication ...
[Thu Jan 15 07:21:46 2004] [notice] Digest: done
[Thu Jan 15 07:21:47 2004] [notice] Apache/2.0.40 (Red Hat Linux) configured -- resuming normal operations
[Thu Jan 15 07:22:07 2004] [warn] child process 31770 still did not exit, sending a SIGTERM
[Thu Jan 15 07:22:07 2004] [warn] child process 31771 still did not exit, sending a SIGTERM
[Thu Jan 15 07:22:07 2004] [warn] child process 31772 still did not exit, sending a SIGTERM
[Thu Jan 15 07:22:07 2004] [warn] child process 31774 still did not exit, sending a SIGTERM
[Thu Jan 15 07:22:07 2004] [warn] child process 31775 still did not exit, sending a SIGTERM
[Thu Jan 15 07:22:07 2004] [warn] child process 31776 still did not exit, sending a SIGTERM
[Thu Jan 15 07:22:07 2004] [notice] caught SIGTERM, shutting down

blessen
01-15-2004, 01:46 AM
hi,

if you are using /etc/rc.d/init.d/httpd to restart apache.Then i would suggest you to use the option
====================
/etc/rc.d/init.d/httpd
Usage: httpd {start|stop|restart|condrestart|reload|status|fullstatus|graceful|help|configtest}
==================
/etc/rc.d/init.d/httpd configtest
The above option will give the details of all syntax error in httpd.conf

The logs for this will be there in the logs folder which is inside the httpd folder.Please check the error logs


If this i a cpanel box.he i would sugges you to do the folowiing

1) run the script /scripts/rebuildhttpdconf > /path to httpd.conf

2) run the scripts /scripts/easyapache ( select 6th option and procced )

and restart apache

This wil work :-D

if this is a simple box with linux and no control panel.tHne just do the following..

(1) Down load apache
(2) untar it

cd /usr/local/
tar zxf ../archives/httpd-2.0.40.tar.gz

3) cd to /usr/local/httpd-2.0.40 and execute the comand

./configure --prefix=/usr/local/apache --enable-module=so

make

make install


All the abov steps will install apache with dso modules enabled...


if you need more help.Just send a mail to blessen@blessen.com

Regards
blessen
Head of installation and Security department

blessen
01-15-2004, 02:01 AM
if its a plesk server

CHeck this out

Restarting apache (plesk)

==========================
For the RPM build:


/etc/rc.d/init.d/httpd stop

/etc/rc.d/init.d/httpd start
===============================

For the standard build:


/usr/local/psa/apache/bin/apachectl stop

/usr/local/psa/apache/bin/apachectl start

=-=================================

Or for both builds the /usr/local/psa/admin/bin/my_apci_rst utility can be run to restart Apache. This will update both the configuration files ie /etc/httpd/conf/httpd.conf and
/usr/local/psa/apache/conf/httpd.conf.


Log
====
Path to log folder :/usr/local/psa/apache/logs/

regards
Blessen

Head of installation and security department

Note: Post on my site for any help or mail to blessen@blessen.com( its free service )