execve - CGI Execution

#1
When trying to execute CGI scripts with a .pl extension, the following error is received in the logs, accompanied with a 500 error in the browser.

ERROR [xx.xxx.xx.xxx:xxxx-0:cgi] execve(): No such file or directory

I've added cgi/pl as script handlers in the admin interface, and also made sure the permissions are OK on the file. The file is set to 755 and owner nobody (same as LSWS user).
 

mistwang

LiteSpeed Staff
#2
check your perl script

George,

Please try your perl script from command line and make sure it works.
I use the following test script, it works:
Code:
#!/usr/bin/perl
print STDOUT "Content-type: text/plain\n\n";
print STDOUT "Hello World from Perl Script\n";
Make sure your script follows the CGI specs.

Best regards,
Mistwang
 
Top