jerry2005
Verified User
I noticed that my cgi-bin dirs are not working, i am trying to execute the following script:
test.cgi:
#!/usr/bin/perl
print "Content-type: text/html\n\n";
print <<END_HTML;
<html>
<head></head>
<body>Hello, World!</body>
</html>
END_HTML
Getting a 500 error running this script, file right are 755.
Runnning from command line:
./test.cgi
-su: ./test.cgi: /usr/bin/perl: bad interpreter: Permission denied
root@localhost:~# ls -la /usr/bin/perl
-rwxr-xr-x 2 root root 1057324 Mar 8 2005 /usr/bin/perl
suexec_log looks fine:
[2005-11-30 00:57:39]: info: (target/actual) uid: (blerrynl/blerrynl) gid: (blerrynl/blerrynl) cmd: test.cgi
Could this be related because of disabling the mod=perl ??? this was needed that get apache working on debian.
I am stuck and cant find any solution.
test.cgi:
#!/usr/bin/perl
print "Content-type: text/html\n\n";
print <<END_HTML;
<html>
<head></head>
<body>Hello, World!</body>
</html>
END_HTML
Getting a 500 error running this script, file right are 755.
Runnning from command line:
./test.cgi
-su: ./test.cgi: /usr/bin/perl: bad interpreter: Permission denied
root@localhost:~# ls -la /usr/bin/perl
-rwxr-xr-x 2 root root 1057324 Mar 8 2005 /usr/bin/perl
suexec_log looks fine:
[2005-11-30 00:57:39]: info: (target/actual) uid: (blerrynl/blerrynl) gid: (blerrynl/blerrynl) cmd: test.cgi
Could this be related because of disabling the mod=perl ??? this was needed that get apache working on debian.
I am stuck and cant find any solution.