• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Resolved php-fpm_error.log is huge how to disable or delete apache log?

Quinten

Regular Pleskian
Server operating system version
Ubuntu 18.04.5 LTS
Plesk version and microupdate number
18.0.46
Goodmorning,

For a few days now one of our subscriptions has a very big php-fpm_error.log there seems to be a problem with the website and it is writing errors fast.
The customer is aware of this issue and they are looking into fixing it.
Now for the time being i want to delete or get rid of the log because it takes up 50Gb of space.

I delete the log file manually but the next day or after i run "plesk daily ExecuteStatistics" its back.
I have log rotation set on daily and maximum logs on 1 but it keep coming back.

Anyone have any ideas?

I tried this but it doesn't work.
 

Attachments

  • log.png
    log.png
    4.9 KB · Views: 3
Thank you for the quick reply!

ls -l /etc/logrotate.d/*php*
-rw-r--r-- 1 root root 211 Nov 8 2021 /etc/logrotate.d/plesk-php72
-rw-r--r-- 1 root root 221 May 19 2021 /etc/logrotate.d/plesk-php73
-rw-r--r-- 1 root root 221 Jun 4 2021 /etc/logrotate.d/plesk-php74
-rw-r--r-- 1 root root 221 Aug 27 2021 /etc/logrotate.d/plesk-php80
-rw-r--r-- 1 root root 221 Feb 18 2022 /etc/logrotate.d/plesk-php81

I seem to not have an php-fpm one
Do i create one or can i apply the 100M change to the php74 one (thats the one the website uses)
 
I still have this issue and the log file comes back everyday and gets bigger.

Anyone got any ideas?
 
Thank you for the quick reply!



I seem to not have an php-fpm one
Do i create one or can i apply the 100M change to the php74 one (thats the one the website uses)
Is it ok to create a php-fpm one? does anyone know?
The log file is increasing and is above 50Gb now It keeps coming back every day.
 
I just discovered I also have this problem. I've shut off PHP error logging in the domain's PHP settings, yet it's totally ignored, and the log file is growing a few MB per minute with redundant notices.

Would be nice to have a place to control these logs and disable or modify them only to record errors.
 
I was able to fix the error that was causing all the log entries.

Now i am left with this huge 51Gb file that keeps coming back everyday after the daily task.

I seem to not have an php-fpm one
Do i create one or can i apply the 100M change to the php74 one (thats the one the website uses)
I have done this but this does not help.

Please does anyone know anyway to solve this?
 
Just coming back to this to update that it was resolved.
Logrotation did the trick but i had to upgrade the server from Ubuntu 18 to higher.

Thanks for the help!
 
Back
Top