easyengine icon indicating copy to clipboard operation
easyengine copied to clipboard

PHPRedis not available on PHP 8.1

Open joebailey26 opened this issue 3 years ago • 3 comments

Is there a way to add this package to the PHP 8.1 docker container?

joebailey26 avatar Nov 11 '22 22:11 joebailey26

I've now done a thorough test and ensured PHPRedis is working as expected on PHP8, which it is. But if I update the site to PHP8.1, I get Warning! PHPRedis extension is unavailable, which is required by WP Redis object cache. And I can't see redis in the output of php -info either.

joebailey26 avatar May 16 '23 19:05 joebailey26

After a bit of digging, I found that the packages were being installed, but not included in PHP's extensions. There were 4 packages total that hadn't made it to the PHP8.1 install, apcu, mcrypt, redis, and timezonedb. I realised there wasn't an .ini file for these in the following directory: /var/lib/docker/volumes/wwwjoebaileyphotographycom_config_php/_data/php/conf.d so I copied the files over from a PHP8.0 site, reloaded the PHP8.1 site and now the extensions are working.

I wonder if somewhere in EasyEngine's build step these files have just been missed and need to be added?

joebailey26 avatar May 17 '23 09:05 joebailey26

Further update, this is only happening when updating sites. New sites are not affected by the lack of files.

joebailey26 avatar May 21 '23 19:05 joebailey26

Please update EasyEngine to the latest version using ee cli update command. This issue has been resolved in newer EasyEngine releases. In order for a fresh installation, consider using the command wget -qO ee rt.cx/ee4 && sudo bash ee to use the automated installation script to install the latest version of EasyEngine.

L0RD-ZER0 avatar May 14 '24 13:05 L0RD-ZER0