Set up for multiple PHP versions; now can’t find log
-
I have been using Error Log Monitor for years, and it is one of the plugins I install for all of the sites I support.
I have a development server running nginx, and I recently reconfigured it to allow for multiple versions of PHP. The default version was upgraded to PHP 8, and I then installed PHP 7.4 with an additional instance of php-fpm and set that to be the version that most of the sites on the server are running, until I can switch them over to test with version 8.
In the server blocks, the error log for each site is explicitly defined, and its location has not changed from before the PHP configuration changes. Each site’s wp-config has a correct ELM configuration that points to the log file, and all of that was working prior to the PHP changes. However, ELM is now unable to find the log files or display errors, and for sites that were working correctly before, I see an error:
The log file /var/opt/remi/php74/log/php-fpm/www-error.log does not exist or is
inaccessible.and ELM displays the message that is usually shows when a site is not yet configured:
Error Log Monitor setup
To start logging errors you’ll need to make a few changes to the WordPress
configuration.Ownership and file permissions look correct to me, but obviously something is not right somewhere. Any suggestion on where to look?
Thanks,
Barry
- The topic ‘Set up for multiple PHP versions; now can’t find log’ is closed to new replies.