安装指南
其他语言 Deutsch[link1], English[link2], Español[link3], Français[link4], Русский[link5] 安装WackoWiki是很简单的事情通常只需解压缩和设置权限。请你先按照这里提供的简单指示来操作,如果你遇到问题或者觉得这些指示不够详细,请点击其中的链接来了解更多。
事先检查是否符合要求[link8]! |
如果你需要从早期版本更新你的安装,请阅读更新说明[link9]。
1. 安装前
- 下载页面 WackoWiki[link6]
- 解压缩下载的压缩包。
- 安装之前先阅读发布说明[link7]。
- MySQL 8: 如果使用的是 MySQL 8 或更高版本,请不要忘记删除 constants.php 中的
NO_AUTO_CREATE_USER
,例如const SQL_MODE_PERMISSIVE = 'NO_ENGINE_SUBSTITUTION';
否则会出现致命错误: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
这不适用于 MariaDB。
- ngram Full-Text Parser[link10], used to support Chinese, Japanese, Korean word segmentation is currently only available for MySQL.
- MySQL 8: 如果使用的是 MySQL 8 或更高版本,请不要忘记删除 constants.php 中的
- 并上传/复制到你的网站空间中。
- 给下列文件和目录分配写权限(Linux)[link11]或给下列文件和目录分配写权限(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:
-
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/
-
chmod 666 config/config.php config/lock config/lock_ap
-
-
- 创建一个数据库,如果你还没有这样做的话(例如通过phpMyAdmin)。
- 数据库名称
- Server Address (often
127.0.0.1
orlocalhost
or the server IP address) - 数据库用户名
- 数据库密码
手工创建步骤如下:
1. 以root身份登入mysql
2. 输入create database 数据库名;
3. 输入\q退出
- Check if the provided path for
CACHE_SESSION_DIR
in config/constants.php is correct.- The default value set in constants.php is
/tmp
but may vary in your environment. - You may want to change this to a custom folder (e.g.
_cache/session
or/var/tmp
) -
const CACHE_SESSION_DIR = '/tmp';
- The default value set in constants.php is
- Check if you got .htaccess enabled[link12] on your webserver.
- You should have the directive:
AllowOverride All
in your apache vhost configuration.
- You should have the directive:
- Open
example.com/wiki-folder/
in your browser.
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[link13]).
2. 运行安装程序
Step by step as 屏幕截图 安装[link14].
- 语言设置
- 系统要求
- 设置网站
- 数据库配置
- 数据库安装
- 写入配置文件
- 欢迎来到 WackoWiki
如果你在安装WackoWiki时遇到了问题,请参考故障排除页面[link15]*。
3. 安装后的配置
- 创建恢复密码[link16]
- Admin Panel login[link16]
- Set default access levels[link17]
- Set registration settings
- 邮件服务器 (SMTP)
- Maximum File Upload Size
- Cache Levels
- 验证码设置
- Bad Behaviour
- CSP settings
- robots.txt
3.1. 配置提示
back to overview[link18]
- [link1] https://wackowiki.org/doc/Doc/Deutsch/Installation
- [link2] https://wackowiki.org/doc/Doc/English/Installation
- [link3] https://wackowiki.org/doc/Doc/Español/Instalación
- [link4] https://wackowiki.org/doc/Doc/Français/Installation
- [link5] https://wackowiki.org/doc/Doc/Русский/Инсталляция
- [link6] https://wackowiki.org/doc/Download
- [link7] https://wackowiki.org/doc/Dev/ReleaseNotes
- [link8] https://wackowiki.org/doc/Doc/简体中文/系统要求
- [link9] https://wackowiki.org/doc/Doc/English/Upgrade
- [link10] https://wackowiki.org/doc/Dev/Release/R6.0/UnicodeIssues/ngramFull-TextParser
- [link11] https://wackowiki.org/doc/Doc/简体中文/文件系统权限
- [link12] https://wackowiki.org/doc/Doc/English/ModRewrite
- [link13] https://wackowiki.org/doc/News
- [link14] https://wackowiki.org/doc/Doc/简体中文/安装指南/软件截图
- [link15] https://wackowiki.org/doc/Doc/English/Troubleshooting
- [link16] https://wackowiki.org/doc/Doc/简体中文/管理面板
- [link17] https://wackowiki.org/doc/Doc/English/AccessControl
- [link18] https://wackowiki.org/doc/Doc/简体中文