Differences
This shows you the differences between two versions of the page.
Next revision Both sides next revision | |||
litespeed_wiki:config:disable_php_override_htaccess [2019/05/09 20:17] Jackson Zhang created |
litespeed_wiki:config:disable_php_override_htaccess [2019/05/09 20:17] Jackson Zhang |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== How to disable PHP override in .htaccess with LSWS? | + | ====== How to disable PHP override in .htaccess with LSWS? ====== |
''php_value'' and ''php_flag'' can be used in apache configuration or .htaccess to override php.ini settings. However, they are only supported by Apache mod_php handler, which is almost deprecated in most of the control panel systems and is replaced by php-fpm, fastcgi or lsphp. Hence if you place ''php_value'' or ''php_flag'' in .htaccess, Apache should return 500 error (you can check [[https://support.plesk.com/hc/en-us/articles/213409529-Website-hosted-in-Plesk-does-not-work-Invalid-command-php-flag-or-php-value-|a plesk document]] for details). | ''php_value'' and ''php_flag'' can be used in apache configuration or .htaccess to override php.ini settings. However, they are only supported by Apache mod_php handler, which is almost deprecated in most of the control panel systems and is replaced by php-fpm, fastcgi or lsphp. Hence if you place ''php_value'' or ''php_flag'' in .htaccess, Apache should return 500 error (you can check [[https://support.plesk.com/hc/en-us/articles/213409529-Website-hosted-in-Plesk-does-not-work-Invalid-command-php-flag-or-php-value-|a plesk document]] for details). |