“Could not instantiate mail function” and “Value does not fall within the expected range” troubleshooting

The reason I wrote this article in English is that all these problems occured in English environment. You can reprint this article freely as long as you link back to http://www.shawnwang.net/704.html/ These problems have bothered me for almost a whole day, and I finally got everything fixed now. I ran into the error early this morning when I answered one of my clients’ ticket in WHMCS, the mail didn’t got through, it gave me an “Email Sending Failed – Could not instantiate mail function” error, I searched google for a few hours but none of them were really helping. So I decided to troubleshoot this by myself. I started with checking Plesk’s mail system, Read More

IIS7/IIS7.5中绑定中文域名

刚刚发现有个客户绑定的中文域名没法正常解析,而且网站没法启动,后来上网查了资料才发现IIS7/IIS7.5可以直接绑定中文域名,不需要转换编码。 直接绑定中文域名就OK。 IIS 7/IIS7.5的500.19错误Value does not fall within the expected range 值不在预期范围内,也是因为这个引起的,按这个方法改了后就可以解决。 Read More

DDoS攻击原理与防御方法解析

DoS 攻击、DDoS攻击和DRDoS攻击相信大家已经早有耳闻了吧!DoS是Denial of Service的简写就是拒绝服务,而DDoS就是Distributed Denial of Service 的简写就是分布式拒绝服务,而DRDoS就是Distributed Reflection Denial of Service的简写,这是分布反射式拒绝服务的意思。    不过这3中攻击方法最厉害的还是DDoS,那个DRDoS攻击虽然是新近出的一种攻击方法,但它只是DDoS攻击的变形,它的唯一不同就是不用占领大量的“肉鸡”。这三种方法都是利用TCP三次握手的漏洞进行攻击的,所以对它们的防御办法都是差不多的。     Read More

WHMCS产品信息无法修改写入的解决办法

网站从美国搬到香港后,这个问题困扰了我好几天,最后整得没办法了,给WHMCS官方发邮件求助,解决办法很简单,去掉MYSQL的STRICT MODE问题就迎刃而解了。 具体方法: Open your “my.ini” file within the MySQL installation directory, and look for the text “sql-mode”. Find: Code: # Set the SQL mode to strict sql-mode=”STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION”Replace with: Code: # Set the SQL mode to strict sql-mode=”NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION”Or, you can run an SQL query within your database management tool, such as phpMyAdmin: Code: SET Read More

Hyper-v can’t open created VM

Windows 2008 Hyper-V worked fine.  I was able to create and run virtual machines.  I decided to upgrade to Windows 2008 R2 RTM for lab testing.  Available articles said you can leave Hyper-V installed in Windows 2008 even though there is a warning during installation of R2.  I exported a VM for importing back into W2008 R2.  Installed W2008R2.  The imported VM will not start.  Created new VM’s and they will not start.  Event log shows two errors occurring whenever an attempt is made to start a VM.  Event log follows.  I have spent a couple of days trying to figure out what happened.  Nothing changed in the BIOS to disable VM’s and the upgrade went without error.  Read More

Hyper-V File Storage and Permissions

Introduction Hyper-V takes a different approach to virtual machine file storage than Virtual Server 2005 R2. The default locations are different, the storage approach is different, and the configuration files are different. What does this mean to the seasoned Virtual Server 2005 R2 administrator? It means that you will need to start with a fresh slate and learn how it all works. So let us dive in. Service SIDS To allow all of the file storage and access changes, Hyper-V leverages a new type of SID added to Windows Server 2008 called a Service SID to control access to virtual machine files. A virtual machine gets a GUID when created and a corresponding unique Service SID is created for the Read More

防止服务器中网卡被禁用

曾经因为不小心的点击把服务器的网卡给禁止掉了。这可杯具呀。找了好久,发现这个方法,收藏吧。 方法,用组策略来实现,步骤: 1、运行——》gpedit.msc; 2、导航至:用户配置——》管理模板——》网络——》网络连接; 3.1、找到“禁止启用/禁用 LAN 连接的组件”,设置为“已启用”; 3.2、找到“启用/禁用 LAN 连接的能力”,设置为“已禁用”; 3.3、找到“为管理员启用 Windows 2000 网络连接设置”,设置为“已启用”; 4、运行——》gpupdate Read More