httpd wont start on a fresh DA install

beansbaxter

Verified User
Joined
Mar 17, 2004
Messages
218
Location
WA
I've installed DA before and have never experienced this before, no idea how to resolve this.

Brand new server. Running CentOS 5.9 with the latest DA. The install went fine.

But Apache is not running. I can ping the server IP fine. But when I point my browser at the IP address, I do not get the message saying Apache is running normally.

When I try to restart Apache, I get the OK for the stop, but not for the start.

I tried rebuilding Apache, but that didn't fix anything either.

I checked this error log:

Code:
/var/log/httpd/error_log

And it had:

Code:
[Wed Apr 24 11:29:01 2013] [notice] caught SIGTERM, shutting down
[Wed Apr 24 11:29:02 2013] [warn] RSA server certificate CommonName (CN) `localhost' does NOT match server name!?
[Wed Apr 24 11:29:02 2013] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Wed Apr 24 11:29:03 2013] [warn] RSA server certificate CommonName (CN) `localhost' does NOT match server name!?
[Wed Apr 24 11:29:03 2013] [notice] Apache/2.2.24 (Unix) mod_ssl/2.2.24 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17 configured -- resuming normal operations

How can I get httpd to start and have Apache running?

Thanks in advance.
 
[Wed Apr 24 11:29:02 2013] [warn] RSA server certificate CommonName (CN) `localhost' does NOT match server name!?
Check the file /etc/httpd/conf/ips.conf. It seems that in the VirtualHost settings, the ServerName doesn't match the actual server name.
 
How can I get httpd to start and have Apache running?

try

Code:
cd /usr/local/directadmin/custombuild
./build rewrite_confs

and re-start apache.

Then make sure, apache is running:

Code:
ps aux | grep -v grep | grep -E "httpd|apache"

and check open ports:

Code:
netstat -ntpl | grep httpd
 
For clarification, that "RSA server certificate CommonName" line is not the cause in any way, I'm having those on all DA boxes
 
Yes, indeed. I read on the Red Hat forums that the RSA notice is nothing to worry about.

Thanks!
 
I get the OK for the stop, but not for the start.
If you get OK when Apache stops, then it is running. If it's not running you'll get a failure for the stop.

So check to see what else if anything may be at fault.

Jeff
 
Back
Top