post-page

Plesk and 500 Internal Server Error and uid/gid mismatch

1
response
by
 
on
September 15th, 2004
in
General

This is for future reference.

If you are getting a 500 internal server error for your cgi-bin, have all the permissions set right and are using Plesk (or any other suexec virtual apache platform) the following command might be your answer.

SSH in and type the following:

chown root:apache /usr/sbin/suexec

That should resolve most of the uid/gid mismatch issues and the 500 internal server issues. The technical explanation is that suexec runs the calling program as the owner/group that the suexec program is saved under and apache will run most scripts with a suexec (in a virtual server environment) to sanity check script execution and prevent malicious scripters. Plesk will sometimes save this file under the wrong credentials. Thus the headaches.

heading
heading
One
Response

 

Comments

  1. Martin says:

    Hi Mark,

    Maybe you are familiar with the following: I keep getting 404’s on calling Perl scripts in my Plesk cgi-bin. The scripts are there, they have their 755’s and have been tested in a Cpanel environment.

    chown root:apache /usr/sbin/suexec doesn’t help.

    If you have any suggestions then I’d be grateful.

    Martin
    Paintings.n@me

    [EDIT] Sorry, this looked too much like an ad!



Obviously Powered by WordPress. © 2003-2013

css.php