For some years we've been running WordPress with no issues.
WordPress (WP) version 5.2 requires PHP 5.6.20 or newer and the recommendation is PHP 7.x.
I installed PHP 7.2 packages from SCL:
Code: Select all
yum install centos-release-scl
yum install rh-php72 rh-php72-php rh-php72-php-fpm rh-php72-php-mysqlnd
systemctl enable rh-php72-php-fpm.service
systemctl start rh-php72-php-fpm.service
scl enable rh-php72 bash
systemctl restart httpd
I added /etc/profile.d/rh-php72.sh script:
Code: Select all
#!/bin/bash
source scl_source enable rh-php72
So far so good. I can log in to WP. I was able to update WP to version 5.2. No error messages, everything looks good in the WP dashboard.
In a web browser I can view the top level of the WP pages. When I select a link on the WP site I see the following:
Code: Select all
Your server is running PHP version 5.4.16 but WordPress 5.2 requires at least 5.6.20.
A reboot did not help (which was needed because of recent glibc updates).
What do I need to get WP to see the new PHP?
Thanks.