搭建LAMP环境部署ecshop电商网站
周所周知,做运维的必备技能之一,就是能够快速的搭建企业所需的LAMP环境,因此今天跟大家分享一下,LAMP环境的搭建详细流程,这里我使用的环境是centos 7.6 。
1. 上传ecshop.zip程序包到Linux主机上1. 上传ecshop.zip程序包到Linux主机上
2. 到服务器上/root目录下,并解压程序文件
[root@xuegod63 ~]# unzip ecshop.zip -d /var/www/html/
[root@xuegod63 ~]# cd /var/www/html/ecshop
[root@xuegod63 ecshop]# ls
修改文件权限
[root@xuegod63 ecshop]# ps -aux | grep httpd
root 8636 0.0 0.1 372120 14648 ? Ss 10:00 0:00 /usr/sbin/httpd -DFOREGROUND
apache 8638 0.0 0.0 372120 7116 ? S 10:00 0:00 /usr/sbin/httpd -DFOREGROUND
[root@xuegod63 kaixin001]# id apache
uid=48(apache) gid=48(apache) groups=48(apache)
对网站迚行授权
#丌可以,777权限徆容易让黑客上传木马并提权。
[root@xuegod63 ~]# iptables -F
3. 安装网站
浏览器输入http://192.168.1.63/ecshop/install/index.php
同意安装协议
检查部署环境
我们配置数据库和后台账户信息