Centos 7 安裝PHP與phpmyadmin
# 安裝epel-release與remi-release
cd ~
wget http://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/e/epel-release-7-11.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
rpm -Uvh remi-release-7*.rpm epel-release-7*.rpm
# 安裝PHP
sudo yum install php php-gd php-mysql php-mcrypt php-pear.noarch php-pear-DB.noarch
# 安裝phpmyadmin
yum install phpmyadmin
# 設定安裝phpmyadmin
vim /etc/httpd/conf.d/phpMyAdmin.conf
# <Directory /usr/share/phpMyAdmin/>設定可瀏覽IP
Require ip IP(你的IP)
# <Directory /usr/share/phpMyAdmin/setup/>設定可安裝IP(建議這個要限定)
Require ip IP(你的IP)
# 重新啟動Apache
systemctl restart httpd