![]() This confirms that you have successfully installed PHP 7.4 on your system. Open the web browser and type the ip of your server followed by info.php, Now create a info.php file under /var/www/html with following contents, ~]# cd html]# vi info.php I am assuming Apache web Server is installed on your system, start its service using below systemctl command ~]# systemctl start ~]# Login to your RHEL 7 Server and run the beneath commands one after the another to enable EPEL repository, install remirepo and enable RHEL 7 Server optional repository ~]# rpm -Uvh ~]# wget ~]# rpm -Uvh remi-release-7.rpm ~]# subscription-manager repos -enable=rhel-7-server-optional-rpmsĢ) Configure PHP 7.x repo ~]# yum install ~]# yum-config-manager -enable remi-php74ģ) Install PHP 7.4 and its dependencies ~]# yum install php php-common php-opcache php-mcrypt php-cli php-gd php-curl php-mysql -yĤ) Verify PHP Version ~]# php -v PHP 7 Test Page Verification With Zend OPcache v7.4.4, Copyright (c), by Zend ~]# Installation Steps of PHP 7.x on RHEL 7 Serverġ) Enable EPEL, RHEL 7 Server Optional repository and Install remirepo rpm Zend Engine v3.4.0, Copyright (c) Zend Technologies Once PHP and its dependencies are installed in step4), use below command to verify the installed PHP version, ~]# php -v Note: To search all PHP modules use below command: ~]# yum search php | more In this tutorial, I will install latest version of PHP 7.4 along with its modules, Run beneath yum command ~]# yum install php php-common php-opcache php-mcrypt php-cli php-gd php-curl php-mysql -y To configure PHP 7.4 repository, use below command ~]# yum-config-manager -enable remi-php74Ĥ) Install PHP 7.4 along with dependencies. To configure PHP 7.3 repository, use below command ~]# yum-config-manager -enable remi-php73 To configure PHP 7.2 repository, use below command, ~]# yum-config-manager -enable remi-php72 To configure PHP 7.1 repository, use below command, ~]# yum-config-manager -enable remi-php71 Login to your server and use the below yum command to install yum-utils & enable epel repository ~]# yum install epel-release yum-utils -yĢ) Download and Install remirepo using yum command ~]# yum install ģ) Based on your requirement, configure the PHP 7.x repository ![]() Installation Steps of PHP 7.1, 7.2, 7.3 and 7.4 on CentOS 7 Serverġ) Install yum-utils and enable EPEL repository ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |