Since PHP 8.2, the error_log_mode INI directive can be used to set permissions for an error log file, which configured with the error_log directive. Default value is 0644error_log_mode directive can be set in the php.ini file.
error_log_mode=0664The error_log_mode directive can also be set at runtime using the ini_set function.
<?php
ini_set('error_log_mode', '0664'); 
             
                         
                         
                        
Leave a Comment
Cancel reply