首页 > 代码库 > phpMyAdmin-4.2.8.1-all-languages安装

phpMyAdmin-4.2.8.1-all-languages安装

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相同


本文出自 “linux相关分享” 博客,请务必保留此出处http://2860664.blog.51cto.com/2850664/1554801

phpMyAdmin-4.2.8.1-all-languages安装