JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050

JaguarPC Blog

Did you know JaguarPC was established in 1998? We are a hosting company providing quality, non-oversold, reliable hosting solutions at an affordable price. Our services are backed by 24/7 professional customer support, stellar hardware, uptime and money back guarantees.

September 17th

Internal Server Error

By Jag September 17, 20063:15 pm

Just a quick note about “Internal Server Error” problems after upgrading Apache on these Plesk machines.


You may start getting the “500 Internal Server Error” errors after doing so, and that is because the upgraded Apache has overwritten the Plesk version of “suexec”, a handy little program that allows the webserver to run CGI-BIN programs.


However, you are in luck! Plesk keeps a copy of their modified version of “suexec” around on the box.


How-To restore suexec:

1. log in as the ‘root’ user on yer box.

2. cd /usr/sbin

3. mv suexec suexec.old (or whatever you want to call it)

4. cp psa-suexec suexec


Technical Jazz:

The problem is that Apache’s stock version of suexec doesn’t allow (for safety reasons) cgi-bin programs to be execute from any but underneath the MAIN Apache document root. Which, in the case of these Plesk servers is /var/www… since all the virtually hosted addresses live under /home/httpd/vhosts…, the stock Apache suexec doesn’t allow that. Modifying suexec is something of a hobby in the unix web administration world, so this isn’t entirely odd.


BTW, you can also check the /var/log/suexec.log to see what is being suexec’ed, and what errors are happening. The error you’ll see in this case is “command not in docroot”.

Enjoy :)


Alex

This entry was posted in Control Panels. Bookmark the permalink.
No comments

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

  • Follow Us On
    Search your topics
  • Links
    see what is connected with su