下载 ecshop (ECShop_V2.7.3_UTF8_release1106)安装包,解压之后把 upload 文件夹使用 ftp 传到服务器的 /usr/local/html 目录下,同时改名为 ecshop,在浏览器访问 http://192.168.254.100/ecshop/install/index.php,如果显示:ect() failed (111: Connection refused) while connecting to upstream,则说明没有启动 php-fpm,使用以下命令启动 php-fpm:
[root@localhost nginx]# /usr/local/fastphp/sbin/php-fpm
fastphp 是安装 php 的目录。
如果需要只访问 http://192.168.254.100/ecshop/install ,则需要修改 nginx.conf:
[root@localhost nginx]# vim conf/nginx.conf
在 location / { index } 中添加 index.php:
location / {
root html;
index index.php index.html index.htm;
}
平滑重启 nginx。
此时访问 http://192.168.254.100/ecshop/install: