💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
1.需要php5.4以上版本,mysql数据库需要支持InnoDB,字符集utf8_general_ci(多语言不区分大小写) 2.把域名(虚拟域名)绑定到根目录下,需要先创建数据库,否则界面会一直停在‘’安装中‘’ 3.linux系统 public目录下 runtime和uploads,根目录下oscshop给予权限 4.需要重写隐藏index.php,apache需要开启重写模块 5.安装完成后,需要手动清除一下runtime目录下的缓存文件 # 如何重写 http://www.kancloud.cn/manual/thinkphp5/177576 # 如何绑定 本方法适用于windows平台,注意文件路径改成自己的,linux下类似 1.打开 C:Windows/System32/drivers/etc/hosts 加入下面语句保存(可以填写多个) ~~~ 127.0.0.1 o2.com ~~~ 2. (1),apache服务器,找到 E:/xampp/apache/conf/httpd-vhosts.conf 写入下面语句 ,注意文件路径改成自己的,可以在这个文件写多个,绑定多个域名 ~~~ <VirtualHost *:80> ServerAdmin webmaster@dummy-host2.example.com DocumentRoot "E:/xampp/htdocs/oscshop2" ServerName o2.com ErrorLog "logs/dummy-host2.example.com-error.log" CustomLog "logs/dummy-host2.example.com-access.log" common </VirtualHost> ~~~ (2),nginx服务器,找到D:/phpStudy/nginx/conf/vhosts.conf 写入下面语句 ,注意文件路径改成自己的,可以在这个文件写多个,绑定多个域名 ~~~ server { listen 80; server_name o2.com o2.com; root "D:/WWW/oscshop2"; location / { index index.html index.htm index.php; #autoindex on; if (!-e $request_filename) { rewrite ^(.*)$ /index.php?s=$1 last; break; } } location ~ .php(.*)$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_split_path_info ^((?U).+.php)(/?.+)$; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info; include fastcgi_params; } } ~~~ 3.重启服务器,浏览器中输入 o2.com 即可 4.如果安装不了,可以试试其他集成环境 如 xampp,phpStudy