汉化bugzilla以及在没有任何可用用户和可反向解析的ip地址的情况下重新获得bugzilla的控制权

Bugzilla的汉化其实很简单。不过如果你是在中国大陆,而且你正在用一个比较新的版本bugzilla的时候,就要费点周折。因为你不能直接登录sourceforge,而bugzilla汉化项目bugzilla-cn在sourceforge上。这时就需要tor+privoxy了。下载下来后,把cn_UTF8.zip里的default目录放到template/en里,并更名为custom。
第二个问题,缘起于忘记了super user的密码。没有可反向解析的ip,意味着sendmail发的信到不了目的地。这样注册的新用户就得不到注册时随机产生的密码。要解决这个问题,可以把data/params里的mail_delivery_method改成testfile,这样就不会通过MTA来发信,而是把信件内容保存在data/mailer.testfile里。这样就的到了一个可用的普通用户。然后在mysql控制台里,把bugs数据库里的profiles表里的这个用户的userid改成1,那么这个用户就变成了super user。完事。

Comments

Popular posts from this blog

The diff between the original SEC complaint against Ripple and the amended one

Send $SGB (Songbird) to another wallet using a script

Rippled thread cpu usage