LiteSpeed Support Forums

LiteSpeed Support Forums (http://www.litespeedtech.com/support/forum/index.php)
-   CGI/Perl/Python (http://www.litespeedtech.com/support/forum/forumdisplay.php?f=22)
-   -   execve - CGI Execution (http://www.litespeedtech.com/support/forum/showthread.php?t=8)

George 08-08-2003 04:18 AM

execve - CGI Execution
 
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 08-08-2003 07:29 AM

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


All times are GMT -7. The time now is 06:43 AM.