- Plesk for Linux
Unable to start Apache.
The following errors may be found in
CONFIG_TEXT: httpd: Could not open configuration file /etc/httpd/conf/httpd.conf: No such file or directory
The file /etc/httpd/conf/httpd.conf is absent from the /etc/httpd/conf:
# locate /etc/httpd/conf/httpd.conf
# locate httpd.conf
Apache configuration files are in incorrect directory.
Connect to the server using SSH.
If /etc/httpd directory exists, back it up. For example:
# mv /etc/httpd /etc/httpd_bak
Rename the directory that contains httpd.conf to the original name, for example:
# mv /etc/httpd_new /etc/httpd
- Set correct permissions and ownership:
# chmod 755 /etc/httpd && chown root:root /etc/httpd
# chmod 755 /etc/httpd/conf && chown root:root /etc/httpd/conf
# chmod 644 /etc/httpd/conf/httpd.conf && chown root:root /etc/httpd/conf/httpd.conf