17 Nov, 2017

Setting up Apache and PHP on macOS High Sierra

In order to setup my Mac to run php apps, I did the following:

  • sudo apachectl start
  • sudo nano /etc/apache2/httpd.conf
  • #LoadModule php7_module libexec/apache2/libphp7.so
  • remove the #
  • #LoadModule rewrite_module libexec/apache2/mod_rewrite.so
  • remove the #
  • replace /Library/WebServer/Documents with /Users/<your user>/<your folder>
  • sudo apachectl restart

Source:
https://websitebeaver.com/set-up-localhost-on-macos-high-sierra-apache-mysql-and-php-7-with-sslhttps