PHP-FPM logs location

Looking for the php-fpm logs but I cannot find them. Are they disabled by default?

If you mean the error logs for php when you access a website try /var/log/{web server}/domain/domain.error.log

General logs are found in /var/log/ folder

I mean the error log where php-fpm would throw server reached max_children.
My /var/log/php7.4-fpm.log is empty and I’m not sure if the /var/log/{web server}/domain/domain.error.log is what I’m looking for

Any suggestions?

root@web01:/var/log# cat php7.4-fpm.log
root@web01:/var/log# cat php7.4-fpm.log.1
[23-Jan-2022 00:00:09] NOTICE: error log file re-opened
[23-Jan-2022 17:06:29] NOTICE: [pool xxx] child 23632 exited with code 0 after 10971.389447 seconds from start
[23-Jan-2022 17:06:29] NOTICE: [pool xxx] child 11135 started
[23-Jan-2022 17:06:35] NOTICE: [pool xxx] child 23618 exited with code 0 after 11001.150048 seconds from start

Seems to be working fine

I found those files and like yours my /var/log/php7.4-fpm.log file is empty and the other one php7.4-fpm.log.1 has some lines dating since hestiacp was installed.

Is this normal no logs since?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.