Restore the previous Apache configuration after upgrading to El Capitan
Since Mavericks, upgrading to a new major version of OS X restores the Apache settings to default. Luckily enough the setup backups the old configuration. Here’s what I did to put it back.
It will take about 2 minutes.
-
I checked my apache user conf file to be in path (/etc/apache2/users/francesco.conf)
-
backed-up default El Capitan Apache conf file (sudo cp httpd.conf httpd.conf.original.elcapitan)
-
removed default confif (sudo rm httpd.conf) and placed old custom one (sudo cp httpd.conf.pre-update httpd.conf)
-
tested the old config to be workind (apachectl configtest)
-
restarted apache (sudo apachectl restart)
-
tested php to be working with a simple php.info file
-
tested phpmyadmin and mysql to be working by logging into phpmyadmin (mysql needs to be stared from its panel in System Preferences)
Thanks for reading.