Question

Apache Server not starting centos 7

Hi after i addedIncludeOptional sites-enabled/*.conf to /etc/httpd/conf/httpd.conf i have been getting this error Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
here is thesystemctl status httpd.service -l

Mar 03 04:00:31 centos-512mb-sfo1-01 httpd[2152]: httpd: Syntax error on line 354 of /etc/httpd/conf/httpd.conf: Could not open configuration file /etc/httpd/sites-enabled/example2.com.conf: No such file or directory

I’m guessing that /etc/httpd/sites-enabled/example2.com.conf is a symlink. If you run the following command:

ls -lah /etc/httpd/sites-enabled/example2.com.conf

it should output some info about the file and show you what it’s pointing to if it is indeed a symlink. Make sure that the path is valid and is of a file that does exist. If it isn’t, you can just delete it and recreate it properly: