Errors on cpanel after activation lscache

#1
I am seeing a lot of:
Failed to create cache root directory: lscache

in logs after I enabled caching following https://www.litespeedtech.com/suppo..._wiki:cache:common_installation:cpanel-shared on a cpanel/WHM server by running the script at
https://www.litespeedtech.com/packages/lscache/set_cache_root_policy.sh

Is this expected behavor? This created

/etc/apache2/conf.d/userdata/lscache_vhosts.conf
<IfModule Litespeed>
CacheRoot lscache
</IfModule>



Second Is this set up preferable over just adding

<IfModule Litespeed>
CacheRoot /home/lscache/
</IfModule>

server wide?
 

Jon K

Administrator
Staff member
#2
Both are needed. lscache_vhosts.conf and pre_main_global.conf. pre_main_global.conf will setup cache to be served. Then lscache_vhosts sets where each user's cache dir is to be setup. This way there is no conflict by using my main directory. If this is WHM server you can actually set it up in our WHM Plugin as well. A bit less hassle.
 
#3
Does this mean 'Failed to create cache root directory: lscache' is ignorable? And if I were to fix this error what folder needs to be created? Is it ~username/lscache ?
 
Top