1.安装基本的环境:PHP,Mysql5.0+等
2.下载ECShop包,解压,将Upload目录下的文件放到/etc/ECShopV2_7目录下
注意:注意修改ECShop的所有着为Apache,(apaceh为拥有者,因为着有最高权限去访问项目资源),</span>
sudo chown -R apache:apache /etc/ECShopV2_7
查看项目拥有者:
cd /etc
ll -l ECShopV2_7
当然还有另外一种不好的办法-将/etc/ECshopV2_7目录权限改为777,这种做法不安全,
3.配置ECShop.conf文件,放到/etc/httpd/conf.d/目录下
# Listen for virtual host requests on all IP addresses
#最好不要少
Listen *:8085
<VirtualHost *:8085>
<span style="white-space:pre"> </span>#项目路径
DocumentRoot /etc/ECShopV2_7
ServerName master.domain.com
ErrorLog /etc/ECShopV2_7/log/ECShop-error.log
CustomLog /etc/ECShopV2_7/log/ECShop-common.log commom
</VirtualHost> www.zuimoban.com
# Other directives here
<Directory "/etc/ECShopV2_7">
#Options Indexes FollowSymLinks ExecCGI Includes
Order allow,deny
Allow from all
AllowOverride All
# Require all granted
</Directory>
重启服务
sudo service httpd restart
注意MySQL服务也没要开启:
sudo mysqld start
因为配置文件开启的是8085端口,所以本机访问地址:localhost:8085(或者通过IP访问)
成功一半.
(责任编辑:最模板) |