cgi scripts fail SUexec error command not in docroot
I had to track down this problem when I found that my cgi scripts were failing with a 500 Server Error.
The problem is with SUExec which normall requires the cgi scripts to be in the document root.
The fix is to recompile the SUExec with the document root set to /home. Follow these instructions ...
- download the Apache source for your version of apache
- compile suexec with these commands :
# ./configure --with-suexec --with-suexec-docroot=/ --with-suexec-logfile=/var/log/suexec.log --with suexec-caller=nobody
# make suexec - Backup the old version of suexec and replace with your new version
- reboot
Hope this helps someone!
Trackback URL for this post:
http://www.zygmund.net/trackback/28
