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)
-   -   lscgid: execve(): Permission denied (http://www.litespeedtech.com/support/forum/showthread.php?t=2354)

kule 10-04-2008 11:30 AM

lscgid: execve(): Permission denied
 
Hi There,

I'm trying to setup a site that uses a simple perl script:

Code:

#!/usr/bin/perl

use LWP::Simple;

print "Content-type: text/html\n\n";

@content=get('http://some_url');

foreach$line(@content) {
        $line=~s/<HEAD>/<HEAD>\n<BASE target=\"_top\">\n/;
        print $line;
}

Other perl scripts work fine however this one gives a permission denied error? Can you tell me what I've missed?

Thanks
Luke

mistwang 10-04-2008 07:52 PM

Have you chmod the script.

Try
sudo -u <user_lshttpd_run_as> path_to_script

from command line.

kule 10-05-2008 02:31 AM

Doh thats got it - thanks very much!

furimedia 11-12-2008 10:20 AM

i'm also getting this, but may be different issue.

when i try to access a html file in /cgi-bin/something.html, i get that error.

is there any way around this?

mistwang 11-12-2008 11:14 AM

LiteSpeed does not allow serve any static content from a CGI directory for security reason.
If you really need to do this, you can use "Alias" or "AliasMatch" directive to tell LSWS that those files should be served as static content.


All times are GMT -7. The time now is 02:07 PM.