Archive for 8 月, 2013

安装Directadmin遇到错误

安装Directadmin遇到

*** Cannot find /usr/include/et/com_err.h. (yum install libcom_err-devel) ***
Installation didn’t pass, halting install.
Once requirements are met, run the following to continue the install:
cd /usr/local/directadmin/scripts
./install.sh
Common pre-install commands:

http://help.directadmin.com/item.php?id=354

==================
yum install libcom_err-devel
==================
Total 972 kB/s | 116 MB 02:02
Running rpm_check_debug
ERROR with rpm_check_debug vs depsolve:
keyutils-libs-devel is needed by krb5-devel-1.10.3-10.el6_4.1.i686
libselinux-devel is needed by krb5-devel-1.10.3-10.el6_4.1.i686
zlib-devel is needed by openssl-devel-1.0.0-27.el6_4.2.i686
** Found 7 pre-existing rpmdb problem(s), ‘yum check’ output follows:
e2fsprogs-devel-1.41.12-3.el6.i686 has missing requires of e2fsprogs-libs = (’0′, ’1.41.12′, ’3.el6′)
e2fsprogs-devel-1.41.12-3.el6.i686 has missing requires of libcom_err-devel
e2fsprogs-devel-1.41.12-3.el6.i686 has missing requires of pkgconfig(com_err)
krb5-devel-1.8.2-3.el6.i686 has missing requires of keyutils-libs-devel
krb5-devel-1.8.2-3.el6.i686 has missing requires of libcom_err-devel
krb5-devel-1.8.2-3.el6.i686 has missing requires of libselinux-devel
openssl-devel-1.0.0-4.el6.i686 has missing requires of zlib-devel

执行

yum -y install zlib-devel
yum -y install e2fsprogs*

即可解决

评论

杜绝第三方利用Zen cart发送垃圾邮件

Zen cart的Tell a friend发送邮件功能被可恶的人利用了,即通过程序手段自动借用其Zen cart网站的Tell a friend群发邮件,邮件内容居然是非常不和谐的,汗一个,不过还是佩服这家伙的创意,这也想得到。
言归正传,还是说下杜绝第三方利用Zen cart tell a friend功能发送垃圾邮件的解决办法吧

Zen cart站用的是自有域名邮箱,绑在Gmail账户里。由于Gmail的垃圾邮件拦截得好,一直没注意到域名邮箱里的垃圾邮件。昨天无意中看到里面居然有 2000+failure notice邮件, 今天起床特意又看了一下,多出来500多封。这才想起来最近网站来路里直接输入网址访问的居然占到大多数,或许于此有 关。当然,这是题外话。今天到Zen cart官方论坛上找了一下,发现遇到类似情况的网站主还不少,情况严重的因此被ISP关了站。Tell a friend功能我一直觉得用处不大,没想到用处不小
遇到这种情况,可用的解决方法有:
1. 后台-Configuration-Email Options里找到Allow Guest To Tell A Friend,关闭游客推荐功能。
2. 下载zen cart的垃圾邮件过滤插件Form Armor Module,该插件专门针对第三方利用Contact us, Tell a friend发送垃圾邮件的问题。不幸的是,Form Armor是项收费服务,费用不低,每月19刀。下载地址在这里:http://www.zen-cart.com /index.php?main_page=product_contrib_info&products_id=1202.
我只是简单按照步骤1关闭了游客推荐功能,有用与否过两天后才有结果。补:无用!
如果你和我一样觉得Tell a friend没个鸟用,那么对下列文件重命名,可以彻底删除该功能:
templates/YOUR_TEMPLATE/templates/tpl_tell_a_friend_default
includes/languages/english/tell_a_friend.php
includes/modules/pages/tell_a_friend.php
然后,在后台catalog-product types里面打开网站上所有的产品类型设置,找到Show Product Tell a Friend button,关闭它。

评论