Reputation: 155
I have a Ubuntu Apache2 server where I have updated PHP to 7.3.
I can see from /etc/php/ PHP-versions from 5.6. to 7.3. installed.
php -r "phpinfo();" | grep php.ini
Confirms me that the latest version is being used.
However, a Wordpress -website running on the server, is still using the old PHP 7.0. How can I configure Wordpress to use the new version instead? I haven't found the php path defined in any of the wordpress files.
Upvotes: 1
Views: 1545
Reputation: 549
After updating the php to version 7.3, you should enable that mode in apache configuration.
Run this command:
sudo a2enmod php7.3
Upvotes: 1