Question

How to upgrade PHP to 8.0 on an OpenLiteSpeed droplet?

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.


Submit an answer

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!

Sign In or Sign Up to Answer

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.

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