Update PHP 5.4 version to PHP 7.4

Update PHP 5.4 version to PHP 7.4

Step 1: Check the version of the php .


Command : # php - v 



Current version is PHP 5.4 


Step 2 : Install Remi Repository and EPEL Repository by using following commands .


Commands :


# wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

# wget http://rpms.remirepo.net/enterprise/remi-release-7.rpm

# rpm -Uvh remi-release-7.rpm epel-release-latest-7.noarch.rpm



Step 3 : After installing the repository, you must perform the following additional configurations .

Commands : 


# yum install yum-utils

# yum-config-manager --enable remi-php74





Step 4: Install PHP 7.4 .


Command : # yum install php php-opcache php-gd php-curl php-mysqlnd 



Step 5 : Update the packages . 


Command : # yum update -y 



Step 6 : Check the version of PHP now .

Command : # php -v 



PHP has been updated to 7.4


THANK YOU !



    • Related Articles

    • How to Install (Linux, Apache, MariaDB, PHP) LAMP Stack on CentOS 7

      LAMP, which operates Linux as the operating system, is an open-source web-developing platform using Apache as the web-based server and PHP as an object-oriented scripting language. (Instead of PHP, Perl or Python are sometimes used.) Prerequisites ...
    • How to Install PHP in CentOS 7

      PHP is the part of our setup that processes code for dynamic content display. It can run scripts, link to our MySQL databases, and view processed content to our web server. Step 1: We can use the following command for the installation of our ...
    • Upgrading WordPress Manually on Linux sever

      Step 1: login to wordpress by accessing the server IP_address/wp-admin or domain_name/wp-admin in the browser: Step 2 : check the current version of wordpress , i.e 5.0.13 here .  Step 3 : Download the most recent version of WordPress from the ...
    • Install VnStat Network Monitoring on CentOS 7

      Console based network traffic monitoring This article will help you install VnStat network monitoring on your CentOS 7 server. VnStat is console based network traffic monitor for Linux. This will help monitor multiple interfaces at the same time. ...
    • How to Install and Configure PowerDNS on centos 7 using MariaDB.

      PowerDNS is a DNS server that works on many derivatives from Linux / Unix. It can be configured with various backends, including zone files of the BIND style, relational databases and failover / load balancing. The DNS recurrent can also be set up as ...