MediaWiki配置:修订间差异
跳转到导航
跳转到搜索
小 导入1个版本 |
|||
| (未显示同一用户的3个中间版本) | |||
| 第27行: | 第27行: | ||
chmod 777 images | chmod 777 images | ||
[[ | === 只能登入后查看 === | ||
<syntaxhighlight lang="php"> | |||
# Disable reading by anonymous users | |||
$wgGroupPermissions['*']['read'] = false; | |||
# Disable anonymous editing | |||
$wgGroupPermissions['*']['edit'] = false; | |||
# Prevent new user registrations except by sysops | |||
$wgGroupPermissions['*']['createaccount'] = false; | |||
</syntaxhighlight> | |||
[[分类:MediaWiki]] | |||
2024年1月16日 (二) 05:32的最新版本
配置文件[编辑 | 编辑源代码]
LocalSettings.php设置以下选项:
配置项[编辑 | 编辑源代码]
报错时输出详细的调试信息[编辑 | 编辑源代码]
$wgShowExceptionDetails = true; $wgShowDBErrorBacktrace = true; $wgShowSQLErrors = true;
启用WikiEditor[编辑 | 编辑源代码]
$wgDefaultUserOptions['usebetatoolbar']=1;
wfLoadExtension('WikiEditor');
上传文件[编辑 | 编辑源代码]
## To enable image uploads, make sure the 'images' directory ## is writable, then set this to true: $wgEnableUploads = true; #$wgUseImageMagick = true; #$wgImageMagickConvertCommand = "/usr/bin/convert";
chmod 777 images
只能登入后查看[编辑 | 编辑源代码]
# Disable reading by anonymous users
$wgGroupPermissions['*']['read'] = false;
# Disable anonymous editing
$wgGroupPermissions['*']['edit'] = false;
# Prevent new user registrations except by sysops
$wgGroupPermissions['*']['createaccount'] = false;