二、安装LAMP:
[root@localhost ~]# yum -y install httpd mariadb mariadb-server php php-mysql gd php-gd
[root@localhost ~]# systemctl start httpd mariadb
[root@localhost ~]# systemctl enable httpd mariadb
Created symlink from /etc/systemd/system/multi-user.target.wants/httpd.service to /usr/lib/systemd/system/httpd.service.
Created symlink from /etc/systemd/system/multi-user.target.wants/mariadb.service to /usr/lib/systemd/system/mariadb.service.
三、上传站点源码包:
1).Apache 配置虚拟主机
[root@localhost ~]# cat /etc/httpd/conf.d/zhufo.conf
<VirtualHost *:80>
ServerName www.zhufo.top
ServerAlias zhufo.top
DocumentRoot /webroot/zhufo
</VirtualHost>
<Directory "/webroot/zhufo">
Require all granted
</Directory>
[root@localhost zhufo]# systemctl restart httpd
2).导入ecshop网站源码
[root@localhost zhufo]# unzip ECShop_V3.0.0_UTF8_release0518.zip
[root@localhost zhufo]# vim /etc/hosts
[root@localhost zhufo]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
10.18.43.135 www.zhufo.top zhufo.top
3).安装ecshop [任何client]
[root@localhost ~]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
10.18.43.135 www.zhufo.top zhufo.top
在Windows上的hosts中,DNS解析
C:\Windows\System32\drivers\etc
四、前台安装源码包
给/webroot/zhufo权限:
[root@localhost ~]# chmod -R 777 /webroot/zhufo/
配置数据库密码:
修改php.ini时区:
[root@localhost ~]# vim /etc/php.ini
[root@localhost ~]# systemctl restart httpd
完成!
原文地址:http://blog.51cto.com/13765357/2120205