Question:
How do you restart Apache HTTPd in DirectAdmin/RHLinux website? It shows Apache is stopped. No restart button.
ApacheIndian
2005-12-26 13:19:54 UTC
Hi, Our wesite is down. The DirectAdmin's Server Information section shows that the Apache server 2.0.55 is ***stopped***. Any attempt to restart the httpd with the /sbin/service httpd restart is resulting in the following error. Any help is greatly appreciated.

Starting httpd: Syntax error on line 116 of /etc/httpd/conf/ssl.conf:
SSLCertificateKeyFile: file '/etc/httpd/conf/ssl.key/server.key' does not exist or is empty

I do not have root access! Our server is on RedHat Linux.
Thanks in advance,
Chakra.
Four answers:
Joel
2006-01-25 14:54:54 UTC
It looks like the ssl.conf configuration file in:



/etc/httpd/conf/ssl.conf



is looking for a key file tht doesn't exist in:



/etc/httpd/conf/ssl.key/



Check to see that the file exists or that the ssl.conf file is pointing to the right place. If you're not familiar with editing conf files, you may want to ask the person responsible for operations on the server to take a look.



From the Apache 2.0 documentation:



"If your configuration file has errors in it when you issue a restart then your parent will not restart, it will exit with an error. In the case of graceful restarts it will also leave children running when it exits. (These are the children which are "gracefully exiting" by handling their last request.) This will cause problems if you attempt to restart the server -- it will not be able to bind to its listening ports."



Here's the important part:



"Before doing a restart, you can check the syntax of the configuration files with the -t command line argument (see httpd). This still will not guarantee that the server will restart correctly. To check the semantics of the configuration files as well as the syntax, you can try starting httpd as a non-root user. If there are no errors it will attempt to open its sockets and logs and fail because it's not root (or because the currently running httpd already has those ports bound)."



"If it fails for any other reason then it's probably a config file error and the error should be fixed before issuing the graceful restart."



Hope this helps :)
2016-09-24 11:03:19 UTC
Restart Apache Httpd
?
2017-03-05 05:35:15 UTC
1
Danno_D_Manno
2006-01-08 21:00:31 UTC
I would try a linux help forums dite like http://www.linuxboards.org


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...