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

0 votes

Hi Guys,

I have httpd web server in my system. But when I tried to start its service I got this below error.

$ systemctl start httpd
Failed to start httpd.service: Unit httpd.service is masked.
Apr 23 in Linux Administration by akhtar
• 11,270 points
75 views

1 answer to this question.

0 votes

Hi@akhtar,

A masked service is used to prevent an unwanted start of this service. If you are sure that httpd shouldn't be masked, you can just unmask and then restart your service.

$ systemctl unmask httpd
$ systemctl restart httpd

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,483 views
+1 vote
2 answers

if the File system is full how to troubleshoot ?

Check filesystem usage. df -h If /var is showing ...READ MORE

answered Nov 18, 2019 in Linux Administration by Sirajul
• 53,110 points
140 views
0 votes
1 answer

How to change port no 80 of httpd webserver?

Hi@akhtar, You can change port no of httpd ...READ MORE

answered Apr 21 in Linux Administration by MD
• 24,500 points
22 views
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

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

Hi@akhtar, This problem is caused due to SELinux. It ...READ MORE

answered Apr 23 in Linux Administration by MD
• 24,500 points
113 views
+1 vote
1 answer

Failed to start Crash recovery kernel arming.

Hi@akhtar, To avoid this error you can follow ...READ MORE

answered May 11 in Linux Administration by MD
• 24,500 points
160 views