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,260 points
14,180 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 helps!

Get your Linux certification today to become certified.

Thanks.

answered Apr 23, 2020 by MD
• 95,460 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 14, 2019 in Linux Administration by Kiara
37,860 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,460 points
17,517 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,230 points
5,167 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
3,987 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,460 points
6,017 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
45,483 views
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