In version 2.0.0, CyberPanel has added the option to get all server logs by email. This can be very beneficial for a timely update if your server has some error or if it's behaving abnormally. This also includes notifications of
In order to enable the service, login to CyberPanel
Make sure you have the correct email address in your admin account. You can verify it by clicking the username and then "View Profile"
If the email isn't correct, use the "Edit Profile" option to change it.
Go to Server Mail under Logs menu
It will take you to a new screen
The configuration is pretty simple, if you don't want to send via third-party like SendGrid or MailGun etc, all you have to do is to choose default and click save
However, if you want to use third-party, choose SMTP
In order to fill SMTP credentials, go to your mail provider's dashboard and get the information
Here are a few examples
Use the following
SMTP Host: smtp.mailgun.com
Port : 587
Username and password as you have set up according to the video.
Save the settings and you will receive email update about your server
CyberPanel's main log file contains errors related to CyberPanel operations. If something goes wrong directly in CyberPanel this file should be checked
https://<IP Address>:8090/serverstatus/cyberCPMainLogFile
On the server, this file is located at
/home/cyberpanel/error-logs.txt
/usr/local/CyberCP/debug
Run command touch /usr/local/CyberCP/debug, this will start generating more debug logs. If you find any issue with CyberPanel, you can run this command and then capture the output of /home/cyberpanel/error-logs.txt and share it with our support team.
/usr/local/CyberCP/emailDebug
If you want logs in /home/cyberpanel/error-logs.txt to be emailed to you, please run touch /usr/local/CyberCP/emailDebug, you will get logs in your email. (Email of admin account will be used to send these notifications). This also includes notification if CyberPanel fails to obtain SSL for any domain.
This file contains errors logs for webserver (both OpenLiteSpeed and LiteSpeed Enterprise Webserver)
https://<IP Address>:8090/serverlogs/errorLogs
On server this file is located at
/usr/local/lsws/logs/error.log
This file contains global access logs for webserver (both OpenLiteSpeed and LiteSpeed Enterprise Webserver)
https://<IP Address>:8090/serverlogs/accessLogs
On the server, this file is located at
/usr/local/lsws/logs/access.log
This file contains email logs for postfix/dovecot.
https://<IP Address>:8090/serverlogs/emaillogs
On the server, this file is located at
/var/log/maillog
This file contains FTP logs.
https://<IP Address>:8090/serverlogs/ftplogs
On the server, this file is located at
/var/log/messages
ModSecurity audit logs from LiteSpeed Server. (This file is populated if ModSecurity is enabled)
https://<IP Address>:8090/serverlogs/modSecAuditLogs
On the server this file is located at
/usr/local/lsws/logs/auditmodsec.log