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 in Linux Administration by akhtar
• 11,270 points
113 views

1 answer 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.

 

answered Apr 23 by MD
• 24,500 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 13, 2019 in Linux Administration by Kiara
4,484 views
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 in Linux Administration by MD
• 24,500 points
75 views
0 votes
1 answer

Termux Android code for phishing the page

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

answered Apr 27 in Linux Administration by Gitika
• 29,690 points

edited Apr 30 by Gitika 290 views
0 votes
1 answer
0 votes
1 answer
+13 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 26, 2018 in DevOps & Agile by DragonLord999
• 8,420 points
498 views
0 votes
1 answer