Osx-apache

From John Freier
Revision as of 12:27, 13 June 2014 by Jfreier (Talk | contribs) (Permission Denied)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Start Apache in OSX

To start Apache

 sudo apachectl start


To stop Apache

 sudo apachectl stop

To restart Apache

 sudo apachectl restart

To find the Apache version

 httpd -v


Enable PHP

 sudo vi /etc/apache2/httpd.conf 

Use "/" to search and search for 'php' this will land you on the right line then uncomment the line (remove the #):

 LoadModule php5_module libexec/apache2/libphp5.so