I’m trying to run a sage theme on my Wordpress site which requires at least PHP version 8.1.0. When I check php version in droplet console, it shows php version 8.2.6. But when I run phpinfo() function, it shows php version as 8.0.22 in the browser. This is causing my site to break when I activate sage theme on my site. How should I go about making the Wordpress site to run on php 8.1 or above?
When I run phpinfo() function, the ‘Loaded Configuration File’ is ‘/etc/php/8.0/apache2/php.ini’
Now there are 2 other php ini files as well in this directory - ‘/etc/php/’. These are php 8.1 and php 8.2 ini files.
Now I’m not sure how should I go about loading php 8.1 ini file instead of php 8.0 ini file.
The droplet is using Ubuntu 22.04
Thanks in advance for any help on this.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.