首先,安装MysqL
$sudoapt-getinstallMysqL-server$sudoapt-getinstallMysqL-client
再安装PHPmyadmin
$sudoapt-getinstallPHPmyadmin$sudoapt-getinstallPHP-mbstring$sudoapt-getinstallPHP-gettext
如果不安装以上两个PHP软件包,则会报错或者白屏,提示找不到/usr/share/PHP/PHP-gettext/gettext.inc之类的错误
建立/var/www/html下的软连接
$sudoln-s/usr/share/PHPmyadmin/var/www/html/PHPmyadmin
$sudogedit/etc/PHP/7.0/apache/PHP.ini
display_errors = On (显示错误日志,出现两次,都要改,不然无效)
extension=PHP_mbstring.dll (去除;extension=PHP_mbstring.dll前的分号即可开启mbstring)
重启apache
$sudo/etc/init.d/apache2restart
使用Friefox浏览器访问http://localhost/PHPmyadmin,输入账号密码即可.
原文链接:https://www.f2er.com/ubuntu/355351.html