Install PHP7.4 to build CentOS7 Laravel environment
  
  
  
  Aug 25, 2020
  
  
PHP
CentOS
Laravel
centos7
PHP7
Purpose
- Summarize how to install PHP on CentOS 7 machine
Implementation environment
- Hardware environment
| Item | Information | 
|---|---|
| OS | CentOS 7 (7.8.2003) | 
| Hardware | Dell Studio 1537 | 
| Processor | Intel(R) Core(TM)2 Duo CPU P8400 @ 2.26GHz | 
| Memory | 4 GB DDR3 | 
| Graphics | Unknown | 
#Prerequisites
- A CentOS 7 machine is built using the method below or a method similar to the following. -Install Cent0S7 on PC
#Prerequisite information
- The commands introduced in the description connect and execute from the client PC (Mac) using SSH.
After reading
- You can install PHP on the PC of CentOS 7 assuming that the Laravel environment is built.
Overview
- Add and install repository
- Confirm
#Details
- Add and install repository
- 
Execute the following command to add a repository. $ sudo yum install http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
- 
Execute the following command to install the necessary items. $ sudo yum install --enablerepo=remi-php74 php74 php $ sudo yum install --enablerepo=remi-php74 php-fpm $ sudo yum install --enablerepo=remi-php74 php-mbstring $ sudo yum install --enablerepo=remi-php74 php-mysqlnd $ sudo yum install --enablerepo=remi-php74 php-pecl-zip $ sudo yum install --enablerepo=remi-php74 php-xml
 
- 
- Confirm
- 
Execute the following command to display the installed package named php. $ yum list installed | grep php
- 
Below is information about the installed package named php in my environment. oniguruma5php.x86_64 6.9.5+rev1-2.el7.remi @remi-safe php.x86_64 7.4.8-2.el7.remi @remi-php74 php-cli.x86_64 7.4.8-2.el7.remi @remi-php74 php-common.x86_64 7.4.8-2.el7.remi @remi-php74 php-fpm.x86_64 7.4.8-2.el7.remi @remi-php74 php-json.x86_64 7.4.8-2.el7.remi @remi-php74 php-mbstring.x86_64 7.4.8-2.el7.remi @remi-php74 php-mysqlnd.x86_64 7.4.8-2.el7.remi @remi-php74 php-pdo.x86_64 7.4.8-2.el7.remi @remi-php74 php-pecl-zip.x86_64 1.19.0-1.el7.remi.7.4 @remi-php74 php-sodium.x86_64 7.4.8-2.el7.remi @remi-php74 php-xml.x86_64 7.4.8-2.el7.remi @remi-php74 php74.x86_64 1.0-3.el7.remi @remi-safe php74-php-cli.x86_64 7.4.8-2.el7.remi @remi-safe php74-php-common.x86_64 7.4.8-2.el7.remi @remi-safe php74-php-json.x86_64 7.4.8-2.el7.remi @remi-safe php74-runtime.x86_64 1.0-3.el7.remi @remi-safe
- 
If the same package as above is installed, the work of this article is completed. 
 
-