论坛 新手教程 系统安装环境要求

系统安装环境要求

小魔 发表于 阅读:1073 回复:0

安装环境要求

操作系统:Linux/Unix/Windows

软件环境:Apache/Nginx , PHP 5.5.9+ , MySQL 5.0+

本系统不支持子目录

1. 下载最新系统到您的服务器

2. 请将网站的根目录配置到 <网站目录>/public。

Nginx参考配置 :

server {
   listen       80;
   server_name  www.example.com;
   charset utf-8;
   index index.php index.html;
   root /data/wwwroot/example.com/public;
   autoindex off;

   location / {
       try_files $uri $uri/ /index.php?$query_string;
   }

   location ~ \.php$ {
       fastcgi_pass   127.0.0.1:9000;
       fastcgi_index  index.php;
       fastcgi_param  PHP_VALUE  "open_basedir=/data/wwwroot/example.com/:/tmp/:/var/tmp/";
       fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
       include fastcgi_params;
   }
}

Apache参考配置:

Apache必须开启 mode_rewrite 模块

<VirtualHost *:80>
     ServerName www.example.com
     DocumentRoot d:/wwwroot/example.com/public
</VirtualHost>

3. 配置好网站后直接访问 http://<您的域名>/install 进入网站安装向导。

我来评论