Web Hosting Talk







View Full Version : Cobalt apache won't start !!!


hoot
06-20-2002, 03:26 PM
Hi, I've got a raq3
I first installed the php 4.1.2 pkg from the cobalt-aid.sourceforge.net site and it then said that I needed a newer apache for it to work so I installed the apache update pkg from the same site. But I got an error that said something like :

SSL cert problem for site 2 , the certificate does not exist

I can not access the /admin, /siteadmin or /siteadmin but all other sites work
I have tried restarting the cobalt apache and I get the same error (
SSL cert problem for site 2 , the certificate does not exist) and apache doesn't start up.

Could someone please help me find a way to get it working again. I can not afford a restore as I'm with host europe and they charge £150 per restore, and for the price of the server it's not worth it, well not yet anyway.

I'm using the server for person use so I've not no real need for the cobalt admin system webadmin would be plenty but I've tried installing the pkg and it seems that port :1000 is also on the apache that doesn't work !

Please could someone please try and help me getting it to work again so that I can add sites again.
I don't know if it would work but if someone sent me their cabalt apache tared then would I be able to just delete my one and untar that one ...? Or how would I reinstall it or anything that would work ... I'm desperate and will try anything! Please help

jahsh
06-20-2002, 03:57 PM
that ssl error is something that we get too, but apache starts. is it just the control panel that isnt starting or is it all the webpages. if its the control panel, restart the admserv:
/etc/rc.d/init.d/admserv restart
if its apache try this:
/etc/rc.d/init.d/httpd stop
/etc/rc.d/init.d/httpd start
if you get an error about subsys locked try to remove the lock file:
rm /var/locks/subsys/httpd
and then restart apache.
check /var/log/httpd/error for what the possible problem might be.
good luck

hoot
06-20-2002, 04:05 PM
Hi it is the CP this is what I get :

[root@ns3 /root]# /etc/rc.d/init.d/admserv restart
Stopping admin web server:
Starting admin web server: Error: Apache has not been designed to serve pages while
running as root. There are known race conditions that
will allow any local user to read any file on the system.
If you still desire to serve pages as root then
add -DBIG_SECURITY_HOLE to the EXTRA_CFLAGS line in your
src/Configuration file and rebuild the server. It is
strongly suggested that you instead modify the User
directive in your httpd.conf file to list a non-root
user.
/usr/sbin/httpd

[root@ns3 /root]#

I'm just about to check the logs file but how do I do what it has told me to do above ?

hoot
06-20-2002, 04:13 PM
Here are the last lines in my log :

4999 Certificate files do not exist.
[Wed Jun 19 21:51:42 2002] [notice] Apache/1.3.20 Sun Cobalt (Unix) mod_ssl/2.8.4 OpenSSL/0.9.6b PHP/4.1.2 mod_auth_pam_external/0.1 FrontPage/4.0.4.3 mod_p$
[Wed Jun 19 21:51:42 2002] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Wed Jun 19 22:19:17 2002] [notice] caught SIGTERM, shutting down
Site site2 has invalid certificate: 4999 ssl_cant_files_missing
[Wed Jun 19 22:20:59 2002] [notice] Apache/1.3.20 Sun Cobalt (Unix) mod_ssl/2.8.4 OpenSSL/0.9.6b PHP/4.1.2 mod_auth_pam_external/0.1 FrontPage/4.0.4.3 mod_p$
[Wed Jun 19 22:20:59 2002] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Thu Jun 20 04:02:11 2002] [notice] SIGHUP received. Attempting to restart
Site site2 has invalid certificate: 4999 ssl_cant_files_missing
[Thu Jun 20 04:02:15 2002] [notice] Apache/1.3.20 Sun Cobalt (Unix) mod_ssl/2.8.4 OpenSSL/0.9.6b PHP/4.1.2 mod_auth_pam_external/0.1 FrontPage/4.0.4.3 mod_p$
[Thu Jun 20 04:02:15 2002] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
Site site2 has invalid certificate: 4999 Certificate files do not exist.
[Thu Jun 20 06:00:02 2002] [crit] (98)Address already in use: make_sock: could not bind to port 80
Site site2 has invalid certificate: 4999 Certificate files do not exist.
[Thu Jun 20 06:02:37 2002] [crit] (98)Address already in use: make_sock: could not bind to port 80


Is this any help ? But it seems that the bit about having to change the apache user seems more likly... andy ideas ?
Thanks in advance

blacknight
06-20-2002, 07:26 PM
try rebooting the server if you cannot get rid of the lockfile. I had a similar problem some time back and the only solution was to reboot. It might be nasty, but it worked

hoot
06-21-2002, 12:56 AM
I've already rebooted, but it doesn't help, it's the error above I've got to get rid of :)

hoot
06-21-2002, 01:46 PM
Can anyone help ? what user is the httpd.conf supposed to be for the cobalt adminserv apache ? is it "nobody", "apache", "admin", "cobalt" ... ???

Hoot

Jason_Berresford
06-21-2002, 01:49 PM
httpd 3306 0.0 2.7 21104 14304 ? S 12:46 0:02 /usr/sbin/httpd -f /etc/httpd/conf/httpd.conf


So user httpd

hoot
06-21-2002, 03:47 PM
I'll try changing the chown to httpd and see if it starts :)

jahsh
06-21-2002, 05:10 PM
make sure you have this in your httpd.conf for user and group:
User httpd
Group httpd

hoot
06-22-2002, 07:44 AM
Well I'm just about to try this :

cd /etc/admserv/conf

chown -R httpd httpd.conf
chgrp -R httpd httpd.conf

I hope it helps !

hoot
06-22-2002, 07:53 AM
Well it hasn't chaged anything ! I still get :

[root@ns3 /root]# /etc/rc.d/init.d/admserv restart
Stopping admin web server:
Starting admin web server: Error: Apache has not been designed to serve pages while
running as root. There are known race conditions that
will allow any local user to read any file on the system.
If you still desire to serve pages as root then
add -DBIG_SECURITY_HOLE to the EXTRA_CFLAGS line in your
src/Configuration file and rebuild the server. It is
strongly suggested that you instead modify the User
directive in your httpd.conf file to list a non-root
user.
/usr/sbin/httpd


Anyideas what to do next ?