连接VPS
yum install httpd -y //安装apche
systemctl start httpd //启动httpd
yum install php //安装php
sudo yum install epel-release //安装所需的库
yum install phpmyadmin //安装phpmyadmin
vim /etc/httpd/conf.d/phpMyAdmin.conf //修改配置文件允许远程连接
# Apache 2.4
AddDefaultCharset UTF-8
# Apache 2.4
Require ip 127.0.0.1
Require ip ::1
Require all granted
# Apache 2.2
Order Deny,Allow
Deny from All
Allow from 127.0.0.1
Allow from ::1
在这里添加 Require all granted后重启httpd即可
systemctl restard http //重启apche后远程开启