How to Set Up Apache and PHP on MacOS

Published: 17 February 2017
on channel: Just Another Dang How To Channel
56,076
358

Step by step tutorial setting up the default Apache server and loading the PHP5 module on a Mac running MacOS Sierra.

For the httpd.conf uncomment the following
LoadModule authz_host_module libexec/apache2/mod_authz_host.so
LoadModule authz_core_module libexec/apache2/mod_authz_core.so
LoadModule userdir_module libexec/apache2/mod_userdir.so
LoadModule vhost_alias_module libexec/apache2/mod_vhost_alias.so
LoadModule php5_module libexec/apache2/libphp5.so
Include /private/etc/apache2/extra/httpd-userdir.conf
Include /private/etc/apache2/extra/httpd-vhosts.conf

And for the httpd-user.conf uncomment the following
Include /private/etc/apache2/users/*.conf

Restart the Apache server by
sudo apachectl restart

Buy Me Coffee
https://buymeacoffee.com/pauloorquillo

Social
Twitter/X:   / olopsman  


Watch video How to Set Up Apache and PHP on MacOS online without registration, duration hours minute second in high quality. This video was added by user Just Another Dang How To Channel 17 February 2017, don't forget to share it with your friends and acquaintances, it has been viewed on our site 56,076 once and liked it 358 people.