≡ Menu

Restart Apache 2 In Mac OS X

How do I restart the Apache 2 Web Server under Apple OS X UNIX operating systems using bash command prompt?

Open a terminal and than type the following command to restart the apache 2 web server:
$ sudo /usr/sbin/apachectl restart
OR
$ sudo apachectl -k restart
Sample outputs:

Restart Apache 2 Mac OS X

Restart Apache 2 Mac OS X

Tweet itFacebook itGoogle+ itPDF itFound an error/typo on this page?

{ 1 comment… add one }

  • Pat February 23, 2014, 2:26 pm

    Thank you!

Leave a Comment