码迷,mamicode.com
首页 > Web开发 > 详细

phpMyAdmin安装

时间:2015-04-14 20:04:54      阅读:230      评论:0      收藏:0      [点我收藏+]

标签:phpmyadmin

安装环境:LANMP
1. 下载phpMyAdmin-3.3.7
      wget http://sourceforge.net/projects/phpmyadmin/files%2FphpMyAdmin%2F3.3.7%2FphpMyAdmin-3.3.7-all-languages.tar.gz/download
   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‘] = ‘1‘;
   8. 配置apache配置文件:/usr/local/apache/conf/extra/httpd-vhost.conf
      添加:
         <VirtualHost 192.168.1.41:80>
           ServerAdmin 460518621@qq.com
           DocumentRoot "/usr/local/apache/htdocs/phpMyAdmin"
           ServerName mysql.admin
           ErrorLog "logs/mysql.admin-error_log"
           CustomLog "logs/mysql.admin-access_log" common
         </VirtualHost>
   9. 重新启动apache服务
  配置好hosts后,就可以通过http://mysql.admin来访问了。


本文出自 “Linux_Config” 博客,请务必保留此出处http://jialiang1026.blog.51cto.com/10119067/1632260

phpMyAdmin安装

标签:phpmyadmin

原文地址:http://jialiang1026.blog.51cto.com/10119067/1632260

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!