I have just today upgraded to Yosemite. I've not had a mac long. But with the update my localhost doesn't work. Chrome returns This webpage is not available. I've tried
sudo apachectl start to try and get it back but no luck. I'm a new mac user and haven't had to undergo an OS update, so not really sure where to start.
I've stolen the following from https://github.com/liip/php-osx/issues/75 and http://php-osx.liip.ch/#uninstall
homebrew helps with this
brew update
brew upgrade
brew uninstall --force php54
brew unlink php54
brew uninstall --force php55
brew unlink php55
rm -rf /usr/local/php5*
brew install php55
please comment out the existing 'LoadModule php5_module' in /private/etc/apache2/httpd.conf and add this
LoadModule php5_module /path/to/lib/libphp5.so
delete the files
+php-osx.conf
+entropy-php.conf
in
/etc/apache2/other
try to start apache with
sudo apachectl start
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With