So Apple stats show that 3% of safari traffic is coming from Mountain Lion installations within the first 48 hours of the OS upgrade release.
Wow. But - the upgrade breaks a number of things... and there is no official information that the "Web Sharing" option is now MISSING from the System Preferences "Sharing" panel.
The upgrade results in the following:
1 - Web Sharing is turned OFF (and no GUI to turn it back on)
2 - PHP is turned OFF
What to do?
1 - Web Sharing GUI panel can be added with:
http://clickontyler.com/blog/2012/02/web-sharing-mountain-lion/
This only get us part of the way as this is a master ON/OFF switch.
The other move which Apple seems to be making is disabling "User Level Root" web pages, and preferring us to use the System Level Web Root location.
This means if you have: http://www.yoursite.com/~username/index.html IT WILL NOT WORK - even after turning ON Web Sharing. Even if it worked BEFORE the 10.8 Mountain Lion upgrade.
Thankfully, Neil Gee has a timely write up on how to resolve these issues. Take a look at the "DOCUMENT ROOT" section on how to re-enable user level root web access. This needs to be done for each user web location you want to work from the machine.
PHP can be re-enabled the same way as you would during an install by editing the httpd.conf (10.8 upgrade takes your old one renames it to httpd.conf~previous and write a clean file. Thereby disabling php.
In Terminal:
1. goto httpd.conf location
cd /etc/apache2
2. backup the httpd.conf file
sudo cp httpd.conf httpd.conf-backup
3. edit the httpd.conf file
sudo pico httpd.conf
Find the line with:
# LoadModule php5_module libexec/apache2/libphp5.so
Remove the "#" in front of the line and save the document.
4. Restart Apache
- use GUI System Pref pane from above or
- in Terminal: sudo apachectl restart
The feeling is that Apple wants us to purchase the "server" version upgrade from the App Store for another $20. While it seems that functionality is added, what we really get is a nice GUI and management tools to make things smoother for a larger environment. This is a good thing, but really overkill if you just want your sites to work off the machine with php.
Enjoy! And a big thanks to Neil Gee!
No comments:
Post a Comment