[CentOS] Troubleshooting php-fpm with apache on Centos 7

Tue Aug 8 20:30:22 UTC 2017
Nikolaos Milas <nmilas at noa.gr>

On 8/8/2017 9:16 πμ, Nikolaos Milas wrote:

> For your reference, I am also including the php-fpm configuration

I now browsed today's php-fpm log file (/var/log/php-fpm/www-error.log - 
which is rotated daily) and I found two PHP records about this website, 
with the following content:

----------------------------------------------------------------------------------------------
...
[08-Aug-2017 05:11:45 Europe/Athens] PHP Fatal error: Uncaught Error: 
Call to undefined function get_header() in 
/var/webs/wwwgreekgeo/www/wp/wp-content/themes/nirvana/404.php:10
Stack trace:
#0 {main}
   thrown in 
/var/webs/wwwgreekgeo/www/wp/wp-content/themes/nirvana/404.php on line 10
[08-Aug-2017 05:11:45 Europe/Athens] PHP Fatal error: Uncaught Error: 
Call to undefined function get_header() in 
/var/webs/wwwgreekgeo/www/wp/wp-content/themes/nirvana/404.php:10
Stack trace:
#0 {main}
   thrown in 
/var/webs/wwwgreekgeo/www/wp/wp-content/themes/nirvana/404.php on line 10
...
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

It appears as a single entry recorded twice (for some unknown reason).

So, even this one (double) entry means that THERE IS (at least some) PHP 
logging about this website!

But there are many questions:

- Why there is only one error entry about this website (in the last two 
and a half days)?
- Why is it double?
- Why there is nothing else (PHP-related) logged about this website?
- Why no other debugging info is being logged?
- Could php-fpm somehow be "blacklisting" the website PHP application 
(WordPress) due to this (and possible other) errors?

Any ideas?

Thanks,
Nick