Linux serverNETWORK ADMINISTRATIONS

PHP7.4 installation on centos 7

Music: Valley Sunset
composer: Alejandro Magaña (A. M.)
Music: I’ll Always Remember
composer: Michael Ramir C.
License: https://mixkit.co/license/
Music from : https://mixkit.co/

In this video you will get to know the installation procedure of apache, php7.4, mariadb 10.14 & phpmyadmin on centos 7.

Download link for centos 7.8
http://centos.mirrors.estointernet.in/7.8.2003/isos/x86_64/

Description of used command in this tutorial

To install apache simply type the below commands one by one

# yum install https
# systemctl start httpd
# systemctl enable httpd
# systemctl status httpd

Update firewall rules to allow inbound packets on HTTP and HTTPS

# firewall-cmd –zone=public –permanent –add-service=http
# firewall-cmd –zone=public –permanent –add-service=https
# firewall-cmd –reload

To install php 7.4 use the below command one by one
Install yum-utils and enable EPEL repository

# yum install epel-release yum-utils -y

Install remirepo using yum command

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

To configure PHP 7.4 repository, use below command

# yum-config-manager –enable remi-php74

To install php 7.4 run the below

# yum install php php-common php-opcache php-mcrypt php-cli php-gd php-curl php-mysql -y

Verify the PHP version

# php -v

Mariadb installation
Add MariaDB Yum Repository
Create a new repo file /etc/yum.repos.d/mariadb.repo
Paste the below content in it and save the file

[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.4/rhel7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1

Now execute the following command to install

# yum install MariaDB-server MariaDB-client

Once installed enable the mariadb and start service of it

# systemctl enable mariadb
# systemctl start mariadb

Run secure installation script from the command line to secure you mariadb and rest follow the instruction from the tutorial video.

# /usr/bin/mysql_secure_installation

Phpmyadmin installation use the below command

# yum install phpmyadmin

For allowing the access the phpmyadmin please follow the video to granted

File location : /etc/httpd/conf.d/phpMyAdmin.conf

To change phpmyadmin default theme follow the below tutorial

source

centos 7

2 thoughts on “PHP7.4 installation on centos 7

Comments are closed.