We can't get any type of perl file to execute in our clients (or any other client on the server) cgi-bin directory. We've tried everything!
I've tried uploading a test.pl file which simply looks like this:
We just get the 500 Internal Server error. The users username is globalnet and as you can see from the /var/log/httpd/suexec_log logs the file is owned by the correct user:
So . . . I tried navigating to the users cgi-bin directory via ssh and at the command prompt did:
./test.pl
which yielded:
I made sure that the path to perl in the interpreter was correct. It was. I made sure the file actually existed. It does. I even tried renaming the file to test.cgi . . . made no difference.
I tried installing the the DBD mysql bundle which generated the following errors:
Any ideas? I'm completely stuck here!
Thanks!
I've tried uploading a test.pl file which simply looks like this:
#!/usr/bin/perl
print "Hello World!\\n\";
We just get the 500 Internal Server error. The users username is globalnet and as you can see from the /var/log/httpd/suexec_log logs the file is owned by the correct user:
[2005-05-21 09:14:54]: info: (target/actual) uid: (globalnet/globalnet) gid: (globalnet/globalnet) cmd: test.pl
So . . . I tried navigating to the users cgi-bin directory via ssh and at the command prompt did:
./test.pl
which yielded:
: bad interpreter: No such file or directory
I made sure that the path to perl in the interpreter was correct. It was. I made sure the file actually existed. It does. I even tried renaming the file to test.cgi . . . made no difference.
I tried installing the the DBD mysql bundle which generated the following errors:
Cannot connect: Access denied for user: 'root@localhost' (Using password: NO)
Either your server is not up and running or you have no
permissions for acessing the DSN DBI:mysql:test.
This test requires a running server and write permissions.
Please make sure your server is running and you have
permissions, then retry.
AND
Cannot connect: Access denied for user: 'root@localhost' (Using password: NO)
It looks as if your server is not up and running.
This test requires a running server.
Please make sure your server is running and retry.
Any ideas? I'm completely stuck here!
Thanks!