Skip to main content

Hello, 

 

I set retention time to 20 days, but all of my database are growing fast. 

 

After some researches, i found a cron task which is executed all nights. When i look into the logs, i saw this error : 

 

PHP Warning:  file_put_contents(/var/log/centreon/sql-error.log): Failed to open stream: Permission denied in /usr/share
/centreon/www/class/centreonLog.class.php on line 193

 

I try to execute “sudo -u centreon php /usr/share/centreon/cron/centstorage_purge.php” but i got same error. 

 

Is there anything i can do to solve this bug ?

 

Regards, 

 

Florian

Does apache own writing privileges on /var/log/centreon/sql-error.log ?


Good morning,

Sorry for my response time. The vacation was too long!

Indeed, the Apache user (www-data) has the right to write to the file /var/log/centreon/sql-error.log

Sincerely,

Florian


Reply