This is a discussion on Suexec - schoud work, but it doesnt... within the Apache Web Server forums, part of the Web Server and Related Forums category; Hi, I have Apache2 installed on my Mandrake. When I try to run any perl script I get an error ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi,
I have Apache2 installed on my Mandrake. When I try to run any perl script I get an error 500: Premature end of script headers: index.pl in error.log The program runs very well when executed from cmd, so I checked the suexec log, and it prints out: [2004-03-01 11:05:03]: uid: (172/apache) gid: (172/172) cmd: index.pl [2004-03-01 11:05:03]: command not in docroot (/home/httpd/public_html/wt/cgi-bin/index.pl) or the same error for other file: [2004-03-01 11:09:09]: uid: (172/apache) gid: (172/172) cmd: test.cgi [2004-03-01 11:09:09]: command not in docroot (/home/httpd/public_html/cgi-bin/test.cgi) now, lets see how my suexec was configured: [root@wiretech apache2-2.0.44]# suexec -V -D AP_DOC_ROOT="/home/httpd/public_html" -D AP_GID_MIN=100 -D AP_HTTPD_USER="apache" -D AP_LOG_EXEC="/usr/local/apache2/logs/cgi.log" -D AP_SAFE_PATH="/usr/local/bin:/usr/bin:/bin" -D AP_UID_MIN=100 -D AP_USERDIR_SUFFIX="public_html" The same path in httpd2.conf: DocumentRoot /home/httpd/public_html Eeach script has been chmod 755 and chowned, chgrped to apache (uid 172, gid 172). I still cannot understand why it isnt working. Anyone ccould help me, please? Regards, K |
| Thread Tools | |
| Display Modes | |
|
|