开源商城ShopXO的部署

2,064 阅读1分钟

开源商城

商用需授权

  1. ECShop
  2. TPShop

无需授权可商用

ShopXO

安装ShopXO步骤:

  1. git clone gitee.com/cheenbee/sh…
  2. cd shopxo
  3. composer install
  4. cd ..
  5. chmod -R 777 shopxo
  6. vim /etc/nginx/conf.d/shopxo.conf
server {
    listen       80;
    listen       [::]:80;
    server_name shop.maomilaoshi.top;
    root /var/www/shopxo/public;

    location / {
         index  index.html index.htm index.php;
         try_files $uri $uri/ /index.php$is_args$query_string;
    }

    location ~ ^/files/.*\.(php|php5)$ {
        deny all;
    }

    location ~ \.php$ {
        fastcgi_pass   127.0.0.1:9000;
        fastcgi_split_path_info ^(.+\.php)(/.*)$;
        fastcgi_param  SCRIPT_FILENAME    $document_root$fastcgi_script_name;
        fastcgi_param  HTTPS              off;
        include        fastcgi_params;
    }
}
  1. 保存配置文件,重启nginx
    15916730130636