You are not logged in or registered. Please login or register to use the full functionality of this board...

Post Reply 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Virtuozzo Plesk VPS suexec command not in docroot
10-05-2011, 07:34 PM
Post: #1
Virtuozzo Plesk VPS suexec command not in docroot
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


Find all posts by this user
Quote this message in a reply
Post Reply 

Forum Jump:

User(s) browsing this thread: 1 Guest(s)