- 插件安装需要通过extensions上传,及localsettings.php修改
require_once "$IP/extensions/CategoryTree/CategoryTree.php";
require_once "$IP/extensions/Cite/Cite.php";
wfLoadExtension( 'WikiEditor' );
$wgUseAjax = true;
- smtp配置需要修改localsetting.php,同时,又遇到了pfsockopen() 函数问题;
Deermin Wiki不能发送确认邮件,请检查您的邮箱地址是否包含无效字符。邮件发送器的返回信息:
Failed to connect to ssl://smtp.qq.com:465
[SMTP: Failed to connect socket: pfsockopen() has been disabled for security reasons (code: -1, response: )]
- localsettings.php按照官网建议,增加如下代码:
$wgSMTP = array(
'host' => "mail.example.com", // could also be an IP address. Where the SMTP server is located
'IDHost' => "example.com", // Generally this will be the domain name of your website (aka mywiki.org)
'port' => 25, // Port to use when connecting to the SMTP server
'auth' => true, // Should we use SMTP authentication (true or false)
'username' => "my_user_name", // Username to use for SMTP authentication (if being used)
'password' => "my_password" // Password to use for SMTP authentication (if being used)
);
ssl://smtp.example.com
- MediaWiki的域名修改同样也是依托于LocalSettings.php,修改如下两行代码:
$wgScriptPath = "";
$wgServer = "http://exmple.xxx";
Mediawiki对比Dokuwiki使用感受
- 对比dokuwiki,不够轻便,功能多,运行速度较慢,后台设置较为繁琐
- 页面过于生硬,不如dokuwiki柔和
- 曾经出现过user.php运行异常,页面错误
目前为止安装剩余问题点
2018/5/4
- 文件上传MIME拦截
- 分类根目录未理解
- MobileFrontend插件使用异常
2018/5/3
- 邮件发送配置问题
- extensions安装问题
- skin设置问题
- sidebar设置问题
2018/5/8
- MobileFrontend 移动前端问题解决
- 匹配系统1.3.0版本的extensions上传
- 代码增加如下:
/*-----2018/5/8 Aker---Mediawiki MobileFrontend-----*/
wfLoadExtension( 'MobileFrontend' );
$wgMFNearby = true;
/*require_once "$IP/extensions/MobileFrontend/MobileFrontend.php";*/
$wgMFAutodetectMobileView = true;
// Choose one of those:
$wgMFDefaultSkinClass = 'SkinVector'; // use Vector skin
$wgShowExceptionDetails = true;
- 实现功能:移动设备端自动识别并显示移动前端skin。
- 邮件配置采用ssl的QQ邮箱,成功
'host' => "ssl://smtp.qq.com"
2018/5/25
- ICP备案号脚注增加,需要修改相应皮肤的php文件,以Vector皮肤为例:
- 编辑 /skins/Vector/VectorTemplate.php
- 找到 <?php $footericons = $this->getFooterIcons( 'icononly' )这行,
- 在它之前插入下面一行:
- 然后Ctrl+F5强制刷新网页就能看到效果