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,210 points
10,539 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.

 

answered Apr 23, 2020 by MD
• 95,300 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 13, 2019 in Linux Administration by Kiara
17,493 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, 2020 in Linux Administration by MD
• 95,300 points
3,696 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,950 points

edited Apr 30, 2020 by Gitika 4,321 views
0 votes
1 answer

Failed to start the Apache service

Hi@akhtar, I think port no. is busy. Some ...READ MORE

answered Jun 22, 2020 in Linux Administration by MD
• 95,300 points
1,592 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 26, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
1,262 views
0 votes
1 answer