Hi guys, in Cyberpanel, OLS web admin panel looks pretty concise, and this advantage can be integrated into CyberPanel. Some advanced configuration needs to be done in OLS webadmin console. including how to stop log, You can fix the error to problem-solving or turn off error log easily. But, you must enable webadmin console in Cyberpanel.
How to setup and login to OpenLiteSpeed webadmin console
First, run this line in SSH to setup login info for webadmin console
/usr/local/lsws/admin/misc/admpass.sh
Fill username: admin and your password
And then, login into CyberPanel, and add TCP 7080 port to firewalld in order to access it. (applies also to CSF Firewall)
Next, please don’t forget to reload the firewalld once a new rule is added.
After that, you can access webadmin by https://server-IP:7080 and with the login info you set in SSH.
Disable Huge Log Openlitespeed Cyberpanel
- Access webadmin openlitespeed https://server-IP:7080, fill user and password
- Open Server Configuration, and click LOG menu
- In Server Log, set log level to Warning (So the server only makes a log if there is a warning only), then save it
- In Access Log, set Keep Days from 30 to 1, then save it
- Graceful restart, Done.
Well that’s just How to Disable Huge Log Openlitespeed Cyberpanel, if there are any questions related to this discussion topic, please feel free to comment and give feedback
Automatic Remove Cyberpanel Error LOG
1. Open your putty and login to your server
2. Make logdelete.sh in your root folder, write command
cd
nano logdelete.sh
Write:
find /usr/local/lsws/logs/ -name ‘*log.2*’ -delete
Save (Ctrl + x then y)
3. Make Cron:
EDITOR=nano crontab -e
Add:
0 0 * * * /logdelete.sh
Save (Ctrl + x then y)