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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > General > disable perl without affecting cpanel

Reply
 
Thread Tools Display Modes
  #1  
Old 07-25-2012, 07:05 PM
abbasb abbasb is offline
New Member
 
Join Date: Jul 2012
Posts: 2
Default disable perl without affecting cpanel

i have litespeed and cpanel both together
hoe can i disable perl and python permanently and securely for all users without affecting cpanel
there are many methods but all of them have some problems.
for example cpanel use perl and if we chmod perl bin directory some of cpanel functions will fails.
or if i change handler or mime types a user can reenable them by using an costume mime type
or if i disallow extensions by mod_security a user can change extension and run them
Reply With Quote
  #2  
Old 07-26-2012, 11:41 AM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,338
just revoke/remove execution permission of the perl/python binary
Reply With Quote
  #3  
Old 07-26-2012, 05:14 PM
abbasb abbasb is offline
New Member
 
Join Date: Jul 2012
Posts: 2
Quote:
Originally Posted by webizen View Post
just revoke/remove execution permission of the perl/python binary
as i said in my first post this will break cpanel because cpanel needs perl
please see below post in cpanel official forum

http://forums.cpanel.net/f5/how-disa...tml#post572653

cPanel staff said: this will break cpanel.

please give a correct way,
Reply With Quote
  #4  
Old 07-27-2012, 01:16 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,338
Try
Quote:
<IfModule litespeed>
DisableCgiOverride On
</IfModule>
"DisableCgiOverride On" is to prevent user from adding things like "AddHandler cgi-script .cgi .pl" at local .htaccess level.
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 04:58 AM.



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