Archive for the ‘cPanel’ Category.

cPanel SpamAssassin issue

Bump into this slight issues when checking my development server box.

Can’t locate Cpanel/ in @INC (@INC contains: /usr/lib/perl5/5.8.8/x86_64-linux /usr/lib/perl5/5.8.8 /usr/lib/perl5/site_perl/5.8.8/x86_64-linux /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.6.2 /usr/lib/perl5/site_perl) at /usr/bin/spamd line 27.
BEGIN failed–compilation aborted at /usr/bin/spamd line 27.


/scripts/perlinstaller –force Mail::SpamAssassin

Hope this helps… 🙂

Those looking for PHP 5 in Singapore

Finally after a long period of testing on my cPanel server in Singtel, I can finally roll out PHP 5 on my server including PHP 4 support. This move will enable that I can keep up with the development I am doing as PHP 4 will be discontinued at 2007-12-31

So if anyone of you need PHP 5 hosting, do feel free to drop me a email at I will give you a good discount 🙂

How to setup hostkey authenication for SSH

Well, I always hate to read long tutorial with text. So I am going to teach you now how to setup to connect to a remote host using hostkey which does not require password and you can add an additional level of security 🙂

You need to download two program first before you can generate the key

Download SSH

Continue reading ‘How to setup hostkey authenication for SSH’ »

Server Migration


I have just completed a server migration for a customer of mine. Well, I have scheduled for migration on Sunday 22 July 2007 3AM – 5AM. The entire plan went pretty smoothly as this is a hardware upgrade so there will be no DNS propagation (Swap IPs between servers).

The draft plan
1) Stop Apache server but keep other services(Mail, FTP, MySQL) running
2) My custom script will start packing the accounts
3) Copy all the backup files to the new server
4) Inform datacenter guys to swap the IPs
5) Re-configure the new server settings (my custom scripts that does the dirty work for me)
6) So…unpacking of accounts starts
7) All the website are getting back online as the unpacking for each domain complete.

Conclusion : No DNS propagation required which might take up to 24 hours to be completed. Everything gets migrated to the new powerful server within 2 hours.

Had a good laugh

I was helping someone to look at their cPanel installations as it is not working. I run /scripts/upcp –force and the error show up.

Method: Hope and Pray (Warning! Perl Expect and the expect binary are not installed!)

Had a good laugh first then I went ahead to install the “expect” package. After which, I install the Perl Expect from the cPanel scripts directory


Now, proceed to force update again and everything is back to normal 🙂

cPanel bug again.

Well, I am trying to get tired of cPanel bugs coming out of the system.

This is a new problem I encounter when I am doing some backup script coding.

File::Copy::Recursive version 0.33 required--this is only version 0.30 at /scripts/cPScript/ line 166.
BEGIN failed--compilation aborted at /scripts/cPScript/ line 166.
Compilation failed in require at /scripts/cPScript/ line 20.
BEGIN failed--compilation aborted at /scripts/cPScript/ line 20.
Compilation failed in require at /scripts/ line 13.
BEGIN failed--compilation aborted at /scripts/ line 13.

Seems like one of the Perl Module fail. So what I did was to reinstall the Perl Module.

cpan File::Copy::Recursive

Just let the system run and reinstall the module.

After which, it is working fine again.

Hope this helps someone if they encounter the same problem 🙂

Bad Morning

Well, I can’t explain what happen this morning but simply just a day with lots of problem. First when I wake up, I check my mails as usually and saw a email stating “451 Temporary local problem”, so I went to login to the box. Found out that clamd is giving problem.

So I went ahead to delete a file.

rm -rf /var/lib/clamd/\*.cvd

This file is forever giving me problems. It is due to a corrupted signature from the master mirror. So I went to restart the clamd, freshclam and exim. Now it’s back online to work once again.

So this problem was solved within 10 mins. No wonder why I wake up suddenly by a ‘special’ force.

Mail Server problem.

First thing in the morning when I wake up is to check my emails and see if there is anything wrong with my servers. 1 email struck me when I was just looking at my emails subject “Email Servers is not responding”. The next reaction is to try to solve the problem before more complain comes in.

The next moment is to do telnet to the server, telnet is administrator’s favorite tool as it will tell you what is the server responds to your request.

I try to connect to the IMAP and POP server. Both response to my request. Everything seems alright at this stage. I went on further to check on the authentication of the mail account. No matter how hard I try, it tell me that the username and password fail.

Horde login failure message

Notice: Unknown(): Login failed. (errflg=1) in Unknown on line 0

10 minutes has passed, so one command come to my mind immediately is to force rebuild the IMAP server.

/scripts/courierup –force

After waiting for the script to complete it’s job, horde is communicating to the IMAP again. Seems like cPanel did not install and startup it’s services properly during the first setup.