CGI scripts... error 500?

2 posts / 0 new
Last post
#1 Thu, 03/27/2008 - 01:47
tricksel

CGI scripts... error 500?

Hi all,

I've got the following problem: I'm trying to install BugZilla on a virtual host, in VirtualMin, but however, when browsing to the site, I get a few problems... - Sometimes, I get a "blank page" and at other times, I get raw HTML "spit out". - The raw HTML consists of a error 500 page.

When tracing the error logs, I get at the suexec logs. The error given is: [2008-03-24 01:03:19]: uid: (1001/svn) gid: (1002/1002) cmd: index.cgi [2008-03-24 01:03:19]: cannot get docroot information (/home)

However, as found in other posts in the forum, it seems my suexec param's are OK... This is what suexec -V gives me:

-D AP_DOC_ROOT="/home" -D AP_GID_MIN=100 -D AP_HTTPD_USER="www-data" -D AP_LOG_EXEC="/var/log/apache2/suexec.log" -D AP_SAFE_PATH="/usr/local/bin:/usr/bin:/bin" -D AP_UID_MIN=100 -D AP_USERDIR_SUFFIX="public_html"

I also saw something coming by about chmodding the scripts to 750. Unfortunately, this had no effect.

Does anyone have a clue here? I actually don't want to switch to another bugtracker, to avoid the problem... Furthermore, just for the knowledge, I'd like perl to work ;-)

Thanks in advance!

Thu, 03/27/2008 - 10:48
Joe
Joe's picture

Are you sure the SuexecUserGroup is correct for this VirtualHost? This looks like maybe a problem in that value...though you should always get a 500 error in the event SuExec is having problems.

Anything in the error_log?

Are the files actually owned by the virtual server owner and group? Is Apache in the group, as well? This isn't mandatory, but permissions have to be looser going up to the CGI script if Apache isn't in the virtual server group. e.g. does /etc/group have a line like domain:x:1002:apache ?

--

Check out the forum guidelines!

Topic locked