Job for httpd service failed because the control process exited with error code

0 votes

Hi Guys,

I installed httpd web server in my system. But when I tried to start its service, it shows me the below error.

$ systemctl restart httpd.service
Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.

How can I solve this error?

Apr 23, 2020 in Linux Administration by akhtar
• 38,260 points
45,599 views

2 answers to this question.

0 votes

Hi@akhtar,

This problem is caused due to SELinux. It is not allowing apache web server to start its service. Follow the below given steps.

$ getenforce
$ setenforce 0  
$ systemctl start  httpd.service

Hope this will work.

Hope this helps you!

To learn more about Linux, it's recommended to join Linux course online today.

Thanks.

answered Apr 23, 2020 by MD
• 95,460 points
0 votes
Hi guys

I was facing same problem as yours. Let's see how I have resolved this problem.

First login to your root server through SSH by using login and password.

First Command:-

$ sudo su

Second Command:-

$ sh /scripts/generate_hostname_ssl

Then 3rd command:-

$ systemctl status httpd.service -l

Now check it:-

$ journalctl -xe

Its done.
answered Nov 21, 2020 by anonymous
• 140 points

Related Questions In Linux Administration

0 votes
1 answer

Error saying "Failed to start httpd.service: Unit httpd.service not found."

Execute the following steps or make sure ...READ MORE

answered May 14, 2019 in Linux Administration by Kiara
37,974 views
0 votes
0 answers
0 votes
1 answer

Failed to start httpd.service: Unit httpd.service is masked.

Hi@akhtar, A masked service is used to prevent ...READ MORE

answered Apr 23, 2020 in Linux Administration by MD
• 95,460 points
14,303 views
+1 vote
1 answer

Termux Android code for phishing the page

Hey, @Vaibhav, After complete all the process and once ...READ MORE

answered Apr 27, 2020 in Linux Administration by Gitika
• 65,770 points

edited Apr 30, 2020 by Gitika 10,718 views
+1 vote
1 answer
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,034 views
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP