Hey gang, I know this quick-fix seems to work...
jmdirc wrote:go to file:
/Applications/xampp/xamppfiles/bin/apachectl
and comment out lines 69, 70 and 71
... but I would avoid commenting-out important functionality such as the ulimit max file check from apachectl. I was able to solve this same problem for myself by using
Beverly Guillermo's tip that your apache user lacked the appropriate read and/or write permissions to the DocumentRoot, ErrorLog, or CustomLog.
In order to fix this properly, you need to know what User and Group settings you have for XAMPP, which you should be able to find in your /Applications/XAMPP/xamppfiles/etc/httpd.conf config file.
Next, verify that the User and Group have complete ownership of the content in your /Applications/XAMPP/logs/
(mine did not after I ran an OS X upgrade to Snow Leopard).
Next verify that an apache syntax check will work:
- Code: Select all
sudo /Applications/XAMPP/xamppfiles/bin/apachectl -S
And last, for all of your VirtualHosts' DocumentRoots, you need to make sure that apache can read those directories and their contents. One way by doing this is by
chgrp'ing each DocumentRoot so that the group matches your apache Group.
What do you gain by doing it the right way? A more stable apache instance, which you can upgrade easily without having to constantly re-patch your quick-fixes. Hope this helps.