1、下载phpMyAdmin-4.2.8.1-all-languages
wget http://jaist.dl.sourceforge.net/project/phpmyadmin/phpMyAdmin/4.2.8.1/phpMyAdmin-4.2.8.1-all-languages.zip
2、修改apache的根目录
vi /usr/local/httpd/conf/http.conf
找到DocumentRoot 修改为DocumentRoot "/var/www/html"
service httpd restart
3、安装phpmyadmin
tar zxvf phpMyAdmin-4.2.8.1-all-languages.zip
mv phpMyAdmin-4.2.8.1-all-languages phpmyadmin
mv phpmyadmin /var/www/html
cp /var/www/html/phpmyadmin/config.sample.inc.php /var/www/html/phpmyadmin/config.inc.php
chmod 660 /var/www/html/phpmyadmin/config.inc.php
chown -R apache.apache /var/www/html/phpmyadmin
vi /usr/local/httpd/conf/extra/phpmyadmin.conf 输入以下内容
Alias /phpMyAdmin /var/www/html/phpMyAdmin
<Location /phpMyAdmin>
Order deny,allow
# Deny from all
Allow from all
</Location>
vi /usr/local/httpd/conf/http.conf 加入以下内容
Include conf/extra/phpmyadmin.conf
4、重启服务
service httpd restart
http://ip/phpMyAdmin/ 用户名密码与mysql相同
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。