Full Version: Virtuozzo Plesk VPS suexec command not in docroot
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Plesk uses a modified version of suexec and sometimes up2date maintenance replaces Plesk's version of it.
When that happens, my cgi-bin scripts would fail with the message: "command not in docroot" in suexec.log and I would have to copy Plesk's version of suexec back.

I now have the code below run after up2date. It checks the date on suexec and replaces it with Plesk's psa-suexec if the date has changed:


a1=`ls -la /usr/sbin/suexec | tr "-" " " | gawk '{print substr($0,1,56)}'`

a2=`ls -la /usr/sbin/psa-suexec | tr "-" " " | gawk '{print substr($0,1,56)}'`

if [[ "$a1" != "$a2" ]]


cp /usr/sbin/suexec /usr/sbin/suexec-saved-$(date +%Y"-"%m"-"%d)

cp -Rfp /usr/sbin/psa-suexec /usr/sbin/suexec


Reference URL's