搭建一个简单的lamp平台

搭建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

 

posted @ 2017-02-10 14:33  呆萌大叔  阅读(148)  评论(0编辑  收藏  举报