Error saying Failed to start httpd service Unit httpd service not found

0 votes

I'm trying to execute the following command:

sudo service httpd start

end up with the following error:

Failed to start httpd.service: Unit httpd.service not found.
May 13, 2019 in Linux Administration by Avi
12,200 views

1 answer to this question.

0 votes

Execute the following steps or make sure you've executed the following steps correctly:

1) Update and install Apache and PHP:

sudo yum check-update
sudo yum -y install httpd php

2) Start the Apache service:

sudo service httpd start
sudo chkconfig httpd on
answered May 13, 2019 by Kiara
Thanks, this worked for me.

httpd package was missing from my VM instance.

Related Questions In Linux Administration

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,060 points
1,808 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
4,722 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,060 points
743 views
0 votes
1 answer
0 votes
1 answer

How do I set variable if a specific package version is installed in CFEngine?

Here is what you can do.Just use packagesmatching to ...READ MORE

answered Jul 12, 2018 in Other DevOps Questions by Atul
• 10,240 points
256 views
0 votes
2 answers

Install postgreSQL on Ubuntu

Follow the below commands to install PostgreSQL (PSQL) ...READ MORE

answered Nov 11, 2020 in Database by Prachi
• 140 points
235 views
0 votes
1 answer

Access progrs prompt without switching accounts

Use the following to get the postgres prompt ...READ MORE

answered Mar 22, 2019 in Database by Mahi
163 views
+2 votes
1 answer

Not able to install npm on Ubuntu

Try installing npm using aptitude: sudo apt install aptitude sudo ...READ MORE

answered Nov 28, 2018 in Linux Administration by Omkar
• 69,090 points
4,754 views