Howto: Configure CloudLinux kernel on pv xen

In other to switch your hosted server with pv xen to CloudLinux server, you may refer to the step as below,

1. Make sure that /etc/sysconfig/kernel is as line below, if the file is not exist, create it,


2. Install grub if it is not,

yum install grub

3. Check /etc/modprobe.conf is exists and with the following line it is not,

alias eth0 xennet
alias scsi_hostadapter xenblk

4. If you have install the newer kernel, run the following line,

mkinitrd -f /boot/

‘xx’ should be the same as you newly installed kernel-xen version

5. Else, install kernel,

yum install kernel-xen

6. Check if /boot/grub/grub.conf exists, else create it,

ln -s /boot/grub/grub.conf /boot/grub/menu.lst
ln -s /boot/grub/grub.conf /etc/grub.conf

7. Make sure that the /etc/grub.conf is look like,

title CentOS (2.6.18-308.11.1.el5xen)
root (hd0,0)
kernel /boot/vmlinuz-2.6.18-308.11.1.el5xen console=xvc0 root=/dev/sda1 ro
initrd /boot/initrd-2.6.18-308.11.1.el5xen.img

Make sure that the vmlinuz and initrd should be the same.

8. Ask your hosting provider to change the kernel type to pygrub and reboot it.

Joomla: migrate content from Joomla 1.5 to Joomla 1.7

This article is sharing how to migrate your Joomla 1.5 content to Joomla 1.7.

As Joomla 1.5 and Joomla 1.7 come with different structure, you might found out it is difficult to upgrade your Joomla directly from application source. However, you may upgrade the content from back-end.

First of all, you need to ensure the database prefix and assume that you are using original prefix named jos_.

To backup from Joomla 1.5,
1. Log into the PHPMyAdmin.
2. Select on SQL tab.
3. Enter this query,

SELECT `title`, `alias`, `title_alias`, `introtext`, `fulltext`, `state`, `sectionid`, `mask`, `catid`, `created`, `created_by`, `created_by_alias`, `modified`, `modified_by`, `checked_out`, `checked_out_time`, `publish_up`, `publish_down`, `images`, `urls`, `attribs`, `version`, `parentid`, `ordering`, `metakey`, `metadesc`, `access`, `hits`, `metadata` FROM jos_content

4. Select on Export from bottom.
5. Click Go to save it.

To restore to Joomla 1.7,
1. Log into the PHPMyAdmin.
2. Click on the Import button.
3. Select the file and import it.

Install and configure AWStats on Centos

Assume that you have Apache installed and it is working, you want to apply AWStats to your Centos server.

1. Install AWStats with yum.
yum install awstats
2. Edit the file named /etc/httpd/conf.d/awstats.conf with line below,

Alias /awstats/icon/ /var/www/awstats/icon/

ScriptAlias /awstats/ /var/www/awstats/

        Options ExecCGI
        order deny,allow
        allow from all

Alias /awstatsclasses "/var/www/awstats/lib/"
Alias /awstats-icon/ "/var/www/awstats/icon/"
Alias /awstatscss "/var/www/awstats/examples/css"

3. Edit the following line from /etc/awstats/awstats.localhost.localdomain.conf.


4.Rename the configuration file to the correct one,
mv /etc/awstats/awstats.localhost.localdomain.conf /etc/awstats/
5. Update the statistic,
/usr/bin/ now -confdir=”/etc” -awstatsprog=”/var/www/awstats/”

Linux Command: alias

Some times, you will found out your used server having different setting in term of the command used from the other server such as “ls” is having different color, etc.

To actually understand what is the shortcut set from your server, you may use Linux command named alias.

To show previous set shortcut,
[email protected] [~]# alias
alias attrib=’chmod’
alias chdir=’cd’
alias copy=’cp’
alias d=’dir’

To set new alias,
[email protected] [~]# alias bb=’ps aux | more’

To remove the alias,
[email protected] [~]# unalias bb