By alex85810
There is no tutorial on upgrading PHP to the latest version on an OpenLiteSpeed droplet. The how-tos online on other resources reference things and config lines which do not exist on your openlitespeed droplet.
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!
Hello @alex85810
It is considered a good practice to use the newest available (stable) version. You can also make sure that your code is compatible with the newer version in order to prevent any issues.
You can check the following question on how to upgrade the PHP version -
https://www.digitalocean.com/community/questions/how-to-upgrade-php-from-7-3-to-7-4
You can substitute the command from apt-get -y install lsphp74 to apt-get -y install lsphp81
Regards
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.