Differences
This shows you the differences between two versions of the page.
Next revision | Previous 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 [2023/02/13 17:56] Lisa Clarke Redirect to new Documentation Site |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Disable mod_userdir for LSWS on cPanel ====== | + | ~~REDIRECT>https://docs.litespeedtech.com/lsws/cp/cpanel/tunings/#disable-mod_userdir~~ |
- | + | ||
- | 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? | + | |
- | + | ||
- | vi /etc/apache2/conf/httpd.conf | + | |
- | + | ||
- | In server level configuration: | + | |
- | + | ||
- | <IfModule userdir_module> | + | |
- | UserDir public_html | + | |
- | <IfModule ruid2_module> | + | |
- | UserDir disabled | + | |
- | </IfModule> | + | |
- | <IfModule mpm_itk.c> | + | |
- | UserDir disabled | + | |
- | </IfModule> | + | |
- | <IfModule mod_passenger.c> | + | |
- | UserDir disabled | + | |
- | </IfModule> | + | |
- | </IfModule> | + | |
- | + | ||
- | In vhost level configuration: | + | |
- | + | ||
- | <IfModule userdir_module> | + | |
- | <IfModule !mpm_itk.c> | + | |
- | <IfModule !ruid2_module> | + | |
- | <IfModule !mod_passenger.c> | + | |
- | UserDir disabled | + | |
- | UserDir enabled check10cache | + | |
- | </IfModule> | + | |
- | </IfModule> | + | |
- | </IfModule> | + | |
- | </IfModule> | + | |
- | + | ||
- | Apache may use ''itk'', ''ruid2'' and/or ''mod_passenger''. In any of these cases, mod_userdir is disabled on Apache. LSWS does not use config for ruid2, itk and mod_passenger, hence only the following directive is applied, which actually //enables// mod_userdir. | + | |
- | + | ||
- | 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''. | + | |
- | {{ :litespeed_wiki:cpanel:mod_userdir_disable_lsws.png?300 |}} | + |