Hi, how do I update OpenLiteSpeed from PHP 7.2 to 7.4? Unfortunately I have little knowledge of the OpenLiteSpeed platform.
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.
Hi @rondinelealves,
You can follow these steps to install PHP 7.4 on your Ubuntu 18.04 Droplet(Not OpenLiteSpeed Droplet):
Add the PPA to your package repository list.
Update your repository cache to ensure packages from the ondrej/php repository are available.
To install PHP version from the PPA we use the following package name convetion phpX.X. For example, to install PHP 7.4 you would put php7.4 as the package name.
Having said that, you’ll need to install a lot of other PHP extensions like
You can find what you need as extensions based on your Website.
Hi @rondinelealves,
To install PHP 7.4, you can perform the following actions/commands on your droplet:
The above will add the proper repo to your system. Next install LSPHP packages from the official OpenLitespeed repository using the following command.
That’s it. You are now done and have PHP 7.4
Hi,
This is the case for how to set up lsphp74 on a virtual host, but it should also works in your case.
https://docs.litespeedtech.com/cloud/images/wordpress/#how-do-i-set-up-virtual-host-specific-php
Best