Well we can rule out the php sessions issue unless you are running multiple php versions. To be sure try this:
# start here copy line bleow me rm -f /var/lib/lsphp/session/lsphp71/* && rm -f /var/lib/lsphp/session/lsphp72/* && rm -f /var/lib/lsphp/session/lsphp73/* # then copy line below me rm -f /var/lib/lsphp/session/lsphp74/* && rm -f /var/lib/lsphp/session/lsphp80/* && rm -f /var/lib/lsphp/session/lsphp81/*
Now to address this cancerous component issue that craps a systemd service out:
Unable to register authentication agent: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Cannot determine user of subject
Run the commands line by line:
# add user to the group $ groupadd -g 23 nohidproc $ usermod -a -G nohidproc polkitd $ mount -o remount,rw,hidepid=2,gid=nohidproc /proc $ systemctl restart polkit # nano /etc/fstab or run it directly $ echo "proc /proc proc defaults,hidepid=2,gid=nohidproc 0 0" >> /etc/fstab # add new mount $ mount -a $ systemctl restart polkit
Can you repeat the actions on the websites, but have a putty window side-by-side running this command, please?
If you don’t have it, you can safely install it with:
apt install -y htop || yum install -y htop || dnf install -y htop
A short video doing this:
- Putting google chrome and putty side-by-side
- Running htop on putty
- Waiting for 15 seconds
- Do 3/4 actions on the website like update a page and such
- Wait for 15 seconds
No need to check it the CPU % on cyberpanel, we will trust in htop for that.
Please check this video: htop - YouTube
Check this out MariaDB / MySQL Tweaks As Default & Option
nano /etc/my.cnf use the keyboard shortcut CTRL+W to search for
skip-name-resolve and comment it out. Restart mariadb
systemctl restart mysqld
Exchange Redis with Memcached.
Memcached should help alleviate the database in this case.
After doing so, restart lsws and repeat the video, please.
systemctl restart lsws
How many users are accessing your website currently?
Do you have any proxy in front, like cloudflare?
How can I exchange Redis with Memcached? All I know, I can install PHP extension (Memcache and Redis), Should I uninstall Redis extension and install Memcache?
No, I meant going to the litespeed plugin option, object cache if not mistaken.
Redis should be active there, you change it to Memcached
Install it on the extension you showed above
You should also need to start the service at cyberpanel, but can’t access a panel right now to proper guide you, only in a few minutes
I can wait, I need a proper guide. Also, can I keep both PHP extensions Redis and Memcache?
What is your OS, ubuntu or centos?
My OS is: CentOS 7
Run these commands on the server as root. I don’t know if you have it or not when you first installed cyberpanel, so this is to make sure. In case “groupinstall” command fails, safely ignore and continue with the other commands.
yum install -y lsphp74-memcached lsphp74-pecl-memcached yum groupinstall "Development Tools" -y yum install autoconf automake zlib-devel openssl-devel expat-devel pcre-devel libmemcached-devel cyrus-sasl* -y wget -O lsmcd-master.zip https://codeload.github.com/litespeedtech/lsmcd/zip/master unzip lsmcd-master.zip cd lsmcd-master chmod +x fixtimestamp.sh ./fixtimestamp.sh ./configure CFLAGS=" -O3" CXXFLAGS=" -O3" make -j make -j install systemctl enable --now lsmcd
I run all commands and sent you request on Discord (DiezoGaming)
- Mysql optimizations like those suggested by @josephgodwinke
- LiteSpeed crawler setup + minor tweaks
Let’s see if it helped when crawler completes (it’s a big website)