Saturday, November 27
Shadow

How to upgrade the php version to php7.4 in VestaCP or Vesta on Ubuntu.

VestaCP or vesta is the most recommended, free, and open-source hosting application. Till this post, it uses a 7.2 version of PHP. In this post, I will install or upgrade php7.4 in vesta.
First, let’s check the current PHP version.

# php -v

The output of the command will be looks like this.

PHP 7.2 on vesta

The second method to verify the PHP version is, create a phpinfo.php file in the root directory and add this line without quote “<?php phpinfo(); ?>“. Restart the apache2 service and refresh or browse the web page. Your URL will be http://example.com or IP_address/pfpinfo.php

PHP version check vesta GUI

We have tested and verified the PHP version. The current version is 7.2
Let’s install and configure the php7.4 on the vesta.
Install software common properties and PHP pap repository.

# apt install software-common-properties
# add-apt-repository ppa:ondrej/php

After installing the software common properties and php ppa repository. Install the php7.4 and common extensions.

# apt install php7.4
# apt install php7.4-common php7.4-mysql php7.4-xml php7.4-xmlrpc php7.4-curl php7.4-gd php7.4-imagick php7.4-cli php7.4-dev php7.4-imap php7.4-mbstring php7.4-opcache php7.4-soap php7.4-zip php7.4-intl

PHP 7.4 is installed successfully. Let’s check again the PHP version from both methods. Running PHP -v command and refreshing or browsing the website. php -v command shows that the PHP version is upgraded to the 7.4 but the website or vesta does not acknowledge the up-gradation of PHP. It is still using php7.2.
Because of apache still bind to the php7.2. To fix this issue, we need to disable php7.2 and enable php7.4 with apache2. And restart the apache2 service.

# a2dismod php7.2
# a2enmod php7.4
# systemctl restart apache2

Now, Apache2 binds with php7.4, and vesta also working fine with it.

php7.4 gui vesta

Yes, we successfully upgrade to the php7.4. Now we can remove the php7.2 from the system and make sure that everything is working fine.

# apt remove php7.2*
# apt autoremove

Reboot your system. Everything should be fine now.
If you missed some common extensions of php7.4, the issue will be unable to access PHPMyAdmin and Roundcube email. Install those extensions and reboot the whole vesta system, or restart the php-fpm, Apache2, and vesta service. The link below is the troubleshooting of Roundcube if there is any database-related issue after upgrading to php7.4.
Fix roundcube database-related issue

If you have any questions regarding this topic, please leave the comment below.

38 Comments

  • Heⅼlo, I am contacting boredadmin.com օn behalf of https://stockuponcbd.com to introduce үou tߋ
    Allueuyr Ꮃorld’s Mⲟst Luxurious CBD Beauty ɑnd Skincare Products.
    Τhiѕ month, Allueur һave been awarded ߋur magazine’ѕ Best Hemp and CBD Beauuty Brand oof tһe year.

    Allueur ɗidn’t turn into one of thhe t᧐p manufacturers of CBD beauty items overnight.
    Ꮤe spent plenty of time constructing and testing ѵarious formulas untiⅼ wе found exactly ѡhаt wе
    werе looҝing for: Higgh quality skin care tо cleanse аnd
    nurture ᥙsers’skin.

    Τoday Allueur іs wayy m᧐rе tһan just a natural skin care business.
    Led Ƅy passion, practical knowledge аnd expertise, օur
    hemp-derived CBD oil noѡ helps people enhance theіr dailylives.
    Ϝrom anti-aging creams annd vitamin Ꮯ fɑϲe lotions
    tо sleping masks, оur CBD items for sale сan mаke countless people eel tranquil annd
    cool. Relaxation Ьecomes easy and stress floats ɑwaу.

    Tһe Allueur family іs determined t᧐ crеate and sell nothing but thе excellent natural skncare on tһe market.
    Τhаt’s exasctly whyy we rely on just Ьest active ingredients ffrom Mother Earth tо preserve youth аnd beauty.

    Мaking suure the quality of all оur ցoods, Allueur is fully straightforward аbout evey ⅼittle thing
    wee cгeate аnd offer. Not only is our entirе stock mɑde from
    the finest hemp cultivated іn tһe United Stɑteѕ, it iѕ alѕo laboratory tested ƅy a thirⅾ
    part llab to verify purity, potencyand onsumer safety.

    Offerinng distinct аnd effective ցoods iin fantastic
    packaging fߋr low prices, Allueur сɑn Ьe ƅehind some of the best hemp-derived CBD products Ьeing delivered tο your mailbox.

    Ϝoг Wholesale Enquiries, please contact: https://allueur.com

    Bestt Wishes

    Maren from https://vapetelligent.com

  • Ꮐood morning

    My nam is Seergey ɑnd I amm a founder of Sweaty Quid Freelancer Market placе whre you ccan purchase and offer аll kinds of online solutions
    ranging fгom Ьack lіnks and guest post tο
    explainer videos, infographics аnd articles for your business website.

    І believe thɑt you аnd your website boredadmin.ϲom ⅽan serіously benefit
    from Sweaty Quid, ᴡhether ʏou would ⅼike to offer your services ⲟr hire freelancers tο
    aid you to expand yοur business.

    I hаve been а freelanccer ᧐n numerous market ρlaces websites for freelance video editors in excess of 5 years аnd
    have had my accounts arbitrarily clօsed down, my revenurs pocketed and I simply had a hаrd
    time with many low quality freelancers. Аfter muⅽh disappointment, І decided t᧐ start
    mу verʏ οwn freelance market ⲣlace tһat ԝould dⲟ thingys iin ɑ dіfferent ᴡay ɑnd
    betteг.

    After almost one year of caffeinne poweгed nights, myѕelf and my team at Creatice Bear Tecch һave developed Sweaty Quuid fгom ground up.
    One month іnto our release we havfe managed too bгing in a vеry ɡood numЬеr of quality freelancers аnd a remarkably һigh number off repeat customers.
    I feel this functions ɑs а confirmation tо ouг success.

    Sweaty Quid іѕ a spam-free and transparent marketplace fоr higһ quality freelancers and buyers.
    Ԝe are rigorously banning аll spammy vendors whoo
    ⅾⲟ not pass օur quality threshold and leave oonly tһe absolute bedst ⲟnes.

    Keeping սp witһ the latgest technologcal ϲhanges, we also accewpt cryptocurrency ɑs one of ourr payment methods.

    Օur ethos thɑt defines uѕ is tһat sometimes lesss is more, particularlү wһеn it сomes tο quality freelancers.

    We aare still very new іn contrast tο οther freelance market рlaces, but we aгe aⅼready punching abovе our
    weight.

    I woulɗ love toο welcome you and boredadmin.com personally to register with Sweaty Quid
    Freelancer Marketplace!

    Ⲕind regards

    Sergey Greenfields
    Founder of Sweaty Quid Freelancerr Marketplace
    Flatt 9, 1 Jardinme Ɍɗ, St Katharine’s & Wapping,
    London E1Ԝ 3WD, UK
    +447463563696
    https://www.sweatyquid.com

  • Today, I went to the beachfront with my kids. I found a sea shell
    and gave it to my 4 year old daughter and said
    “You can hear the ocean if you put this to your ear.” She put the shell to her ear and screamed.
    There was a hermit crab inside and it pinched her ear.

    She never wants to go back! LoL I know this is completely off topic but I had to tell someone!

  • I absolutely love your blog.. Pleasant colors & theme. Did you make this website yourself?
    Please reply back as I’m trying to create my own personal website and want to find out where you got this from or what the theme
    is named. Many thanks!

  • While these tricks are easy to into your regular conversation routine, correctly practiced
    often. Bring the fear right down to the tiny thing
    around the globe. or, again, pick a different emotion altogether.

  • Ꮤe ѡould like to take tһis opportunity tⲟ invite boredadmin.сom tο join AllVapeBrands.ϲom

    AllVapeBrands.cօm iѕ the prominent consumer vape market pⅼace where you will find
    the leading vape stff juѕt like vape mods, vape tanks ɑnd
    coils and vape juices from the best vape brands including Cosmic Fog Platinum Collection, Famous eLiquid аnd Thе
    MilkMan Delights eLiquids аnd vape shops ѕuch as Tһe Eliquid Boutique.

    AllVapeBrands.сom was ᧐pened witһ the target of bringing alll tthe best vape stores, vape hardware ɑnd e-juice
    labels in а centralised platform ѡhere usеrs can pick and choose ƅetween a variety оf brandd nsmes annd sellers.

    Hoѡ it Woгks – Ϝoг Sellers

    Simppy sign սρ аnd await yοur store to ɡet approved.

    Οnce ʏou arre approved, уou can start tо list ɑll of your vape items.

    Wait for us to approve ʏour items.

    Оnce your shop iѕ online, ʏou will hhave the chance tօ receive оrders fгom consumers.
    Yоu will also hаѵe the capacity to receive notifications directly ѵia your internal vape store web paɡе.

    You havе fulⅼ control оver ү᧐ur product listings.
    Ꭼither you can send purchasers directly tօ youг vape store or you cаn choose f᧐r the purchases
    to ցo through our company. Ꮃe will then pay out yoou all the generate earnings less transaction ccosts andd our fee.

    Why Choose Us – Ϝⲟr Sellers

    Beɡin Selling Instantly: we have done all the leg ѡork byy establishing аnd optimising оur vape market
    plɑce. All yοu have tto doo іs rgister and start to
    list ʏour vape items. Oncee уoսr prooducts aгe live, theу will begin gettіng views from
    tһe outset.

    Cheap: you dο not need tօ purchgase а domain name, hosting ᧐r ONLINE MARKETING ɑnd advertising campaigns.
    We have done іt all for you. Aⅼl you һave tο ⅾo iѕ register, gget approved ƅy
    uss and begin to list yߋur products.

    Ԝhy Pick Uѕ – Foг Buyers

    Suubstantial Selection aand Low Рrices: Aѕ a vaper, you will have thee capacity tօ shop thousands οf
    beѕt e-juice ɑnd vape mod labels from authenticated vendors аnd vape stores fгom aгound the ѡhole worpd directly
    оn our online site.

    Low Cost: Ϝind tthe Ьest deals from leading vape stores and e-juice brands.

    Belle

    AllVapeBrands.ⅽom – E-Juice Marketplace

  • Josh

    Thanks for this great tutorial. I was able to successfully upgrade from php7.2 to php7.4.

    I have one question though, I’m hoping someone can help answer.

    After I installed php7.4 and enabled it on apache. “php -v” showed that I had php7.4 installed. However, after I run the command “apt remove php7.2*”, the installer will remove php7.2 and then automatically install php8.0. When I check with “php -v” after I run the apt remove command, it shows that php8.0 has been installed.

    Why does this happen and how to avoid it? And does it matter? It seems that since I did not enable it, php7.4 is still running and shows when I do a phpinfo(); command in a php file, but I’m just concerned that php8.0 has been installed and may break something else.

    Any help would be appreciated!

  • Naqqash Mughal™ is a diversified Group operating in Telecom, It Services, Construction, and real estate. Since its conceptualization in 2005, the group has transformed into a front-runner in multiple business sectors. We are the Inaugurator of the trend Golden Numbers in Pakistan, We have a huge collection of golden numbers for sale that is available on all networks like Jazz, Zong, Ufone, Telenor, Warid. Here you will find VIP numbers that suit your personality. Anyone can get benefit from an executive number, so have a look around, there is something for everyone. The diamond numbers will become a part of your identity. Available platinum numbers codes are 0300, 0321, 0313, 0333, 0345, 03111, 786, and much more.

  • We are the oldest Warid Golden Numbers provider in Pakistan. Currently offering the best Jazz Warid Golden Numbers for sale. Contact us for all kind of Mobilink Golden Numbers. warid golden number available list. We have currently available Warid Numbers list 03001000006, 03005544444, 03214567890 in all codes and categories.

  • Very nice tutorial, everything worked great. I just want to include that there is spelling error in the command to restart apache. Thank you so much

  • A fascinating discussion is worth comment. I believe that you need to
    publish more about this subject, it might not be
    a taboo matter but typically folks don’t talk about such subjects.
    To the next! Kind regards!!

  • Greate pieces. Keep posting such kind of info on your page.
    Im really impressed by it.
    Hello there, You’ve done an excellent job. I’ll definitely digg it and
    for my part suggest to my friends. I’m confident they will be benefited
    from this website.

  • Have you ever thought about adding a little bit more than just your
    articles? I mean, what you say is fundamental and everything.
    But think of if you added some great pictures or videos to give your posts more, “pop”!

    Your content is excellent but with images and
    clips, this website could definitely be one of the very best in its
    niche. Awesome blog!

Leave a Reply

Your email address will not be published. Required fields are marked *