i need to run a cgi script, the test script look like this:
i run it on SSH and it print this:
[@web cgi-bin]$ ./index.cgi
Content-type: text/html
Hello, you![@web cgi-bin]$
and thats fine, but on running in the browser its gives me a 500 error
this is the premissions:
.htaccess 0.10k 755 Sep 24
index.cgi 0.07k 755 Sep 24
both file in my ownership
the .htaccess look like this:
and the error look like this (from the log):
[Sun Sep 24 13:18:53 2006] [error] Can't locate object method "filename" via package "Apache" at /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/Apache/PerlRun.pm line 24.\n
PHP:
#!/usr/bin/perl
print "Content-type: text/html\n\n";
print "Hello, you!";
[@web cgi-bin]$ ./index.cgi
Content-type: text/html
Hello, you![@web cgi-bin]$
and thats fine, but on running in the browser its gives me a 500 error
this is the premissions:
.htaccess 0.10k 755 Sep 24
index.cgi 0.07k 755 Sep 24
both file in my ownership
the .htaccess look like this:
PHP:
Options +ExecCGI +Includes -Indexes
SetHandler perl-script
PerlHandler Apache::PerlRun
PerlSendHeader On
and the error look like this (from the log):
[Sun Sep 24 13:18:53 2006] [error] Can't locate object method "filename" via package "Apache" at /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/Apache/PerlRun.pm line 24.\n
Last edited: