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)
-   -   Disable cgi when chmod file.cgi 755 (http://www.litespeedtech.com/support/forum/showthread.php?t=6030)

itdungpt 06-23-2012 11:18 AM

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 ?

NiteWave 06-24-2012 06:26 PM

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.

itdungpt 06-25-2012 01:37 AM

i want have lscgid: execve():i: Permission denied
when chmod 755 file.cgi

webizen 06-25-2012 11:21 AM

you can change permission of /path/to/perl to be non-executable.

itdungpt 06-25-2012 11:51 AM

Quote:

you can change permission of /path/to/perl to be non-executable.
How to ?

My path perl

Quote:

/usr/bin/perl

webizen 06-25-2012 11:52 AM

do the following:
Quote:

chmod -x /usr/bin/perl

itdungpt 06-25-2012 11:59 AM

I was try chmod -x /usr/bin/perl
But file.cgi still working.

NiteWave 06-25-2012 05:56 PM

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 ?

itdungpt 06-26-2012 05:00 AM

1 Attachment(s)
This is code file.cgi

please download Attach Files

webizen 06-26-2012 11:46 AM

see if you can run from command line.
Quote:

perl file.cgi
you should see permission error if perl is not runnable.


All times are GMT -7. The time now is 11:55 PM.