Restart Apache on Mac OS X

To restart apache2 on Mac OS X:

  • Start Terminal window
  • goto /usr/sbin (cd /usr/sbin)
  • execute the below command

sudo apachectl restart

Alternatively you can open Terminal and execute the below command:
               
                  sudo /usr/sbin/apachectl restart