Difference between revisions of "Osx-apache"
From John Freier
(Created page with '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 h…') |
(→Permission Denied) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | Start Apache in OSX | + | == Start Apache in OSX == |
+ | |||
To start Apache | To start Apache | ||
Line 17: | Line 18: | ||
httpd -v | 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 |
Latest revision as of 11:27, 13 June 2014
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