[转]lamp的phpadmin安装

 1. 下载phpMyAdmin-3.3.7(在https://www.phpmyadmin.net/downloads/  中找到自己要下载的版本)
   2. tar zxvf phpMyAdmin-3.3.7-all-languages.tar.gz
   3. mv phpMyAdmin-3.3.7-all-languages /usr/local/apache/htdocs/phpMyAdmin
   4. cd /usr/local/apache/htdocs/
   5. chmod -R 777 phpMyAdmin/
   6. cp config.sample.inc.php config.inc.php
   7. vi config.inc.php修改以下的参数为:(如果没有,可自己添加)
         $cfg['Servers'][$i]['auth_type'] = 'config';
         /* Server parameters */
         $cfg['Servers'][$i]['host'] = 'localhost';
         $cfg['Servers'][$i]['user'] = 'root';
         $cfg['Servers'][$i]['password'] = 'sql#data88';
   8. 配置apache配置文件:/usr/local/apache/conf/extra/httpd-vhost.conf
      添加:
         
           ServerAdmin a@a.com
           DocumentRoot "/usr/local/apache/htdocs/phpMyAdmin"
           ServerName mysql.admin
           ErrorLog "logs/mysql.admin-error_log"
           CustomLog "logs/mysql.admin-access_log" common
         
   9. 重新启动apache服务
  配置好hosts后,就可以通过http://mysql.admin来访问了。
posted @ 2015-07-09 18:40  冰雪一舟  阅读(226)  评论(0编辑  收藏  举报