2012年12月4日

摘要: 今天要把一个只支持php4的旧文件管理系统移到新的centos6机器。centos6中自带的是php5,上网搜索了一下,php4和php5并存的方法其实也挺简单,思路是php4使用cgi模式以与php5分开。网上有些是用fastcgi模块装入的,速度应该会更快。为简单起见,就用cgi了。具体如下:从php.net下载php4的源码,编译安装。configure时注意指定安装目录。我的编译参数比较简单,因为只需要满足我们的那个旧文件管理系统就行了。enable-cgi是必需的:./configure --prefix=/usr/local/php4 --enable-cgi --with-mys 阅读全文
posted @ 2012-12-04 22:07 Amonw's Weblog 阅读(208) 评论(0) 推荐(0) 编辑

2012年2月16日

摘要: option ms-classless-static-routes code 249 = array of unsigned integer 8;option rfc3442-classless-static-routes code 121 = array of unsigned integer 8;subnet 192.168.1.0 netmask 255.255.255.0 { option routers 192.168.1.1; option ms-classless-static-routes 24,192,168,2,192,168... 阅读全文
posted @ 2012-02-16 22:58 Amonw's Weblog 阅读(1159) 评论(0) 推荐(0) 编辑

2011年5月21日

摘要: Use ifunbox to copy /var/mobile/Library/AddressBook/* and /var/mobile/Library/SMS/* to PC and then from PC to the other iPhone. Now you get the SMS and contacts on the other iPhone. But you can't send SMS or add new contacts. Why? SSH into the iPhone, you'll find the owner of the files you j 阅读全文
posted @ 2011-05-21 23:25 Amonw's Weblog 阅读(188) 评论(0) 推荐(0) 编辑

2011年4月9日

摘要: 今天拿到IPhone4,设置与Exchange 2010同步,帐号建立成功,同步时出错:“cannot get mail the connection to the server failed”。別的同事的帐号都没问题。google之,原来是因为我的帐号是管理员。解决办法是在帐号的属性->Security->Advanced中选中"Include inheritable permissions from this object's parent",然后马上同步Exchange。一小时内这个选项会被自动还原。具体原因参照:http://retrohack. 阅读全文
posted @ 2011-04-09 04:11 Amonw's Weblog 阅读(360) 评论(0) 推荐(0) 编辑

2010年11月13日

摘要: 今天一个同事拿回来他自己的手提电脑,说outlook2003不能保存password。google到microsoft的一个kb:http://support.microsoft.com/default.aspx?scid=kb;en-us;290684,不行,再找了很久,找到这个:http://www.eggheadcafe.com/software/aspnet/32564635/outloo... 阅读全文
posted @ 2010-11-13 00:30 Amonw's Weblog 阅读(240) 评论(0) 推荐(0) 编辑

2010年9月10日

摘要: 今天在做一个页面,要求通过一个按钮显示/隐藏一个flash。放置两个position是absolute的div,把flash放在其中一个div里,修改这个div的z-index,发现flash始终在前面。于是Google,找到:http://www.askapache.com/css/getting-flash-to-show-up-in-front-of-content.html 。原来flas... 阅读全文
posted @ 2010-09-10 11:15 Amonw's Weblog 阅读(246) 评论(0) 推荐(0) 编辑

2010年5月6日

摘要: 新增一个inbound route,在zaptel channel中填入中继编号,如“1” ,在Alert info中输入“<http://>;info=alert-group”。其中“alert-group”可换成“alert-internal”或“alert-external... 阅读全文
posted @ 2010-05-06 23:27 Amonw's Weblog 阅读(207) 评论(0) 推荐(0) 编辑

2010年4月7日

摘要: 前几天重启SQL Server服务器,SQL Server服务无法启动,查事件查看器的系统事件,发现是由于上个月改了管理员密码。(Sql Server是用管理员帐号启动的,不建议这样做,只是偷懒)。于是进入SQL Server配置管理器修改登录用户密码,提示“WMI提供程序错误:拒绝访问:[0x80070005]”。Google之,原因未明,但找到一个workaround:... 阅读全文
posted @ 2010-04-07 22:15 Amonw's Weblog 阅读(2829) 评论(3) 推荐(0) 编辑

2010年2月12日

摘要: 如果AD认证不通过则使用linux系统认证。/etc/ldap.conf:host 192.168.1.1base dc=mycompany,dc=localbinddn ldap@mycompany.localbindpw Thisisaveryhardpasswordldap_version 3port 389pam_filter objectclass=Userpam_login_attri... 阅读全文
posted @ 2010-02-12 00:59 Amonw's Weblog 阅读(461) 评论(0) 推荐(0) 编辑

2010年2月11日

摘要: 今天测试一个用域控制器的AD进行用户认证的网页。机器A运行soap服务,用ldap访问域控制器进行认证,web服务器用soap client调用机器A的soap服务函数来进行用户认证。由于机器A运行的是PHP4,没有内置soap,所以两台机器都使用NuSOAP。在web服务器上命令行测试soap client通过,可是在网页上测试不通过,打印client->debug_str显示:soap_... 阅读全文
posted @ 2010-02-11 21:59 Amonw's Weblog 阅读(543) 评论(0) 推荐(0) 编辑