Apache issues running website on VPS

Fiberoptck

Member
Feb 8, 2013
13
0
1
cPanel Access Level
Root Administrator
I recently restarted my VPS and received a "failed" on httpd service. below is what I found when I did a status check:

Code:
###@cp1 [/var/log]# /etc/init.d/httpd status

Looking up localhost
Making HTTP connection to localhost
Alert!: Unable to connect to remote host.

lynx: Can't access startfile http://localhost/whm-server-status
Now with this in mind I try to goto my domain quadralogix.com and get a 101 chrome error (which I am told is a error for when the server either refused the connection or the connection to the server breaks.) So my DNS is seeing the request and is routing as expected, but on the cp server it appears the httpd service is wacky but I don't understand where my issue is or what I can do to resolve it.

If I do a restart of httpd I get this as a error:

Code:
###@cp1 [/var/log]# /etc/init.d/httpd restart                                                    
Warning: DocumentRoot [/home/quadra/public_html/billing] does not exist
Warning: DocumentRoot [/home/quadra/public_html/billing] does not exist
Syntax error on line 397 of /usr/local/apache/conf/httpd.conf:
SSLCertificateFile: file '/etc/ssl/certs/billing.quadralogix.com.crt' does not exist or is empty
Now that information is way old and I have had no issues with apache in the past until today after I restarted the VPS. I can still access my WHM and cP with no issues using the cnames for my domain. Its only for the domian itself and any sub directories connected to it.

I am hoping someone has seen this issue before or knows how to fix it because I am confused. Any help I can get would be appreciated!

UPDATE: I attempted to goto webmail.quadralogix.com and it too has failed. I am under the impression that is something controlled by httpd as well and since that is goofed so will webmail access. my emails are still going to my outlook which is strange unless that is going thru something different.

When I restart Apache from cPanel I get this as a additional error:

Code:
Apache restart failed. Unable to load pid from pid file and no httpd process found in process list.

If apache restart reported success but it failed soon after, it may be caused by oddities with mod_ssl.

You should run /usr/local/cpanel/scripts/ssl_crt_status as part of your troubleshooting process. Pass it --help for more details.

Also be sure to examine apache's various log files.
Apache Restart Output:

Log:
[Tue Mar 12 09:14:54 2013] [notice] Graceful restart requested, doing restart
[Tue Mar 12 09:14:54 2013] [notice] Apache/2.2.23 (Unix) mod_ssl/2.2.23 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 configured -- resuming normal operations
[Tue Mar 12 09:24:38 2013] [error] [client 54.235.4.240] Invalid method in request \x16\x03\x01
[Tue Mar 12 09:24:38 2013] [error] [client 54.235.4.240] File does not exist: /usr/local/apache/htdocs/501.shtml
[Tue Mar 12 11:29:30 2013] [error] [client 66.249.74.184] File does not exist: /home/quadra/public_html/robots.txt
[Tue Mar 12 11:29:30 2013] [error] [client 66.249.74.184] File does not exist: /home/quadra/public_html/404.shtml
[Tue Mar 12 12:02:50 2013] [error] [client 63.169.196.254] File does not exist: /home/quadra/public_html/templates/bright-fury-v3-4/images/banner3.png, referer: http://www.quadralogix.com/index.php
[Tue Mar 12 12:02:50 2013] [error] [client 63.169.196.254] File does not exist: /home/quadra/public_html/404.shtml, referer: http://www.quadralogix.com/index.php
[Tue Mar 12 12:02:51 2013] [error] [client 63.169.196.254] File does not exist: /home/quadra/public_html/templates/bright-fury-v3-4/images/banner3.png, referer: http://www.quadralogix.com/index.php
[Tue Mar 12 12:02:51 2013] [error] [client 63.169.196.254] File does not exist: /home/quadra/public_html/404.shtml, referer: http://www.quadralogix.com/index.php
[Tue Mar 12 12:05:40 2013] [notice] caught SIGTERM, shutting down
Now I look in my root folder and they are there every single file it is stating is not in existence. Not sure if it would just be worth it to just BMR the VPS from my R1 backup and start over... any help/ insight would be of help.
 
Last edited:

arunsv84

Well-Known Member
Oct 20, 2008
373
1
68
127.0.0.1
cPanel Access Level
Root Administrator
As mentioned in log file the error is at the 397 line of /usr/local/apache/conf/httpd.conf. The error is due to the missing SSLCertificateFile location. You need to either create the file with the exact certificate contents (re install certificate from WHM)

OR

Open the config file "/usr/local/apache/conf/httpd.conf" using "vi" editor and comment the line 397 by putting a # symbol, save and quite, restart apache.

Cheers!!!