##########################
CentOS 7 phpMyAdmin / phpmyadmin Installation by yum
===========================================
Add the repository named EPEL by
rpm -iUvh http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
yum -y install phpmyadmin
Allow IP or network to browse this
vi /etc/httpd/conf.d/phpMyAdmin.conf
Require ip 127.0.0.1
Allow from 127.0.0.1
Require ip 127.0.0.1
Allow from 127.0.0.1
and
vi /etc/httpd/conf/httpd.conf
<Directory "/usr/share/phpMyAdmin/">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
ALLow from 203.190.8.0/21
</Directory>
systemctl restart httpd
now browse:: http://serverip/phpMyAdmin
======================================
==========================================
Other versions of Linux
======================================
-=--------------------------------------------------------------
Select your proper baseurl directory by browsing this link
========= phpmyadmin
vi /etc/yum.repos.d/RHELx64.repo
[MyRHEL6x86]
name=My-RHEL-6-third-party-repositories
baseurl=http://autoinstall.pp.parallels.com/PSA_10.2.0/thirdparty-rpm-RedHat-el6-x86_64/
enabled=1
gpgcheck=0
======================================
yum install php-mbstring php-mcrypt php-mysql
Go to your web directory
# cd /var/www/html/
Grab it down to your server
# wget http://downloads.sourceforge.net/project/phpmyadmin/phpMyAdmin/4.0.2/phpMyAdmin-4.0.2-all-languages.tar.gz
OR...
# wget https://files.phpmyadmin.net/phpMyAdmin/4.6.4/phpMyAdmin-4.6.4-all-languages.tar.gz
Unarchive
# tar -zxvf phpMyAdmin-4.0.2-all-languages.tar.gz
You'll end up with a directory /var/www/html/phpMyAdmin-4.0.2-all-languages so rename it
# mv phpMyAdmin-4.0.2-all-languages phpMyAdmin
Then change the permissions so Apache can execute.
Change directory and create a config file
# cd phpMyadmin
# mv config.sample.inc.php config.inc.php
If shows permission denied in phpMyAdmin
vi /etc/httpd/conf.d/phpMyAdmin.conf
Alias /phpMyAdmin /var/www/html/phpMyAdmin
Alias /phpmyadmin /var/www/html/phpMyAdmin
<Directory /var/www/html/phpMyAdmin/>
<IfModule mod_authz_core.c>
# Apache 2.4
<RequireAny>
Require ip 127.0.0.1
Require ip ::1
</RequireAny>
</IfModule>
<IfModule !mod_authz_core.c>
# Apache 2.2
Order Deny,Allow
Deny from All
Allow from 127.0.0.1
Allow from ::1 203.190.8.0/21
</IfModule>
</Directory>
service httpd restart
Now Browse: http://serverip/phpmyadmin
CentOS 7 phpMyAdmin / phpmyadmin Installation by yum
===========================================
Add the repository named EPEL by
rpm -iUvh http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
yum -y update
yum -y install php php-mysql php-pdo php-gd php-mbstringyum -y install phpmyadmin
Allow IP or network to browse this
vi /etc/httpd/conf.d/phpMyAdmin.conf
Require ip 127.0.0.1
Allow from 127.0.0.1
Require ip 127.0.0.1
Allow from 127.0.0.1
and
vi /etc/httpd/conf/httpd.conf
<Directory "/usr/share/phpMyAdmin/">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
ALLow from 203.190.8.0/21
</Directory>
systemctl restart httpd
now browse:: http://serverip/phpMyAdmin
======================================
==========================================
Other versions of Linux
======================================
-=--------------------------------------------------------------
Select your proper baseurl directory by browsing this link
========= phpmyadmin
vi /etc/yum.repos.d/RHELx64.repo
[MyRHEL6x86]
name=My-RHEL-6-third-party-repositories
baseurl=http://autoinstall.pp.parallels.com/PSA_10.2.0/thirdparty-rpm-RedHat-el6-x86_64/
enabled=1
gpgcheck=0
======================================
yum install php-mbstring php-mcrypt php-mysql
Go to your web directory
# cd /var/www/html/
Grab it down to your server
# wget http://downloads.sourceforge.net/project/phpmyadmin/phpMyAdmin/4.0.2/phpMyAdmin-4.0.2-all-languages.tar.gz
OR...
# wget https://files.phpmyadmin.net/phpMyAdmin/4.6.4/phpMyAdmin-4.6.4-all-languages.tar.gz
# tar -zxvf phpMyAdmin-4.0.2-all-languages.tar.gz
You'll end up with a directory /var/www/html/phpMyAdmin-4.0.2-all-languages so rename it
# mv phpMyAdmin-4.0.2-all-languages phpMyAdmin
Then change the permissions so Apache can execute.
Change directory and create a config file
# cd phpMyadmin
# mv config.sample.inc.php config.inc.php
If shows permission denied in phpMyAdmin
vi /etc/httpd/conf.d/phpMyAdmin.conf
Alias /phpMyAdmin /var/www/html/phpMyAdmin
Alias /phpmyadmin /var/www/html/phpMyAdmin
<Directory /var/www/html/phpMyAdmin/>
<IfModule mod_authz_core.c>
# Apache 2.4
<RequireAny>
Require ip 127.0.0.1
Require ip ::1
</RequireAny>
</IfModule>
<IfModule !mod_authz_core.c>
# Apache 2.2
Order Deny,Allow
Deny from All
Allow from 127.0.0.1
Allow from ::1 203.190.8.0/21
</IfModule>
</Directory>
service httpd restart
Now Browse: http://serverip/phpmyadmin
No comments:
Post a Comment