Restart Apache 2 In Mac OS X

by on December 7, 2010 · 1 comment· LAST UPDATED December 7, 2010

in

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

TwitterFacebookGoogle+PDF versionFound an error/typo on this page? Help us!

{ 1 comment… read it below or add one }

1 Pat February 23, 2014 at 2:26 pm

Thank you!

Reply

Leave a Comment

Tagged as: , , , , , ,

Previous Faq:

Next Faq: