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

Go Back   LiteSpeed Support Forums > External Applications > CGI/Perl/Python > Disable cgi when chmod file.cgi 755

Reply
 
Thread Tools Display Modes
  #1  
Old 06-23-2012, 11:18 AM
itdungpt itdungpt is offline
Member
 
Join Date: Jun 2012
Posts: 11
Default Disable cgi when chmod file.cgi 755

hi,

I user cpanel + Litespeed

i was added

Quote:
<IfModule litespeed>
DisableCgiOverride On
</IfModule>
But chmod 755 file.cgi is file.cgi working

Can all help me disable ?
Reply With Quote
  #2  
Old 06-24-2012, 06:26 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,226
please refer:
http://www.litespeedtech.com/support...ead.php?t=4642
Quote:
"DisableCgiOverride On" is to prevent user from adding things like "AddHandler cgi-script .cgi .pl" at local .htaccess level.
need more info regarding why file.cgi still working.
Reply With Quote
  #3  
Old 06-25-2012, 01:37 AM
itdungpt itdungpt is offline
Member
 
Join Date: Jun 2012
Posts: 11
i want have lscgid: execve():i: Permission denied
when chmod 755 file.cgi
Reply With Quote
  #4  
Old 06-25-2012, 11:21 AM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,338
you can change permission of /path/to/perl to be non-executable.
Reply With Quote
  #5  
Old 06-25-2012, 11:51 AM
itdungpt itdungpt is offline
Member
 
Join Date: Jun 2012
Posts: 11
Quote:
you can change permission of /path/to/perl to be non-executable.
How to ?

My path perl

Quote:
/usr/bin/perl
Reply With Quote
  #6  
Old 06-25-2012, 11:52 AM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,338
do the following:
Quote:
chmod -x /usr/bin/perl
Reply With Quote
  #7  
Old 06-25-2012, 11:59 AM
itdungpt itdungpt is offline
Member
 
Join Date: Jun 2012
Posts: 11
I was try chmod -x /usr/bin/perl
But file.cgi still working.
Reply With Quote
  #8  
Old 06-25-2012, 05:56 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,226
Quote:
But file.cgi still working.
what's the first line of file.cgi ?

what do you mean "still working", access it through domain.com/file.cgi ?
Reply With Quote
  #9  
Old 06-26-2012, 05:00 AM
itdungpt itdungpt is offline
Member
 
Join Date: Jun 2012
Posts: 11
This is code file.cgi

please download Attach Files
Attached Files
File Type: zip file-cgi.zip (13.6 KB, 5 views)
Reply With Quote
  #10  
Old 06-26-2012, 11:46 AM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,338
see if you can run from command line.
Quote:
perl file.cgi
you should see permission error if perl is not runnable.
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 02:46 AM.



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