Why would I not have direct access to httpd.conf?
This question may not be appropriate as it mostly has to do with GoDaddy although I am using CPanel.
I recently setup my laptop as a server using Linux and Apache.
I had access to the httpd.conf file
I would open it up in pico and do as I please
GoDaddy, I have to edit within ranges? Like before and after the Virtual Host area?
Well I was blindly adding Virtual Hosts and I duplicated one of them, I thought to myself "hmm... it is currently working, is it bad to duplicate it?" Which in my linux apache setup I had duplicated virtual hosts before and I was able to get my server to run.
Now when I try to run the server after adding several virtual hosts I get this error :
I should note it takes like at least 10 seconds for the error to pop up saying restart failed. I would guess that it is stuck in a loop but I have no idea.
I just wish I could actually access the httpd.conf file. I don't know where it is. I read people saying "oh it's in your usr/local/..." but isn't that suggestion on my own computer?
I tried to use putty to access via SSH, I didn't even see an option to enter a password, so when I hit enter, it says connection refused.
I think the first line is what you want
Apache restart failed. Unable to load pid from pid file and no httpd process found in process list.
[COLOR="#FF0000">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:
[Sun Nov 30 11:04:03 2014] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Sun Nov 30 11:04:03 2014] [notice] suEXEC mechanism enabled (wrapper: /usr/local/apache/bin/suexec)
[Sun Nov 30 11:04:03 2014] [notice] ModSecurity for Apache/2.8.0 ([url=http://www.modsecurity.org/]ModSecurity: Open Source Web Application Firewall) configured.
[Sun Nov 30 11:04:03 2014] [notice] ModSecurity: APR compiled version="1.5.1"; loaded version="1.5.1"
[Sun Nov 30 11:04:03 2014] [notice] ModSecurity: PCRE compiled version="8.35 "; loaded version="8.35 2014-04-04"
[Sun Nov 30 11:04:03 2014] [notice] ModSecurity: LUA compiled version="Lua 5.1"
[Sun Nov 30 11:04:03 2014] [notice] ModSecurity: LIBXML compiled version="2.9.1.20140611"
[Sun Nov 30 11:04:03 2014] [notice] Status engine is currently disabled, enable it by set SecStatusEngine to On.
[Sun Nov 30 11:04:04 2014] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Sun Nov 30 11:04:04 2014] [notice] Apache/2.2.29 (Unix) mod_ssl/2.2.29 OpenSSL/1.0.1e-fips mod_bwlimited/1.4 configured -- resuming normal operations
[Sun Nov 30 11:19:38 2014] [notice] caught SIGTERM, shutting down
Thanks for any help Yeah I color coded it in red as in bad haha
Thanks for any help Yeah I color coded it in red as in bad haha
-
First of all can you confirm us whether you are having root SSH access of the server. If yes then give httpd -t command to check if there is any issue with apache config file. If it gives error then you have to resolve that first. If everything is Ok then try running below command. It will show some light on your issue. /usr/local/cpanel/scripts/ssl_crt_status If still you are facing the issue then try rebuilding apache /scripts/rebuildhttpdconf. This will definitely fix your issue 0 -
Hello :) The following document explains how to manually modify the Apache configuration file: Advanced Apache Configuration Feel free to open a support ticket using the link in my signature if you are unable to get Apache started. You can post the ticket number here so we can update this thread with the outcome. Thank you. 0
Please sign in to leave a comment.
Comments
2 comments