Httpd.service - Apache Web Server Failed error

I install lamp someday before that time I face same problem then soomene help me to solve it but this happen again when I run 'sudo systemctl status httpd' Below picture rsult shown
Screenshot_2018-09-28_22-18-02
my httpd.conf https://pastebin.com/Ecr3dHH6
and php.ini https://pastebin.com/Psm8EMB1

Use

sudo journalctl -b0 -u httpd --no-pager

to see the complete error.

Then start fixing one by one. I would start with the error log location problem. Apache needs to have write access to that folder, and the folder needs to be there.

Screenshot_2018-09-28_23-27-24
many problem and don't know solution

I looks like your main problem is that /var/log/httpd is missing. All the other errors I've seen before, and they don't stop the startup. Run:

sudo mkdir /var/log/httpd

Then try starting apache again.

1 Like

Not so many. You need to read the error massages.

One error massage says that there is no httpd folder in /var/log . Create one! Also make sure the apache user ( normally http ) has write access to it.

1 Like

thanks all.Its works .I need to read error message properly

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.

Forum kindly sponsored by