A place to get support for Mac OS X specific problems
Contents
Leopard
As written on HelpOnInstalling/ApacheOnMacOsx file layout on Mac OSX 10.5.x (Leopard) is significantly different than older versions and you should better wait until the help page is updated. So let's do it!
The httpd.conf file seems to be no longer in the directory /etc/httpd/ but in /etc/apache2/.
To restart Apache, on the System Preferences-Sharing page, there is no button to click "Stop" and "Start", but a checkbox.
When I open http://localhost/mywiki in the web browser the message occurs "Forbidden - You don't have permission to access /mywiki on this server." The permissions of /moinwiki/share/moin/mywiki are
drwxr-xr-x 12 root admin 408 29 Feb 10:30 mywiki
Any idea?
Older problems
Shared files not installed on 1.2.4
Using:
python setup.py install --install-data='/usr' --record=install.log
According to HelpOnInstalling/ApacheOnMacOsx, the shared files should be installed into /usr/share/moin, but I could not find them.
- Did you installed as root as the instructions tell you to do? did you see any error message at the terminal? Please try again as root.
I tried also following the instructions in INSTALL.html that come with 1.2.4:
python setup.py install --record=install.log
The shared files did install into /System/Library/Frameworks/Python.framework/Versions/2.3/ instead of /usr/
- This is expected. Follow the Mac OS X specific instructions and use --install-data='/usr'.
/usr/bin/env python will not work
After installing and creating an instance wiki I got a "Server internal error" on trying to access it. Examining the Apache log (/var/log/httpd/error_log), the problem seems to be missing python environment variable. I fixed this by editing the shebang line in /usr/local/share/moin/mywiki/moin.cgi, replacing it with
Otherwise, installation went smooth and easy.
This is usually not needed. Python is not installed in /usr/local on and 10.3 and 10.4 (Maybe it was in 10.2). There is also no PYTHON environment variable by default and no need for it. /usr/bin/env python should work fine. Specifying specific Python on the #! line is needed if you want to run specific Python version on a system with multiple versions, and is a common setup not related to Mac OS X.