Question

How Upgrade PHP from 7.2 to 7.4 with OpenLiteSpeed

Posted June 15, 2021 123 views
OpenLiteSpeed WordPress 1-Click

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.

×
Submit an Answer
2 answers

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

Hi @rondinelealves,

To install PHP 7.4, you can perform the following actions/commands on your droplet:

sudo dnf install epel-release

The above will add the proper repo to your system. Next install LSPHP packages from the official OpenLitespeed repository using the following command.

sudo dnf install lsphp74 lsphp74-mysqlnd lsphp74-process lsphp74-mbstring lsphp74-mcrypt lsphp74-gd lsphp74-opcache lsphp74-bcmath lsphp74-pdo lsphp74-common lsphp74-xml

That’s it. You are now done and have PHP 7.4