Why .error_log not write anything after installing cyberpanel?

.error_log is empty in PHP not writings anything inside .error_log even with some errors or warnings on my site. how to enable this .error_log

@usmannasir I figure out many problems because of file permission. there is no write .error_log file. also if I change dir permission 644 so I cannot generate an image or upload an image inside the dir. if I change dir file permission 755 so cannot see my image on the website. last time I faced the same issue .htaccess file there was also the same problem with file permission. now I figure out all problems that occur because of permission. I hope to fix it soon.

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:

  1. 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.
  2. 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..