How to Restart apache in mac OS ?

How to Restart apache in mac OS ?

Are you using mac OS? If you are using Mac OS and you need to restart Apache (httpd) service on Mac OS then you have to enter commands. To restart Apache first you need to login as root user and open the ssh on server. After that you have to enter following commands in shell.

  • To start Apache you have to enter this command :
Code:
sudo /usr/sbin/apachectl start
  • To start Apache you have to enter this command :
Code:
sudo /usr/sbin/apachectl stop
  • At last you can restart the Apache with following commands :
Code:
sudo /usr/sbin/apachectl restart
Author
bhawanisingh
Views
3,400
First release
Last update
Rating
0.00 star(s) 0 ratings
Top