I am currently running CentOS 5.3 and Virtualmin 3.60 (GPL)
I cannot get perl files to execute through a web browser. I do not get a 404 or any other error when typing in the correct url, just a blank webpage. I have recompiled apache to have the suexec directory be /home, changed permissions, edited httpd.conf and still cannot get it to work. Below are my config and log files:
HTTPD FOR VIRTUALSuexecUserGroup "#501" "#502" ServerName WEBURL.com ServerAlias www.WEBURL.com ServerAlias webmail.WEBURL.com ServerAlias admin.WEBURL.com DocumentRoot /home/WEBURL.com/public_html ErrorLog /home/WEBURL.com/logs/error_log CustomLog /home/WEBURL.com/logs/access_log combined ScriptAlias /cgi-bin/ /home/WEBURL.com/cgi-bin/ DirectoryIndex index.html index.htm index.php index.php4 index.php5 <Directory /home/WEBURL.com/public_html> Options Indexes IncludesNOEXEC FollowSymLinks allow from all AllowOverride All </Directory> <Directory /home/WEBURL.com/cgi-bin> allow from all </Directory> RewriteEngine on RewriteCond %{HTTP_HOST} =webmail.WEBURL.com RewriteRule ^(.) http://WEBURL.com:20000/ [R] RewriteCond %{HTTP_HOST} =admin.WEBURL.com RewriteRule ^(.) https://WEBURL.com:10000/ [R]
Suexec.log[2009-04-13 13:23:37]: uid: (501/WEBURL.com) gid: (502/502) cmd: index.cgi [2009-04-13 13:23:37]: uid: (501/WEBURL.com) gid: (502/502) cmd: index.cgi [2009-04-13 13:23:37]: uid: (501/WEBURL.com) gid: (502/502) cmd: index.cgi [2009-04-13 13:23:38]: uid: (501/WEBURL.com) gid: (502/502) cmd: index.cgi [2009-04-13 13:23:38]: uid: (501/WEBURL.com) gid: (502/502) cmd: index.cgi [2009-04-13 13:23:38]: uid: (501/WEBURL.com) gid: (502/502) cmd: index.cgi [2009-04-13 13:23:38]: uid: (501/WEBURL.com) gid: (502/502) cmd: index.cgi
suexec -V-D AP_DOC_ROOT="/home" -D AP_GID_MIN=100 -D AP_HTTPD_USER="apache" -D AP_LOG_EXEC="/var/log/httpd/suexec.log" -D AP_SAFE_PATH="/usr/local/bin:/usr/bin:/bin" -D AP_UID_MIN=500 -D AP_USERDIR_SUFFIX="public_html"
File to execute ========================================================================== -rwxr-xr-- 1 WEBURL.com WEBURL.com 41 Apr 13 13:11 index.cgi<br><br>Post edited by: thedatabackup, at: 2009/04/13 14:32
If something isn't working right, it should show up in the Apache error logs. Do you see anything in ~/logs/error_log at around the time you're attempting to run the script? That might help in diagnosing the issue.
It does appear that you have suexec working correctly though :-)
-Eric
Thanks for the prompt response.
The other logs in /var/log/httpd do not have any information regarding the execution of the file. The server that I am testing on doesn't have anything else running on it currently, but is able to display other web pages that use server side scripting (PHP).
Any other ideas?
Howdy,
Whenever you create a Virtual Server, it puts a logs directory into the associated homedir, in /home/USERNAME/logs. At that point, any errors would show up in /home/USERNAME/logs/error_log, and not /var/log/httpd.
Do you have an error log in the Virtual Server home directory?
-Eric