Skip to content

Instantly share code, notes, and snippets.

@ccabanero
Last active December 29, 2015 01:09
Show Gist options
  • Save ccabanero/7591213 to your computer and use it in GitHub Desktop.
Save ccabanero/7591213 to your computer and use it in GitHub Desktop.
PHP repair after Mac OSX Mavericks upgrade
// IF OS NEVER HAD A SITES FOLDER PREVIOUSLY
//in terminal
sudo apachectl start
//open browser and check local host --> it works
//at the root of the user, create a 'Sites' folder
//in terminal ... replace [username] with the user name you use to log in to your Mac OS X
cd /etc/apache2/users
sudo nano [username].conf
<Directory "/Users/[username]/Sites/">
Options Indexes MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
sudo chmod 644 [username].conf
sudo apachectl restart
http://localhost/~[username]/
// IF OS PREVIOUSLY HAD A SITES FOLDER
cd /etc/apache2/
sudo mv httpd.conf httpd.conf.backup
sudo mv httpd.conf.pre-update httpd.conf
sudo apachectl restart
cd /private/etc/
sudo mv php.ini.default-5.2-previous php.ini
sudo apachectl restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment