Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
litespeed_wiki:cpanel:disable_mod_userdir_lsws_cpanel [2018/08/02 13:36]
Jackson Zhang
litespeed_wiki:cpanel:disable_mod_userdir_lsws_cpanel [2018/08/02 14:19]
Lisa Clarke Proofreading
Line 1: Line 1:
-====== ​How to disable ​mod_userdir for LSWS on cpanel? ​======+====== ​Disable ​mod_userdir for LSWS on cPanel ​======
  
-On cpanel, there is [[https://​documentation.cpanel.net/​display/​72Docs/​Apache+mod_userdir+Tweak|Apache mod_userdir ​Tweak]], which you can use it to disable/​enable mod_userdir for apache.  Sometimes, ​even you disable mod_userdir on apachebut it seems still working with LSWS. Why and how to disable ​mod_uderdir ​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.  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
  
-On server level configuration:​+In server level configuration:​
  
   <​IfModule userdir_module>​   <​IfModule userdir_module>​
Line 20: Line 20:
   </​IfModule>​   </​IfModule>​
  
-On vhost level config:+In vhost level configuration:
  
   <​IfModule userdir_module>​   <​IfModule userdir_module>​
Line 33: Line 33:
   </​IfModule>​   </​IfModule>​
  
-Apache may use **itk****ruid2** or/and **mod_passenger**. In any of the cases, mod_userdir is disabled on Apache. LSWS does not use config for ruid2, itk and mod_passenger,​ hence only the following applied, which actually ​enable ​mod_userdir.+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   UserDir public_html
  
-To fix this, you can simply add "​userdir"​ to apache ​ignore ​module (LSWS Web Admin: Configuration ​-> Server ​-> General ​-> Using Apache Configuration File -> Ignore Apache Modules ​-> then add "userdir")in LSWS configuration and restart LSWS.+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 |}} {{ :​litespeed_wiki:​cpanel:​mod_userdir_disable_lsws.png?​300 |}}
  
  • Admin
  • Last modified: 2018/08/02 14:21
  • by Lisa Clarke