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
• 17,957 views
It's not working

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
• 40,909 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
• 20,249 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,190 points
• 7,100 views
+6 votes
1 answer

Web UI (Dashboard): https://kubernetes.io/docs/tasks/access-application-cluster/web-ui-dashboard/

Hey @nmentityvibes, you seem to be using ...READ MORE

answered Dec 13, 2018 in Kubernetes by Kalgi
• 52,340 points
• 11,870 views