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

Extremely Manual iPhone Firmware 2.1 Jailbreak for 3G Released by XPWN

There is a very manual tutorial up at xpwn.co.uk on how to Jailbreak your iPhone with the 2.1 firmware:
T14:19 http://xpwn.co.uk/2.1JBtut.txt 14:19 2.1 3g jailbreak tutorial 14:22 geeb: has it been tested? 14:22 comm 14:22 yes by me 14:22 and others in #xpwn are running it now
The following are the instructions
Download the 2.1 firmware <--http://appldnld.apple.com.edgesuite.net/content.info.apple.com/iPhone/061-5198.20080909.K3294/iPhone1,2_2.1_5F136_Restore.ipsw
Read More

Mobile Chat When Will it Work?

If you've had an iPhone since the launch of Apples Application Store, then you most likely have bought the app Mobile Chat. I mean who wouldn't, just looking at their features http://mobilech.at/features you'd be silly not to pick the only instant messenger on the iPhone. Granted there are Web App versions, but nothing application wise. Here are some of the features.
MobileChat supports the following protocols: * AIM/ICQ/.Mac/MobileME * Windows Live/MSN * Yahoo Messenger * GTalk * Jabber/XMPP Multiple Accounts
Read More