Install PHP7.4 to build CentOS7 Laravel environment

Purpose

--Summary of 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

--The CentOS 7 machine must be built using the method below or the method described below. -Install Cent0S7 on your PC

Prerequisite information

--The command introduced in the explanation is executed by connecting from the client PC (Mac) using SSH.

Feeling after reading

--You can install PHP on a CentOS 7 PC, which is premised on building a Laravel environment.

Overview

  1. Add and install repositories
  2. Confirmation

Details

  1. Add and install repositories

  2. Execute the following command to add the repository.

    ```terminal
    $ sudo yum install http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
    ```
    
  3. Execute the following command to install the necessary items.

    ```terminal
    $ 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
    ```
    
  4. Confirmation

  5. Execute the following command to display the installed package named php.

    ```terminal
    $ yum list installed | grep php
    ```
    
  6. Below is the information of the installed package named php in my environment.

    ```terminal
    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 
    ```
    
  7. If the same package as above is installed, the work of this article is completed.

References

-Procedure to install PHP 7.2 on CentOS 7 with yum

Recommended Posts

Install PHP7.4 to build CentOS7 Laravel environment
How to install beta php8.0 on CentOS8
Command to install nginx / PHP7 / php-fpm on CentOS7
Just install Laravel8 on docker in PHP8 environment
Build Docker + Laravel PHP + Vue.js development environment in 5 minutes
How to install GNOME as a desktop environment on CentOS 7
How to install PHP 7.4 and SQL Server drivers in CentOS 7.7
How to deploy Laravel on CentOS 7
Install CentOS Stream 8 in Hyper-V environment
How to install MariaDB 10.4 on CentOS 8
Install laravel/Dusk in docker environment (laravel6)
Steps to install MySQL 8 on CentOS 8
Steps to install devtoolset-6 on CentOS 7
Build docker + laravel environment with laradock
How to install the language used in Ubuntu and how to build the environment
I tried to build a laravel operating environment while remembering Docker
I want to install PHP 7.2 on Ubuntu 20.04.
Docker container build fails to install php-radis
I tried to build AdoptOpenjdk 11 on CentOS 7
How to build Rails 6 environment with Docker
I had to lower the PHP version in Docker + Composer + Laravel environment
Install MariaDB (CentOS 8)
Try to build Java8 environment on Amazon Linux2
Build a Laravel / Docker environment with VSCode devcontainer
How to install Titan2D (v4.2.0) in virtual environment
[CentOS] Install apache-loggen
Build a Laravel environment on an AWS instance
Reference articles and books used to install CentOS
[Rails] How to build an environment with Docker
How to build a Pytorch environment on Ubuntu
I got an error when trying to install sbt to build a Scala development environment
A story that I had a hard time trying to build PHP 7.4 on GCE's CentOS 8
Memo to build a Servlet environment on AWS EC2
[Road _node.js_1-1] Road to build Node.js Express MySQL environment using Docker
How to build docker environment with Gradle for intelliJ
How to install the root certificate of Centos7 (Cybertrust)
Command memo to install xeyes in ubuntu docker environment
Build debug environment for Phalcon + Vagrant + centos + xdebug + phpstorm
How to build Java development environment with VS Code
Install MySQL 5.6 on CentOS6 [How to specify the version]
Install Rust in WSL2 Ubuntu environment and build WASM build environment
Try to build a Java development environment using Docker
I tried to build an environment using Docker (beginner)
Install Golang on CentOS 8
Install Neo4j 4.1.3 on centOS
[CentOS7] Install aws cli
Install Vertica 10.0 on CentOS 6.10
Install PostgreSQL 12 on Centos8
How to install Docker
Install nginx on centOS7
Install Python 3 on CentOS 7
How to install docker-machine
Install kuromoji on CentOS7
Build Growai with Centos7
Install Mattermost on CentOS 7
Install PostGIS 2.5.5 on CentOS7
Install jpndistrict on CentOS 7
How to install MySQL
How to build android-midi-lib
Install Redmine 4.1.1 on CentOS 7
Smokeping Install on CentOS7