Hi after i added IncludeOptional 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
httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Thu 2016-03-03 04:00:31 EST; 1min 25s ago
Docs: man:httpd(8)
man:apachectl(8)
Process: 2153 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
Process: 2152 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
Main PID: 2152 (code=exited, status=1/FAILURE)
Mar 03 04:00:31 centos-512mb-sfo1-01 systemd[1]: Starting The Apache HTTP Server...
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
Mar 03 04:00:31 centos-512mb-sfo1-01 systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Mar 03 04:00:31 centos-512mb-sfo1-01 kill[2153]: kill: cannot find process ""
Mar 03 04:00:31 centos-512mb-sfo1-01 systemd[1]: httpd.service: control process exited, code=exited status=1
Mar 03 04:00:31 centos-512mb-sfo1-01 systemd[1]: Failed to start The Apache HTTP Server.
Mar 03 04:00:31 centos-512mb-sfo1-01 systemd[1]: Unit httpd.service entered failed state.
Mar 03 04:00:31 centos-512mb-sfo1-01 systemd[1]: httpd.service failed.
i have tried reinstalling httpd but it did not resolve the issue.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
I am also facing same issue while trying to start httpd
– The result is failed. Oct 05 12:33:02 localhost.localdomain systemd[1]: Unit httpd.service entered failed state. Oct 05 12:33:02 localhost.localdomain systemd[1]: httpd.service failed. Oct 05 12:33:03 localhost.localdomain polkitd[881]: Unregistered Authentication Agent for unix-process:7663:338694 (system bus name :1.138, object path /org/freedesktop/Poli Oct 05 12:33:04 localhost.localdomain NetworkManager[978]: <error> [1538722984.756558] [rdisc/nm-lndp-rdisc.c:241] send_rs(): (eno16777736): cannot send router solicitation: Oct 05 12:33:08 localhost.localdomain NetworkManager[978]: <error> [1538722988.767018] [rdisc/nm-lndp-rdisc.c:241] send_rs(): (eno16777736): cannot send router solicitation: Oct 05 12:33:12 localhost.localdomain NetworkManager[978]: <error> [1538722992.760824] [rdisc/nm-lndp-rdisc.c:241] send_rs(): (eno16777736): cannot send router solicitation: Oct 05 12:33:16 localhost.localdomain NetworkManager[978]: <error> [1538722996.760242] [rdisc/nm-lndp-rdisc.c:241] send_rs(): (eno16777736): cannot send router solicitation: Oct 05 12:33:20 localhost.localdomain NetworkManager[978]: <error> [1538723000.755711] [rdisc/nm-lndp-rdisc.c:241] send_rs(): (eno16777736): cannot send router solicitation: Oct 05 12:33:24 localhost.localdomain NetworkManager[978]: <error> [1538723004.759564] [rdisc/nm-lndp-rdisc.c:241] send_rs(): (eno16777736): cannot send router solicitation: Oct 05 12:33:28 localhost.localdomain NetworkManager[978]: <error> [1538723008.756734] [rdisc/nm-lndp-rdisc.c:241] send_rs(): (eno16777736): cannot send router solicitation: Oct 05 12:33:32 localhost.localdomain NetworkManager[978]: <error> [1538723012.760193] [rdisc/nm-lndp-rdisc.c:241] send_rs(): (eno16777736): cannot send router solicitation: Oct 05 12:33:36 localhost.localdomain NetworkManager[978]: <error> [1538723016.760556] [rdisc/nm-lndp-rdisc.c:241] send_rs(): (eno16777736): cannot send router solicitation: Oct 05 12:33:40 localhost.localdomain NetworkManager[978]: <error> [1538723020.755842] [rdisc/nm-lndp-rdisc.c:241] send_rs(): (eno16777736): cannot send router solicitation: Oct 05 12:33:44 localhost.localdomain NetworkManager[978]: <error> [1538723024.755955] [rdisc/nm-lndp-rdisc.c:241] send_rs(): (eno16777736): cannot send router solicitation: lines 1181-1221/1281 95%
{noformat}
my SE linux is Permisive.
Im getting the same error when restarting httpd.
Here are my details, also note, I created the folders, and edited the files as ROOT user. Is that ok.
httpd.service - The Apache HTTP Server Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled) Active: failed (Result: exit-code) since Thu 2016-09-22 19:06:47 UTC; 1min 30s ago Docs: man:httpd(8) man:apachectl(8) Process: 4926 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE) Process: 4925 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE) Main PID: 4925 (code=exited, status=1/FAILURE)
Sep 22 19:06:47 server2.detroitgrit.com httpd[4925]: (2)No such file or directory: AH02291: Cannot access directory ‘/etc/httpd/${APACHE_LOG_DIR}/’ for error log of vhost defined at /etc/httpd/sites-enabled/rovermarketing.com.conf:1 Sep 22 19:06:47 server2.detroitgrit.com httpd[4925]: (2)No such file or directory: AH02291: Cannot access directory ‘/var/www/detroitgrit.com/’ for error log of vhost defined at /etc/httpd/sites-enabled/detroitgrit.com.conf:1 Sep 22 19:06:47 server2.detroitgrit.com httpd[4925]: (2)No such file or directory: AH02291: Cannot access directory ‘/etc/httpd/${APACHE_LOG_DIR}/’ for error log of vhost defined at /etc/httpd/sites-enabled/avexpressions.com.conf:1 Sep 22 19:06:47 server2.detroitgrit.com httpd[4925]: AH00014: Configuration check failed Sep 22 19:06:47 server2.detroitgrit.com systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE Sep 22 19:06:47 server2.detroitgrit.com kill[4926]: kill: cannot find process “” Sep 22 19:06:47 server2.detroitgrit.com systemd[1]: httpd.service: control process exited, code=exited status=1 Sep 22 19:06:47 server2.detroitgrit.com systemd[1]: Failed to start The Apache HTTP Server. Sep 22 19:06:47 server2.detroitgrit.com systemd[1]: Unit httpd.service entered failed state. Sep 22 19:06:47 server2.detroitgrit.com systemd[1]: httpd.service failed.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.