permission issue on sugar log file (644)

Hello Team,

We are getting permission denied error on the default SugarCRM logfile. Whenever it creates a new log file with rw-r--r-- (644) access.

Every time, we require to change 777 permission on the log file. Please let us know how to fix it so that by default it set to 777.

Thanks!

Regards,

Pavan

Parents
  • Check include/SugarLogger/SugarLogger.php - Sugar will create the file using touch , resulting in default 644 permissions.

    @touch($this->full_log_file);

    If you want alter permissions, you may want to extend logger and add a chmod to set 777 permissions.

    For some reason, this doesn't follow the permissions as mentioned in the documentation, it's directly using @touch

Reply
  • Check include/SugarLogger/SugarLogger.php - Sugar will create the file using touch , resulting in default 644 permissions.

    @touch($this->full_log_file);

    If you want alter permissions, you may want to extend logger and add a chmod to set 777 permissions.

    For some reason, this doesn't follow the permissions as mentioned in the documentation, it's directly using @touch

Children
No Data