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, 2020 in Linux Administration by akhtar
• 38,180 points
3,235 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, 2020 by MD
• 95,240 points
it worked.  thnx!
No its not working for me
Hi@Priya,

Can you share your error? Which O.S. you are using?

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
16,159 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, 2020 in Linux Administration by MD
• 95,240 points
7,288 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
• 59,090 points
973 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,196 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,240 points
1,366 views
0 votes
2 answers

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

Hi guys I was facing same problem as ...READ MORE

answered Nov 21, 2020 in Linux Administration by anonymous
• 140 points
8,754 views