Cyberpanel Openlitespeed Issue with PHP Session Files Cleanup on Ubuntu 18

There’s an issue with the Cyberpanel installation using Openlitespeed on Ubuntu 18 where the PHP session files aren’t removed by the system installed.

You might see issues in your /usr/local/lsws/log/error.log like this

HTML

The cause is related to the build of of PHP session files in the /tmp folder, which usually is cleaned out by a cronjob in /etc/cron.d/php that calls /usr/lib/php/sessionclean which of course fails to running correctly due to lsphp nor working as intended.

The solution? Create a cronjob to delete the sess_ files. Here’s an example I found online

HTML

Add this code to a file an placed it in /etc/cron.daily, make sure to chmod u+x so its executable.

That’s it!


Did you like this article?


0 Shares:
You May Also Like

Corporate critics feel the stinging lash of DMCA misuse

I use to work for an ISP and was head of the Abuse Department. We only really received legitimate DCMA's that were then handled by legal. We didn't really seem to get that many DMCA notices, maybe its because we're a Canadian organization?
Corporate critics feel the stinging lash of DMCA misuse -

Two recent cases show that companies aren't always fans of criticism, and some will file misguided DMCA notices and defamation cases to scrub it from the Internet.

Read More...

Read More