how to disable php.ini files and php flags in .htaccess for litespeed ?

#1
Hello,

how i can disable php.ini files for all users to change global php setting on litespeed ?
also php flags on .htaccess codes,

im using cpanel + litespeed + alt-php ( cloudlinux )

Best Regards,
 

Pong

Administrator
Staff member
#4
disable custom php.ini? The question is how did you enable the custom php.ini? If you did not enable, it should not be any custom php.ini.

Please give more real example for us to understand your issue.
 
#5
hello,
foe example user can create .htaccess file and put this command :

php_value memory_limit 512M

now memory limit change to 512M.

how we can disable this change ?

on Multi PHP Manager i selected suphp for handlesr, i can not select lsapi because im using litespeed.

i want use litespeed but i dont want any body change php settings by custom php,ini ro .htaccess
 

Pong

Administrator
Staff member
#6
You can not stop .htaccess php override. Actually cpanel MultiPHP manager use .htaccess php override as well.

on MultiPHP manager, you chose cgi or fastcgi for apache, when you switch to LSWS, it will automatically use lsphp.
 

Pong

Administrator
Staff member
#8
ps -ef | grep php

switch to apache, it may show php-fpm or others depend on handler you use..
switch to litespeed, it should show lsphp.
 
Top