Suexec - schoud work, but it doesnt...

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 ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-01-2004
KrzysztoF
 
Posts: n/a
Default Suexec - schoud work, but it doesnt...

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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 12:10 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0