Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision Last revision Both sides next revision | ||
litespeed_wiki:cpanel:disable-mod-userdir-lsws-cpanel [2018/08/02 14:20] Lisa Clarke created from disable_mod_userdir_lsws_cpanel |
litespeed_wiki:cpanel:disable-mod-userdir-lsws-cpanel [2018/08/09 19:40] Jackson Zhang |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Disable mod_userdir for LSWS on cPanel ====== | ====== Disable mod_userdir for LSWS on cPanel ====== | ||
- | On cpanel, there is an [[https://documentation.cpanel.net/display/72Docs/Apache+mod_userdir+Tweak|Apache mod_userdir tweak]], which you can use to disable/enable ''mod_userdir'' for Apache. Sometimes, when you disable mod_userdir on Apache, it seems to still be working with LSWS. So how do you correctly disable mod_userdir for LSWS on cpanel then? | + | On cpanel, there is an [[https://documentation.cpanel.net/display/72Docs/Apache+mod_userdir+Tweak|Apache mod_userdir tweak]], which you can use to disable/enable ''mod_userdir'' for Apache. When you are running Apache, mod_userdir is not compatible with the following modules/handlers and is actually disabled when mod_passenger, mod_ruid, mod_itk, PHP-FPM, or the CGI handler used. |
+ | |||
+ | Sometimes, when you disable mod_userdir on Apache, it seems to still be working with LSWS. So how do you correctly disable mod_userdir for LSWS on cpanel then? | ||
vi /etc/apache2/conf/httpd.conf | vi /etc/apache2/conf/httpd.conf | ||
Line 37: | Line 39: | ||
UserDir public_html | UserDir public_html | ||
- | To fix this, you can simply add "userdir" to the list of Apache modules to ignore in LSWS configuration and restart LSWS. Navigate to **LSWS Web Admin: Configuration > Server > General > Using Apache Configuration File > Ignore Apache Modules** and add ''userdir''. | + | To fix this, you can add **"UserDir disabled"** to pre_virtualhost_global.conf |
+ | |||
+ | vi /etc/apache2/conf.d/includes/pre_virtualhost_global.conf | ||
+ | |||
+ | <IfModule LiteSpeed> | ||
+ | UserDir disabled | ||
+ | </IfModule> | ||
+ | |||
+ | and then add "userdir" to the list of Apache modules to ignore in LSWS configuration:Navigate to **LSWS Web Admin: Configuration > Server > General > Using Apache Configuration File > Ignore Apache Modules** and add ''userdir''. | ||
{{ :litespeed_wiki:cpanel:mod_userdir_disable_lsws.png?300 |}} | {{ :litespeed_wiki:cpanel:mod_userdir_disable_lsws.png?300 |}} | ||
+ | Restart LSWS after the configuration change. | ||
+ | service lsws restart |