Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
litespeed_wiki:cache:common_installation:cpanel-single [2016/05/31 13:47]
Michael Alegre [Set Server level cache root]
litespeed_wiki:cache:common_installation:cpanel-single [2016/07/25 14:37]
Long Hu [Set Server level cache root]
Line 4: Line 4:
  
 ==== Set Server level cache root ==== ==== Set Server level cache root ====
-The server level cache root is set by adding ​the following ​to your server level Apache config file:+Create a file named "​lscache.conf"​ with the following ​content in directory ''/​usr/​local/​apache/​conf/​includes/''​: 
   <​IfModule Litespeed>​   <​IfModule Litespeed>​
   CacheRoot /​home/​lscache/​   CacheRoot /​home/​lscache/​
   </​IfModule>​   </​IfModule>​
   ​   ​
-**Note:​** ​make sure ''/​home/​lscache/'' ​exists and server readable/​writeable (''​nobody:​nobody''​ for cPanel)CacheRoot is an absolute path for server ​level setting.+**Note:​** ​It is recommended to set the server level cache root to ''/​home/​lscache/'' ​or a disk partition with enough spaceServer ​level cache root will only be used when vhosts cache root not set. 
 + 
 +Then 
 +  cat /​usr/​local/​apache/​conf/​includes/​lscache.conf >> /​usr/​local/​apache/​conf/​includes/​pre_main_global.conf
  
 ===== Perform A Graceful Restart ===== ===== Perform A Graceful Restart =====
  • Admin
  • Last modified: 2016/07/25 14:39
  • by Long Hu