我參考的這篇博客:
添加軟連接ln -s /usr/share/phpmyadmin /var/www/html/phpmyadmin 該博客中有涉及到。
https://blog.csdn.net/trh0123/article/details/54645335
總結一下:
apache2的配置:
/etc/apache2/apach2.conf
最後面加上
AddType appliaction/x-httpd-php .php .htm .html
AddDefaultCharset UTF-8 //處理 中文亂碼
在重啓
service apache2 restart
apache2的網頁目錄:
/var/www/html/
phpmyadmin的配置目錄:
/usr/share/phpmyadmin
解決空密碼不可以登錄:/usr/share/phpmyadmin/libraris/config.default.php
$cfg['Servers'][$i]['AllowNoPassword'] = true;