Gideons
Gideons

Reputation: 155

Multiple php versions - how to update php version in Wordpress settings

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

Answers (1)

Dilyan Trayanov
Dilyan Trayanov

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

Related Questions