CentOS 7 安装配置phpMyAdmin

  • 发表于
  • 日志

启用源

cd ~
wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
sudo rpm -ivh epel-release*

安装mycrypt模块

sudo yum install php-mcrypt

重启服务

sudo service httpd restart

安装phpMyAdmin

sudo yum install phpmyadmin

创建映射

cd /var/www/example.com/public_html
sudo ln -s /usr/share/phpmyadmin

配置phpMyAdmin

首先查询出你当前的IP地址,然后

vim /etc/httpd/conf.d/phpMyAdmin.conf

将127.0.0.1替换成你当前的IP地址,保存退出:wq

重启服务

sudo service httpd restart

好了,至此,安装完毕