perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brent Clark <>
Subject Perl + apache + cgi
Date Tue, 07 Dec 2004 12:32:20 GMT

Would anyone care to share some info on setting up a CGI.

I keep getting this error:

[Tue Dec  7 09:48:47 2004] [error] [client] Premature
end of script headers: /home/gevens/cgi-bin/ecco/scripts/agent/


[2004-12-07 10:17:28]: info: (target/actual) uid: (gevens/gevens) gid: 
(gevens/gevens) cmd:
[2004-12-07 10:17:28]: error: command not in docroot 

Here is the permissions of the file in question:
-rwxr-xr-x  1 gevens gevens   170 Dec  7 12:28

Here is my apache conf:

<VirtualHost ftp>
     DocumentRoot /home/gevens/eccotours
     ScriptAlias /cgi-bin/ /home/gevens/cgi-bin/
     AccessFileName a.htaccess
     User gevens
     Group gevens
     ErrorLog /var/log/apache/ecco.log
     CustomLog /var/log/apache/ecco-access.log common

I thought there was something wrong with my script, but this script runs
on my hosted box in the uk, with no problems.
All I did was scp across locally.

I editted the script and just made it:

#!/usr/bin/perl -w
print "Content-type: text/html\n\n";
#use CGI::Pretty qw();
#use CGI::Carp qw(fatalsToBrowser);
#use strict;
#use warnings;

print "HELLO WORLD";

and still nothing.

I wonder if it does not have anything todo with suEXEC.

[2004-12-07 13:36:14]: info: (target/actual) uid: (gevens/gevens) gid: 
(gevens/gevens) cmd:
[2004-12-07 13:36:14]: error: command not in docroot 

Any assistants would be greatly appreciated.

Kind Regards
Brent Clark

Report problems:
Mail list info:
List etiquette:

View raw message