Set up an http server on a macbook pro with Apache
-
check for apache on: ps aux | grep http
httpd is the nickname for apache that is recognized on mac unix.
-
start apache: sudo apachectl start
-
stop apache: sudo apachectl stop
-
restart apache: sudo apachectl restart
-
apache default document root path: /Library/WebServer/Documents
-
apache config: /etc/apache2/users
-
uncomment in /etc/apache2/httpd.conf: Include /private/etc/apache2/extra/httpd-userdir.conf
-
and: Include /private/etc/apache2/extra/httpd-userdir.conf
-
uncomment in /etc/apache2/extra/httpd-userdir.conf: Include /private/etc/apache2/users/*.conf
-
uncomment in /etc/apache2/extra/httpd-userdir.conf: LoadModule authz_core_module libexec/apache2/mod_authz_core.so
-
and: LoadModule authz_host_module libexec/apache2/mod_authz_host.so
-
enable php by uncomment in …/httpd.conf: LoadModule php5_module libexec/apache2/libphp5.so