Some users have reported problems when they try to enable Web Sharing (which launches the Apache web server) in OS X 10.1. The issue is apparently related to the "mod_hfs_apple" file, which Apple created to work around an HFS-related security hole.
You can either disable mod_hfs until Apple fixes this (not recommended due to the security issues) or patch it, thanks to Stepwise. The disabling instructions are in the remainder of this article. To patch it, simply do the following in a terminal session:
If you click the "Enable web sharing" button and nothing happens, you may have to edit your Apache configuration file. Start a terminal session and type the following:
You should now be able to launch Web Sharing, but the security hole related to capitalization is no longer patched. I have not been able to verify this problem on my own machine yet, however it has been reported by a few people and is discussed in this MacNN forum thread.
You can either disable mod_hfs until Apple fixes this (not recommended due to the security issues) or patch it, thanks to Stepwise. The disabling instructions are in the remainder of this article. To patch it, simply do the following in a terminal session:
cd /tmpMake sure you stop Apache and restart it after the change. These commands install the new mod_hfs module from the Developer Tools, which are not yet publicly released.
curl -O http://graphics.stepwise.com/patches/mod_hfs_apple.tgz
sudo tar -xzf mod_hfs_apple.tgz -C /
If you click the "Enable web sharing" button and nothing happens, you may have to edit your Apache configuration file. Start a terminal session and type the following:
cd /etc/httpd/This will launch the Pico text editor as root on the configuration file (after creating a backup). Use ^W (Whereis) to search for mod_hfs. There are two lines that you'll be changing, and they're close to one another in the file:
cp httpd.conf httpd.conf.mybackup
sudo pico httpd.conf
LoadModule mod_hfs_apple.cSimply insert a "#" in front of each of these lines (this turns the command into a comment), and then save your changes and quit Pico.
AddModule mod_hfs_apple.c
You should now be able to launch Web Sharing, but the security hole related to capitalization is no longer patched. I have not been able to verify this problem on my own machine yet, however it has been reported by a few people and is discussed in this MacNN forum thread.
•
[3,636 views]

