安装指南
其他语言 Deutsch, English, Español, Français, Русский 安装WackoWiki是很简单的事情通常只需解压缩和设置权限。请你先按照这里提供的简单指示来操作,如果你遇到问题或者觉得这些指示不够详细,请点击其中的链接来了解更多。
事先检查是否符合要求! |
如果你需要从早期版本更新你的安装,请阅读更新说明。
1. 安装前
- 下载页面 WackoWiki
- 解压缩下载的压缩包。
- 安装之前先阅读发布说明。
- 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, used to support Chinese, Japanese, Korean word segmentation is currently only available for MySQL.
- MySQL 8: 如果使用的是 MySQL 8 或更高版本,请不要忘记删除 constants.php 中的
- 并上传/复制到你的网站空间中。
- 给下列文件和目录分配写权限(Linux)或给下列文件和目录分配写权限(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 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.
任何您在互联网上发布的软件都可能存在漏洞或安全问题。除非您打算及时更新安全更新,否则请勿安装 WackoWiki(请订阅新闻以接收安全更新公告)。
2. 运行安装程序
Step by step as 屏幕截图 安装.
- 语言设置
- 系统要求
- 设置网站
- 数据库配置
- 数据库安装
- 写入配置文件
- 欢迎来到 WackoWiki
如果你在安装WackoWiki时遇到了问题,请参考故障排除页面*。
3. 安装后的配置
- 创建恢复密码
- Admin Panel login
- Set default access levels
- Set registration settings
- 邮件服务器 (SMTP)
- Maximum File Upload Size
- Cache Levels
- 缩略图设置
- 验证码设置
- Bad Behaviour
- CSP settings
- robots.txt