Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Last revision Both sides next revision | ||
litespeed_wiki:config:disable_php_override_htaccess [2019/05/09 20:17] Jackson Zhang |
litespeed_wiki:config:disable_php_override_htaccess [2019/05/13 12:44] Jackson Zhang |
||
---|---|---|---|
Line 27: | Line 27: | ||
In some cases, you may want to disable such php override in .htaccess for LiteSpeed as well. There is a dedicate Apache directive ''DisablePhpOverride htaccess'' can be used at server level httpd.conf to achieve this. | In some cases, you may want to disable such php override in .htaccess for LiteSpeed as well. There is a dedicate Apache directive ''DisablePhpOverride htaccess'' can be used at server level httpd.conf to achieve this. | ||
- | For example, place the following to the global include file such as ''pre_main_global.conf'' for cpanel: | + | For example, on plesk, create a file named DisablePhpOverrideLiteSpeed.conf in the following directory depending upon your system: |
+ | |||
+ | For CentOS, the /etc/httpd/conf.d/ directory | ||
+ | For Debian, the /etc/apache2/conf.d/ directory | ||
+ | For Ubuntu, the /etc/apache2/conf-enabled directory | ||
+ | This DisablePhpOverrideLiteSpeed.conf file should contain the following: | ||
<IfModule LiteSpeed> | <IfModule LiteSpeed> |