Last active
December 29, 2015 01:09
-
-
Save ccabanero/7591213 to your computer and use it in GitHub Desktop.
PHP repair after Mac OSX Mavericks upgrade
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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