配置Apache: (1)修改默认路径; (2)添加Allow from All、Require All Granted等语句开放访问; (3)在mods-enabled中添加php。
配置MySQL: (1)执行mysql_secure_installation,完成MySQL安全安装; (2)在MySQL终端执行 mysql > ALTER USER ‘root’@’localhost’ IDENTIFIED WITH mysql_native_password BY ‘【密码】’; 修改root密码; (3)$ apt install phpMyAdmin,并在/etc/apache2/apache2.conf处添加Include /etc/phpmyadmin/apache.conf。