💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
## 简介 LikeMall多商户商城服务端是基于php+mysql开发的,可以运行在Linux/MacOS/Windows上的系统,支Nginx、Apache、IIS等web服务器软件。 ## 运行环境 要求: PHP >= 7.0 PHP <=7.2 MYSQL >5.5 推荐: PHP:php7.2.4 MYSQL:5.7.29 ## 配置 #### 入口文件: php入口文件为项目根目录下:LikeMall/public/index.php #### Nginx配置: ``` server { listen 80; server_name www.likemall.localhost; access_log /logs/www.likemall.localhost_access_nginx.log; error_log /logs/www.likemall.localhost_error_nginx.log; client_max_body_size 5M; location / { root LikeMall/public;#入口文件目录 index index.html index.htm index.php; if (!-e $request_filename) { rewrite ^/(.*)$ /index.php?s=$1 last; break; } } location ~ /.*\.php/ { rewrite ^(.*?/?)(.*\.php)(.*)$ /$2?s=$3 last; break; } error_page 500 502 503 504 /50x.html; location = /50x.html { root /var/www/html; } location ~ \.php$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME LikeMall/public$fastcgi_script_name; #入口文件目录 include fastcgi_params; } location = /favicon.ico { log_not_found off; access_log off; } } ``` ### Apache配置 ``` <IfModule mod_rewrite.c> Options +FollowSymlinks -Multiviews RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L] </IfModule> ```