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
1,518 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

Related Questions In Linux Administration

0 votes
1 answer

Name or service not known error

Seems like there is no nameserver set. Run ...READ MORE

answered Apr 1, 2019 in Linux Administration by Rohit
402 views
+1 vote
0 answers

Could not start the machine edureka_host_vm because the following physical network interfaces were not found:

Could not start the machine edureka_host_vm because ...READ MORE

1 day ago in Linux Administration by Harish
• 130 points
10 views
0 votes
1 answer

Not able to access /etc/sudoers.d/python file

I think your system is not allowing ...READ MORE

answered Feb 6, 2019 in Linux Administration by Lohit
328 views
0 votes
1 answer

Not able to install sublime text editor

Delete the following file: /etc/apt/sources.lits.d/sublime-text.list and then try to ...READ MORE

answered Feb 18, 2019 in Linux Administration by Joe
163 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,250 points
112 views
0 votes
1 answer

Install postgreSQL on Ubuntu

Installing PostgreSQL on Ubuntu is very simple, ...READ MORE

answered Mar 22, 2019 in Database by Nitesh
82 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
56 views
+1 vote
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
• 68,880 points
2,320 views