Question

How to Upgrade php from 7.3 to 7.4?

I am using OpenLiteSpeed 1 click WordPress on Ubuntu 20.04 My droplets, 2gb CPU 2gb RAM

How to do this upgrade?


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.

Accepted Answer

you can try :

apt update

apt-get -y install lsphp74 lsphp74-common lsphp74-curl lsphp74-dev lsphp74-imap lsphp74-intl lsphp74-json lsphp74-ldap lsphp74-mysql lsphp74-opcache lsphp74-pspell lsphp74-sqlite3 lsphp74-tidy

after that , edit file /usr/local/lsws/conf/httpd_config.conf , find line lsphp73/bin/lsphp and change it to lsphp74/bin/lsphp

restart OLS and PHP by systemctl restart lsws and pkill lsphp

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

It Works!

Thank you very much