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.
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:
Want to learn more? Join the DigitalOcean Community!
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Sign up now