My server configuration (DigitalOcen):
Current PHP version: 7.0.33
Kindly help. Thank you!
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.
Click below to sign up and get $200 of credit to try our products over 60 days!
You can actually upgrade the PHP version, you can just install a new one.
Firstly, to be able to install a certain PHP version, in this case, 7.2 you’ll need to add a certain repository to your system
Update the repository index.
Install PHP 7.4 with the below command.
To install extensions run
The above are the required extensions for your WordPRess installation. Having said that it’s good to have these extensions as well.
That’s it, you now have your PHP version installed.
After bouncing around between a lot of tutorials, I finally got this to work. Here are the commands I needed: