suEXEC
has its own docroot
which is totally independent of whatever you configure in your Apache config. You can see what suEXEC
's docroot is by calling:
suexec -V
You may need to be root for that. In my case the docroot was /var/www
. You'll have to put your scripts there. There is no way to change this save recompiling suEXEC
. Don't try to use symbolic links to keep your scripts outside of /var/www
(or whatever your suEXEC
is configured to).
Edit: as mentioned by @insaner in the comments the command is probably suexec
or as I have seen on at least one server suexec2
. suEXEC
is just what the Apache documentation calls the module/feature.