Archive for December 21st, 2011

How to reset the load value for server?

You can set the load value for server by using following steps but make sure that you are having root login details to make server wide chanegs. Edit the file /var/cpanel/cpanel.config and change extracpus to a number larger then 0 Then run /usr/local/cpanel/startup afterwards to pickup the changes.  

How to Open Passive FTP in iptable?

To Open Passive FTP in iptable root login is require. If you want to open port range from 30000:64000 then run the following command from shell. iptables -A INPUT -p tcp -m tcp –dport 30000:64000 -j ACCEPT Similarly you can open passive post range as per your requirement.  

What is Core Files in Linux?

A core file created when ever a program terminates unexpectedly and its also useful for determining what caused the termination. In many Linux server by default they do not produce core files when programs crash or terminates unexpectedly. On  most of the Linux server core file size limitation is set to 0.You can check the […]

How to change timezone on Linux server?

You can change the time zone for your server by using following command. root@admin[~]#date Wed Nov 11 19:30:29 EST 2009 For example we are changing time zone  from EST to GMT. root@admin[~]#ln -sf /usr/share/zoneinfo/GMT /etc/localtime root@admin[~]#date Thu Nov 12 00:31:36 GMT 2009  

How to upgrade kernel version?

First you need to download the latest stable kernel. You can check it at http://kernel.org/. Download it : root@server [~]# cd /usr/local/src/ root@server [~]# wget http://www.kernel.org/pub/linux/kernel/v2.6/ Select latest Kernel and download it root@server [~]# tar –zxvf linux-2.6.28.tar.gz root@server [~]#cd linux-2.6.28 root@server [~]# make clean root@server [~]# make mrproper root@server [~]# uname -r root@server [~] # cp […]

Disable php for single hosting account.

We can disable the php for single hosting account by using following code in .htaccess file. php_value engine off  

How to delete frozen emails?

You can delete the frozen emails by using the following command from shell but make sure that you have logged in as a root user. exim -bp | awk ‘$6~”frozen” { print $3 }’ | xargs exim -Mrm  

Add SPF record by default for all new accounts domain

If anyone want to add SPF record by default to newly created account on cPanel server then follow the steps one by one to enable the SPF record. 1. Login to WHM using root 2. Click on Edit “Zone Templates” and then on “standard” 3. Add at the end of the “Zone Templates” file: %domain%. […]

Send mail by using phpmail function.

You can create a simple php mail form by using following code.. ————————– <? $to      = ‘supp0rt@xyz.com’; $subject = ‘The test for mail function’; $message = ‘Hello’; $headers = ‘From: test@abc.com’ . “\r\n” . ‘Reply-To: test@testforever.com’ . “\r\n” . ‘X-Mailer: PHP/’ . phpversion(); mail($to, $subject, $message, $headers); ?> ————————– If you are not able to […]

How to enable html display for horde?

You can enable the html display for horde by using following steps but please make sure that you have been logged in as root. root@admin[~]# vi /usr/local/cpanel/base/horde/imp/config/mime_drivers.php Search for the line —- /** * HTML driver settings */ $mime_drivers[‘imp’][‘html’][‘inline’] = false; —– and replace it with ——– /** * HTML driver settings */ $mime_drivers[‘imp’][‘html’][‘inline’] = […]