搭建lamp环境
Yum install -y php* httpd* mariadb* mariadb-server php-mysql
关闭防火墙
systemctl stop firewalld
setenforce 0
启动数据库
Systemctl start mariadb
将web解压到下方目录中
unzip ranzhi.4.0.zip /var/www/html/
金http配置文件
Vim /etc/httpd/conf/httpd.conf
修改http配置文件如下
AddType application/x-httpd-php .php
DirectoryIndex index.html index.php
启动或重启httpd
Systemctl start httpd