您好,登錄后才能下訂單哦!
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進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。