View source for 安装指南

#||
|| 其他语言 ((../Deutsch/Installation Deutsch)), ((../English/Installation English)), ((../Español/Instalación Español)), ((../Français/Installation Français)), ((/Doc/Русский/Инсталляция Русский))

安装WackoWiki是很简单的事情通常只需解压缩和设置权限。请你先按照这里提供的简单指示来操作,如果你遇到问题或者觉得这些指示不够详细,请点击其中的链接来了解更多。

  * 步骤1:从((/Download 下载页面))下载最新版的WackoWiki。
  * 步骤2:安装之前先阅读((/Dev/ReleaseNotes 发布说明))。
  * 步骤3:解压缩下载的压缩包,并上传/复制到你的网站空间中。
  * 步骤4:通过浏览器访问你的WackoWiki中的安装,并按照页面给出的提示进行。
  * 步骤5:可浏览manual来发掘WackoWiki的功能。

((系统要求 事先检查是否符合要求))! 
| {{toc numerate=1}} ||
||#

如果你需要从早期版本更新你的安装,((/Doc/English/Upgrade 请阅读更新说明))。

===安装前===
  1. **((/Download 下载页面 WackoWiki))**
  1. 解压缩下载的压缩包。
  * ((/Dev/ReleaseNotes 安装之前先阅读发布说明))。
    ``(info type="example")
  1. **MySQL 8**: Remove the ##NO_AUTO_CREATE_USER## in your constants.php, e.g.
    %% const SQL_MODE_PERMISSIVE			= 'NO_ENGINE_SUBSTITUTION'; %%
    Otherwise it will throw a Fatal error: %%Uncaught mysqli_sql_exception: Variable 'sql_mode' can't be set to the value of 'NO_AUTO_CREATE_USER' in /setup/install-database.php:180%%
  1. **((/Dev/Release/R6.0/UnicodeIssues/ngramFull-TextParser ngram Full-Text Parser))**, used to support Chinese, Japanese, Korean word segmentation is currently only available for MySQL.
``
  1. 并上传/复制到你的网站空间中。
  1. ((/Doc/简体中文/文件系统权限 给下列文件和目录分配写权限(Linux)))或((/Doc/简体中文/文件系统权限/Windows操作系统 给下列文件和目录分配写权限(Windows)))。
    * ##_cache/config/##
    * ##_cache/feed/##
    * ##_cache/page/##
    * ##_cache/query/##
    * ##_cache/session/##
    * ##_cache/template/##
    * ##config/config.php##
    * ##config/lock##
    * ##config/lock_ap##
    * ##file/backup/##
    * ##file/global/##
    * ##file/perpage/##
    *  ##file/thumb/##
    * ##file/thumb_local/##
    * ##xml/##
    * For example: 
      1. ##chmod 0755 _cache/config/ _cache/feed/ _cache/page/ _cache/query/  _cache/session/ _cache/template/  file/backup/ file/global/ file/perpage/ file/thumb/ file/thumb_local/ xml/##
      2. ##chmod 666 config/config.php config/lock config/lock_ap##

  1. 创建一个数据库,如果你还没有这样做的话(例如通过phpMyAdmin)。
    1. 数据库名称
    1. Server Address (often ##127.0.0.1## or ##localhost## or the server IP address)
    1. 数据库用户名
    1. 数据库密码
    手工创建步骤如下:
     1. 以root身份登入mysql
     2. 输入create database 数据库名;
     3. 输入\q退出    
  1. Check if the provided path for ##CACHE_SESSION_DIR## in config/constants.php is correct. 
    1. The default value set in constants.php  is ##/tmp## but may vary in your environment. 
    2. You may want to change this to a custom folder (e.g. ##_cache/session##  or ##/var/tmp##)
    1. %%const CACHE_SESSION_DIR	= '/tmp';%%
  1. Check if you got ((/Doc/English/ModRewrite .htaccess enabled)) on your webserver.
    * You should have the directive: ##AllowOverride All## in your apache vhost configuration. 
  1. Open ##example.com/wiki-folder/## in your browser.

%%(info type="warning")
As with any software that you expose to the internet, there may be bugs or security problems. Do not install WackoWiki unless you intend to keep up with security upgrades (please subscribe to receive announcements of security updates via [[/News News]]).
%%

===运行安装程序===
file:/wackowiki_r6_zh_install_1.png?500&right
Step by step as ((!/软件截图 屏幕截图 安装)).

  1. 语言设置
  2. 系统要求
  3. 设置网站
  4. 数据库配置
  5. 数据库安装
  6. 写入配置文件
  7. 欢迎来到 WackoWiki 

如果你在安装WackoWiki时遇到了问题,((/Doc/English/Troubleshooting 请参考故障排除页面))*。

===安装后的配置===
file:/ap_upload_settings_zh.png?500&right
  1. ((/Doc/简体中文/管理面板 创建恢复密码))
  1. ((/Doc/简体中文/管理面板 Admin Panel login))
    1. Set default ((/Doc/English/AccessControl access levels))
    2. Set registration settings
    1. 邮件服务器 (SMTP)
    1. Maximum File Upload Size
    1. Cache Levels
    1. 验证码设置
  1. Bad Behaviour
  2. CSP settings
  2. robots.txt

====((Configuration 配置提示))====


((../简体中文 back to overview))