您好,登錄后才能下訂單哦!
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 輸入以下內(nèi)容
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 加入以下內(nèi)容
Include conf/extra/phpmyadmin.conf
4、重啟服務(wù)
service httpd restart
http://ip/phpMyAdmin/ 用戶名密碼與mysql相同
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場,如果涉及侵權(quán)請(qǐng)聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。