I am using OpenLiteSpeed 1 click WordPress on Ubuntu 16.04. I want upgrade the PHP version to 7.4,
sudo apt-get install php7.4
but failed.
Also I can’t upgrade ubuntu version. Please help
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,
Do you get a specific error when you try to install the newer version?
I could suggest following the steps from the first answer here:
Make sure to first backup your Droplet, as this is a major upgrade, so if anything goes wrong, you would be able to revert back to the working version of your website/server.
Alternatively, what you could do is to deploy a new server with Ubuntu 20.04 and the latest PHP version via this link here:
https://marketplace.digitalocean.com/apps/openlitespeed-wordpress
Then once the server is up and running you could move your website over using a plugin like this one here:
https://wordpress.org/plugins/duplicator/
Best,
Bobby
Hi @angus,
For native OpenLiteSpeed/LiteSpeed, we can install PHP from LiteSpeed official repository.
- wget -O - http://rpms.litespeedtech.com/debian/enable_lst_debian_repo.sh | sudo bash
More, https://docs.litespeedtech.com/extapp/php/getting_started/
Since the image should have this repository installed, we can simply install packages directory like this
Example for lsphp80
- apt-get install lsphp80 lsphp80-common lsphp80-mysql lsphp80-memcached lsphp80-redis lsphp80-opcache lsphp80-curl lsphp80-imagick -y
OpenLiteSpeed comes with PHP detached mode by default, so need to restart PHP with the command killall -9 lsphp to make settings take effect.
More, https://docs.litespeedtech.com/cloud/images/wordpress/#how-do-i-use-lsphp80
In your case, you can replace lsphp80 with lsphp74 and it should work
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.
From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.