删除无用网卡信息

通过注册表删除多余网卡本地连接的方法这篇文章的内容如下: 在网卡出了问题并重新安装了网卡驱动程序后,系统将会自动创建连接,而且这个连接将会由原来的“本地连接”变成“本地连接2”。而“本地连接”的相关信息仍然存在于系统中。当你在“本地连接2”中设置IP等相关信息时,如果这些参数与以前的“本地连接”中设置的相同,系统将会提示被其它网卡占用的信息,此时你可以手工将以前的连接信息删除,将“本地连接2”转换成“本地连接”,问题即可解决,方法如下:打开注册表编辑器,展开到“HKEY_LOCAL_MCHINESYSTEMCurrentControlSetControl Network{4D36E972-E325-11CE-BFC1-08002BE10318}”,
  在该子键下面保存着关于本地连接的信息。在此有一个或多个子键,其中第一个子键对应着“本地连接”,第二个子键就对应着“本地连接2”依此类推,你也可以展开该子键,再选择下面的“Connection”子键,在右侧窗口中将会看到具体是对应着哪个连接,直接将对应以前旧连接的整个子键删除即可。

Installing and Configuring Windows Server 2008 SMTP

Installing SMTP Server Feature on Windows 2008 is an easy process requiring only few steps to complete. On this article we will describe a step by step configuration and installation of the SMTP Server feature and how to enable the smtp to relay from local server.

Step 1:

Opening Server Manager Console and under Features select Add Features

Step 2:

Selecting SMTP Server option

Step 3:

Click on Install wait until finish and click close

Step 4:

Waiting for installation to finish and clicking on Close

Step 5:

Opening IIS 6.0 Manager under Administrative Tools -> Internet Information Services 6.0

Step 6:

Under [SMTP Virtual Server] second mouse click and properties

Step 7:

Select Relay under Access Tab

Step 8:

Select Only the list below and click on Add button

Step 9:

Enter IP Address 127.0.0.1 for relay

Step 10:

Sending a manual email through telnet to confirm everything working successfully. Telnet localhost 25 or telnet yourpublicip 25 and make sure you open the specific port on your firewall to be available to public.

WHMCS From Latin1 To UTF8

The database was in latin1 sweedish colation and this had some side effects with the Greek characters.

FIRST THING: GO TO PHPMYADMIN AND EXPORT DATABASE TO HAVE A BACKUP!

Then I went to administration, utilities, database status, download backup.

This makes a good backup with proper encoding inside. (for me this was the right version and not the one created with phpmyadmin)

I opened the .sql file with Notepad++ and I replaced latin1 with utf8 in all the document. Save.

Then I went to phpmyadmin and i checked all tables and then selected the action drop. I confirmed dropping the tables, and then I went to import.

I imported the new sql file I created with Notepad and then I checked the database structure, tables structure and browsed some of the data. Everything appeared perfect!

Loaded a sample page of WHCS but all the Greek characters were corrupted and looked like ?????. After some research I added this line in configuration.php

mysql_charset=”utf8″;

Now everything worked perfect! I checked the database again and I made sure that the database collation was utf8_general_ci (if it isn’t go to operations and change collation).

I’m a happy Greek user of WHMCS now!

WebsitePanel not creating DNS entries in secondary name server

You must add an IP Address to each Name Server under Configuration > Servers > Click on the name of the first name server and then choose IP Address, then type an IP address (192.168.0.101) and then add. Do the same for the second Name Server (192.168.0.102).

Then, in the SimpleDNS Server Service Properties look for the section called “Listening IP Address” , choose the IP Address that you assigned this server and then click the Add button. Do this for BOTH Name Servers and BOTH SimpleDNS Server Services.

These IP Addresses are used to tell SimpleDNS which IPs to allow zone transfers from…if they arent specified then SimpleDNS wont allow a zone transfer from your secondary name server like you want it to 🙂

(Also, just as a side note… I went into the SimpleDNS management interface directy, and went into the options and told it to only bind to port 53 on the specific IP Address that I chose above….that way it’s not listening for DNS on all IPs on the machine. This is probably more important in a single server installation, or where your DNS servers have multiple NICs or IPs.)

Kernel Panic after Yum Update – CentOS with Hyper-V Linux Integration Components

I am runnning CentOS 5.5 in a VM on Hyper-V. I created a fresh installation. I then installed Hyper-V Linux Integration Components. After Installing them I ran yum update.

After running a “yum update”, and rebooting I received this error.

Unable to access resume device (/dev/VolGroup00/LogVol01)
mount: could not find filesystem ‘/dev/root’
setuproot: moving /dev failed: No such file or directory
setuproot: error mounting /proc: No such file or directory
setuproot: error mounting /sys: No such file or directory
switchroot: mount failed: No such file or directory
Kernel panic – not syncing: Attempted to kill init!

During the yum update process, it updated my kernel. Kernels that are installed after Hyper-V Linux Integration Components don’t always mesh well together. Here is how I fixed my issue.

While booting, grub will ask you to hit any key to boot into the menu.

Hit any key and you will see a list of the Linux kernels on your machine.

Mine looks like:

CentOS (2.6.19-194.26.1.el5)
CentOS (2.6.18-194.el5)

The first one(newest) is booting by default and causing the issues. I will select my old kernel for the time being so that I can boot into linux and fix the issue with the new kernel.

So I will select CentOS (2.6.18-194.el5) and boot into linux. At this point, it should boot into linux normally.

Now, virtually put in your Linux Integration Components V2.1 CD into the VM.
As root, run:

mkdir /opt/linux_ic_v21_rtm
cp -r /media/CDROM/* /opt/linux_ic_v21_rtm
cd /opt/linux_ic_v21_rtm
grep -ilR uname * | xargs sed -i ‘s/uname \-r/echo “2.6.19-194.26.1.el5″/g’
make && make install
reboot

Replace 2.6.19-194.26.1.el5 with the kernel that is giving you grief. If you forgot which kernel it was you can double check the /boot/grub/grub.conf file. Chances are its the one on the top.

After the reboot, it should be able to boot into the new kernel.

Websitepanel无法新建网站的解决办法

今天在转移WEBSITEPANEL的时候遇到以下问题,无法新建网站:

[8/16/2010 6:35:19 PM] ERROR: ‘Internet Information Services 7.0’ UpdateSite
System.NullReferenceException: Object reference not set to an instance of an object.
at WebsitePanel.Providers.Web.IIs70.SetWebSiteApplicationPool(WebSite site, Boolean createAppPools)
at WebsitePanel.Providers.Web.IIs70.UpdateSite(WebSite site)
at WebsitePanel.Server.WebServer.UpdateSite(WebSite site)

将BackupCatelog.xml文件中的对应<AspNetInstalled />字段改成<AspNetInstalled>2</AspNetInstalled>即可正常恢复。