2005-02-24
Blacklist的很多数据都是使用Hash数据结构,当进行从FreeBSD平台到Linux平台的迁移时:有可能产生平台兼容性问题:
Byte order is not compatible at blib/lib/Storable.pm (autosplit into blib/lib/auto/Storable/thaw.al) line 363 ...
解决的方法就是除了清空mt_ext_bl_*这些表以外:还要清空 mt_plugindata这个表中和Blacklist相关的数据,然后重新初始化Blacklist。
MT BlackList下载:
在www.jayallen.org/projects/mt-blacklist下载相应版本:
注意:MT BlackList 2.x目前不支持Windows服务器版本
MT BlackList 2.x安装:
解包后的文件需要按照静态文件和程序2部分分别上传,解包后的文件和对应的复制目录附后
安装完成后的初始化和配置:
1. 解包后的文件和安装目标目录的对应:
静态文件包括CSS,JavaScript,图片:
/mt-blacklist-styles.css
/mt-blacklist.js
/images/
==> STATIC_DIR/mt-blacklist-styles.css
==> STATIC_DIR/mt-blacklist.js
==> STATIC_DIR/images/Blacklist
==> STATIC_DIR/images/Blacklist/nav-blacklist.gif
==> STATIC_DIR/images/Blacklist/nav-blog.gif
==> STATIC_DIR/images/Blacklist/nav-configure.gif
==> STATIC_DIR/images/Blacklist/nav-despam.gif
==> STATIC_DIR/images/Blacklist/nav-inbox.gif
==> STATIC_DIR/images/Blacklist/nav-log.gif
==> STATIC_DIR/images/Blacklist/nav-manual.gif
==> STATIC_DIR/images/Blacklist/nav-plugin.gif
==> STATIC_DIR/images/Blacklist/nav-subscriptions.gif
后台程序都在plugins目录下:==>
/plugins/
==> MT_DIR/plugins/Blacklist
==> MT_DIR/plugins/Blacklist/Blacklist.pl
==> MT_DIR/plugins/Blacklist/lib
==> MT_DIR/plugins/Blacklist/lib/Blacklist
==> MT_DIR/plugins/Blacklist/lib/Blacklist/App
==> MT_DIR/plugins/Blacklist/lib/Blacklist/App/CMS.pm
==> MT_DIR/plugins/Blacklist/lib/Blacklist/App/Submission.pm
==> MT_DIR/plugins/Blacklist/lib/Blacklist/App.pm
==> MT_DIR/plugins/Blacklist/lib/Blacklist/Group.pm
==> MT_DIR/plugins/Blacklist/lib/Blacklist/GroupMap.pm
==> MT_DIR/plugins/Blacklist/lib/Blacklist/Item
==> MT_DIR/plugins/Blacklist/lib/Blacklist/Item/Regex.pm
==> MT_DIR/plugins/Blacklist/lib/Blacklist/Item/String.pm
==> MT_DIR/plugins/Blacklist/lib/Blacklist/Item/URLPat.pm
==> MT_DIR/plugins/Blacklist/lib/Blacklist/Item.pm
==> MT_DIR/plugins/Blacklist/lib/Blacklist/Log.pm
==> MT_DIR/plugins/Blacklist/lib/Blacklist/Permission.pm
==> MT_DIR/plugins/Blacklist/lib/Blacklist/Plugin.pm
==> MT_DIR/plugins/Blacklist/lib/Blacklist/Util.pm
==> MT_DIR/plugins/Blacklist/mt-bl-load.cgi
==> MT_DIR/plugins/Blacklist/mt-blacklist.cgi
==> MT_DIR/plugins/Blacklist/schemas
==> MT_DIR/plugins/Blacklist/schemas/Blacklist_schema.mysql
==> MT_DIR/plugins/Blacklist/schemas/Blacklist_schema.postgres
==> MT_DIR/plugins/Blacklist/schemas/Blacklist_schema.sqlite
==> MT_DIR/plugins/Blacklist/tmpl
==> MT_DIR/plugins/Blacklist/tmpl/add_ite
EXTRAS/3.1/header.tmpl(可选)
==> MT_DIR/tmpl/cms/header.tmpl
2. 运行初始化脚本:cgi-bin/mt/plugins/Blacklist/mt-bl-load.cgi
然后就可以在管理界面中进入BlackList管理界面:cgi-bin/mt/plugins/Blacklist/mt-blacklist.cgi
在管理系统的导入\导出界面中:可以将以前的1.x版本的黑名单导入
版权声明:可以转载,转载时请务必以超链接形式标明文章 MT BlackList 2.x安装和Storable.pm平台兼容性解决 的原始出处和作者信息及本版权声明。
http://www.chedong.com/blog/archives/000648.html
Comments
我在51上安装怎么不行啊,不能运行mt-bl-load.cgi,报500错
由: udoo 发表于 2005年02月05日 晚上09时34分