Question

How to update PHP version for WordPress with OpenLiteSpeed from 7.3 to 7.4 (lastest)

Posted September 14, 2020 122 views
UbuntuPHPWordPressPHP FrameworksUbuntu 20.04

Hello,
And thanks in advance for all your comments.
I created a Wordpress website using latest tutorial for it, unfortunatly the latest isn’t so new, and i did install PHP 7.3 and i would love to install 7.4 for my new wordpress website.

  1. How to install the PHP 7.4 on Ubuntu 20.04?
  2. And OpenLiteSpeed packages.
  3. How to delete the old PHP 7.3 ?

Thanks for all

1 comment
  • Hello there,
    You can try this way-
    Open a terminal window on your Ubuntu Server.
    Issue the command sudo apt-get install phpmyadmin php-mbstring php-gettext -y.
    When prompted, type your sudo password.
    Allow the installation to complete.
    I hope this will help
    Best regards

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.

×
3 answers

Thank you @qtwrk for your support.
The last step “apt remove lsphp73” breaks my wordpress site, maybe, somewhere is using the old 7.3.

I need to find what and where is using 7.3

Thanks for all your kindness

  • did you do the step that edits the configuration file ? you can also verify by phpinfo , make sure it is in PHP 74 already before you remove php73

Thank you @qtwrk

  1. When I do php --version I get “PHP 7.4.3” and should be 7.4.9 Already reboot the droplet and nothing changed.

About the PHP73 I am afraid to remove it again, so I decided to leave it.

Thanks for all

Submit an Answer