[UPDATED sep 26]
macOS High Sierra is awesome, but unfortunately, it killed my “old style” development environment.
If you are still using the “old” way for development websites (a.k.a., using macOSs own apache2 and brew php), you might want to wait with upgrading to High Sierra; I don’t have a working solution yet.
PHP does not want to get installed properly
brew install homebrew/php/php71 homebrew/php/php71-xdebug --with-http24
When I get this fixed (and I need it fixed before I can update my work computer) I will let you know :)
If you’re smart, and you’re using Local (by Flywheel), then you just fire that puppy up, you’ll get a “thank you for using Local, would you like to update” message, just click ‘Update’ and you’re done.
to be continued …
many many tests later, still no go :( So I decided to undo a few things and uninstalled all homebrew managed PHP versions. I continued to fix paths in the Apache config files and behold! IT WORKS! macOS comes with PHP 7, so for now all seems ok, but I’m not happy. It should not be hard to use a Brew version for PHP, so why doesn’t it work?
So if you already upgraded to High Sierra and need to get Apache up and running, try
for i in $(brew list | grep php); do brew uninstall $i; done
brew uninstall httpd24
Currently, I have Apache 2.4 with PHP 7.1.7 running (Apple provided), with these apache modules enabled in addition to the default;
LoadModule php7_module libexec/apache2/libphp7.so
LoadModule rewrite_module libexec/apache2/mod_rewrite.so
LoadModule socache_shmcb_module libexec/apache2/mod_socache_shmcb.so
LoadModule access_compat_module libexec/apache2/mod_access_compat.so
LoadModule ssl_module libexec/apache2/mod_ssl.so
Also, A former coworker suggested Laravel Valet as an alternative. It might help you, it didn’t help me. Valet uses homebrew and therefore I kept having the same issues, but, it might work for you, let me know.
again … to be continued …