Install PHP 7.4 on CentOS 7

To install PHP 7.4 on CentOS 7, first install remi repository.

Set PHP 7.4 as default PHP

Install PHP with

After installing check PHP version with php -v, you will see

CentOS 7 iinstall PHP 7.4

At the time of installation, it is PHP version 7.4.0RC3, it will change as new 7.4 release become available.

Related Posts

Install PHP 7.2 on Ubuntu
Install PHP 7.3 in CentOS 8
PHP

Need help with Linux Server or WordPress? We can help!

2 Comments

  • Hi,
    I am not an expert and having trouble updating to PHP 7.4 from 7.2.
    I have Apache-NGINX-Varnish, CentOS 7.7 and CWP Pro.
    I did the 2 steps above to install remi repository and PHP and 7.4 is present in the repositories list.
    However php -v still returns 7.2 and CWP also shows the old version.
    The CWP Switcher only shows and can build up to 7.3.
    What else do I need to do to? I believe I need to change some config files to get NGINX use the new PHP version, however I don’t want to experiment and crash my server…
    Thanks.

  • thank you
    step by step installation is useful for update php 7.4
    its working .
    before following this steps plz uninstall the php xx then follow this steps
    thanking you.

Leave a Reply

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