For clarity, I'm particularly interested as to whether it makes a difference that I'm using version 7.1 rather than 7.0, as many previous solutions aren't specific to this latest release from Dec 16.
I've installed PHP7.1 which we're planning to use with Wordpress, but can't get the MySQL extension to load, so we're getting the browser error "PHP installation appears to be missing the MySQL extension which is required by WordPress."
It's a red hat box and the web server is Nginx, with the yum installer.
I'm aware that the old MySQL extension was deprecated after v5, and that it's now PDO_MySQL instead (not sure if MySQLi is still okay after v7.0?). So I've installed the latest package and updated the php.ini file with extension=/usr/lib64/php/modules/pdo_mysql.so
(and also added mysql.so
and mysqli.so
, for completeness, and checked that the files are there in the actual folders).
Both PHP-fpm and Nginx have been restarted, but when I list the loaded extensions there's nothing for MySQL, and I'm still getting the same browser error message.
Should this work with v7.1? What am I missing?
Thanks!