Since by default all errors across all websites on my server are being dumped to the server log, i have added custom error log per domain.
I have specified its location within the vhost conf as such:
“ErrorLog /home/mywebsite.com/logs/error.log”
Error logs are now being output to this log, however when I click the error log button in Cyberpanel for this website, nothing happens. It does not open a blank error log, it just does nothing.
I have the same issue is it standard or did you manage to get a fix for it?
Hi, it’s an old topic, but check permissions and if ownership over the log file (and parent dir) are the same as for the main error log file?
Cheers!
I have created the following script to automatically solve the error_log issue for all domains on CyberPanel/OpenLiteSpeed.
With this script, permissions and log levels are automatically fixed for every site, preventing future issues…
Instructions:
- Review and download the script here:
GitHub - jesussuarz/cyberpanel-errorlog-fixer: Automatic script to fix permissions and update logLevel for error_log files in all CyberPanel OpenLiteSpeed websites. Ensures error logs work and are properly configured.
- Follow the steps provided in the repository to run it on your server.
With this approach, the problem is resolved quickly and centrally for all domains…