INSTALLING PHP 7 & PhpMyAdmin 4.7.6 ON CENTOS 7
INSTALLING PHP 7 ON CENTOS 7
To install PHP 7, you have to install and
enable EPEL and Remi repository to your
CentOS 7 system with the commands below.
Next, you need to
install yum-utils, a collection of useful programs for managing
yum repositories and packages. It has tools that basically extend yum’s default
features.
# yum install yum-utils
If you want to
install PHP 7.1 or PHP 7.2 on
CentOS 7, just enable it as shown.
#
yum-config-manager --enable remi-php71
[Install PHP 7.1]
#
yum-config-manager --enable remi-php72
[Install PHP 7.2]
Now install PHP 7 with
all necessary modules with the command below.
#
yum install php php-mcrypt php-cli php-gd php-curl php-mysql php-ldap php-zip
php-fileinfo
You can check the PHP
version using the below command
#
php –v
PHP
7.2.0 (cli) (built: Nov 28 2017 20:22:21) ( NTS )
Copyright
(c) 1997-2017 The PHP Group
Zend
Engine v3.2.0, Copyright (c) 1998-2017 Zend Technologies
PhpMyAdmin
4.7.6 Installation
# yum --enablerepo=remi install phpMyAdmin
·
Edit
/etc/httpd/conf.d/phpMyAdmin.conf
Require all granted [ under <IfModule mod_authz_core.c> ]
·
Edit
/etc/phpMyAdmin/config.inc.php
$cfg['Servers'][$i]['auth_type'] = 'http'; // Authentication method (config, http or
cookie based)
# systemctl restart httpd.service
No comments:
Post a Comment