Httpd Is Not Present in Init. D

Httpd Is Not Present in Init. D

I have installed lamp on Ubuntu 15.10. Apache is working fine. Whenever i tried to start the server it says. bash: /etc/init.d/httpd: No such file or directory. Please help.

4

1 Answer

$/etc/init.d/httpd start will not work on Ubuntu, Debian/Ubuntu support listed below commands and CentOS/RHEL support service httpd restart:

How to start Apache 2:

 sudo service apache2 start

How to stop Apache 2:

sudo service apache2 stop

How to restart Apache 2:

sudo service apache2 restart

How to reload Apache 2:

sudo service apache2 reload
3

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

James H. Sterling
Author

James H. Sterling

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.