LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > External Applications > CGI/Perl/Python > lscgid: execve(): Permission denied

Reply
 
Thread Tools Display Modes
  #1  
Old 10-04-2008, 11:30 AM
kule kule is offline
Member
 
Join Date: Oct 2008
Posts: 20
Default 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
Reply With Quote
  #2  
Old 10-04-2008, 07:52 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Have you chmod the script.

Try
sudo -u <user_lshttpd_run_as> path_to_script

from command line.
Reply With Quote
  #3  
Old 10-05-2008, 02:31 AM
kule kule is offline
Member
 
Join Date: Oct 2008
Posts: 20
Doh thats got it - thanks very much!
Reply With Quote
  #4  
Old 11-12-2008, 10:20 AM
furimedia furimedia is offline
Senior Member
 
Join Date: Mar 2008
Posts: 58
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?
Reply With Quote
  #5  
Old 11-12-2008, 11:14 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
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.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 09:40 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.