I am trying to get cgi scripts to work from virtual hosts. I thought is was automatically setup with webmin, but when I try to run a script I am getting an Internal Server Error. When I read the suexec log it says "command not in docroot". The suexec docroot is set to /var/www/ and the virtual servers are set to run under /home/virtualserver. If I edit the directives for the site and remove the SuexecUserGroup "#XXX" "#XXX" line the scripts will work, but I assume that is without suexec. I think this is the problem, but all of the config pages that I find for suexec are very vague to me. Any help is appreciated.
First, I suexec neccessary?
Second, Why is this not working?
Third, How do I change the docroot directory and will that make the suexec work?
Thanks in advance for any help.