Questions about configuration

#1
Hi, i'm new to Litespeed and have some questions that i couldn't understand from docs.
I'm using centos 7 with cpanel / cloudlinux / litespeed.

1. in Cache -> Cache Storage Settings-> Storage Path i see that "This value must be set at the Server level in order to enable cache. Virtual Host level settings will override Server level settings. "
In my case (default install) it is unset. What's the default path for that setting? Is it a folder, or it's per virtual host setup in user's home dir? Should i set it to a folder or every virtual host has a value and overrides it? Is it ok to set a path to a /dev/shm folder?

2. In Tuning -> OS Optimization -> RAM Disk Path and Default SHM Directory are not set. Should i set it to /dev/shm or by default they use /dev/shm folder?

3. There is a folder /tmp/lshttpd/ with .sock and .sock.pid files. Is this possible to store these files in /dev/shm ? Where can i setup this path?

4. I get in error_log some errors of type [APVH_USERNAME_Sulsphp72:] failed to get stat of /proc/XXXX/cmdline.
What does that mean?

best regards,
 
Last edited by a moderator:

Pong

Administrator
Staff member
#2
RAM disk doesn't help that much as your thought and my recommendation is not to overlook at it.

Keep the cache folder to our recommendation and no need to use RAM disk. server root to /home/lscache then each virtual host to /home/$USER/lsache are good enough. You will need to set it and there is no default path if you don't set it. https://www.litespeedtech.com/suppo..._wiki:cache:common_installation:cpanel-shared

Tuning -> OS Optimization -> RAM Disk , you can set it to /dev/shm if you like.
no need to touch /tmp/lshttpd/ folder.

failed to get stat looks like PHP stat failed, https://www.php.net/manual/en/function.stat.php, no need to worry too much.






.
 
Last edited by a moderator:
#4
Hi, thank you for your response.
For most of my questions, i primarily want to understand what is what and not change it.

As i understand from your answer,
Cache -> Cache Storage Settings-> Storage Path is the path that defaults to /home/lscache (and is setup in whm->litespeed), so there is no reason to change it .

the Tuning -> OS Optimization -> RAM Disk Path path, what's about? I didnt find anything in the docs, for example "is the path that litespeed stores XX files", or the default value. Is the /dev/shm/lsws/ folder that's already in /dev/shm?

And the last, all steps of the document for optimization you send me are done after installation, except for storing opcache files to /dev/shm
I thought that opcache is stored in memory, isn't it?
Is there a guide i can read about it?

best regards,
 
Last edited by a moderator:

Pong

Administrator
Staff member
#5
server cache is /home/lscache, virtual host cache root is /home/$USER/lscache for each VH.

Tuning -> OS Optimization -> RAM Disk, Setting the RAM Disk Path allows you to designate the location of a RAM disk. LSWS will use this RAM disk to optimize performance when there is enough memory available. Server will automatically do it and you don't need to worry about it too much. You can just set it or just leave not set until you really need it at later stage. LSWS will automatically use ram to speed something, you will see /dev/shm/lsws folder since LSWS will automatically use ram doing something already. It has nothing to do with web server files or cache files etc. It is just some tmp files to boost performance when LiteSpeed running.


opcode cache is php cache storing in memory https://support.cloud.engineyard.co...erything-You-Need-to-Know-About-OpCode-Caches
 
Last edited:
Top