手册:初始配置
在您的服务器下载并解压MediaWiki后,请运行配置脚本来完成基本设置。这个脚本可以告述你MediaWiki所需要的信息,以便将软件运作起来。 跟随下面的步骤来完成基本设置
在浏览器中运行MediaWiki的配置脚本

在接下来的示例中,我们将假设你的网站地址位于http://www.example.com/
。
服务器上的物理位置取决于你的网站服务器上的软件配置。
根据自己的需求调整位置
- 打开一个网络浏览器,输入你在网站服务器中为MediaWiki配置的网站地址或物理路径。
- 你会看到所安装的MediaWiki的版本,以及一个"请先设置wiki"的链接。 点击页面上的链接,开始配置脚本。
For reference (in case you want to go there directly), this is located in MediaWiki'smw-config
directory (so using the example above you would go tohttp://www.example.com/mw-config/
, or on a local machinehttp://localhost/mw-config/
). - 选择语言后,配置脚本会进行一些环境检查。
- 按照页面上的指示,配置数据库连接,创建MediaWiki管理员账户,并进行如标志或皮肤等的设置。Since
LocalSettings.php
stores the database user's password in plain text, it is strongly suggested that you create a wiki specific database account (i.e. not root). - 该脚本将会填充数据库并生成配置文件。
- 配置脚本运行完成后,下载生成的配置文件
LocalSettings.php
并放置到您MediaWiki的安装目录。
LocalSettings.php
包含了MediaWiki运行所必须的所有信息。
现在你的wiki应该可以使用了。输入你安装MediaWiki的网址。
Continue with more advanced configuration on 手册:系统管理 .
Command-line alternative
Alternatively, you can run the command-line installer instead of the configuration script in the web browser:
php maintenance/install.php