<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-8852963114515422266</id><updated>2012-02-16T17:43:03.410-08:00</updated><title type='text'>Mayur's BLOG</title><subtitle type='html'>Do what you can with what you have where you are.
                                    - Theodore Roosevelt</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default?start-index=101&amp;max-results=100'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>146</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-2258576185419324484</id><published>2010-11-30T10:11:00.000-08:00</published><updated>2010-11-30T10:12:52.929-08:00</updated><title type='text'>How To Create OpenVZ Virtual Machines (VPS)</title><content type='html'>How do I create OpenVZ virtual machine (VPS) to run CentOS or Debian as VPS?&lt;br /&gt;&lt;br /&gt;OpenVZ comes with a template for each VPS or virtual machine. OpenVZ provides templates for all leading Linux distributions. You need to download those templates in order to create a VPS. Visit this page to grab templates for vps.&lt;br /&gt;&lt;br /&gt;Download Ubuntu Linux VPS&lt;br /&gt;&lt;br /&gt;Type the following commands to download precreated Ubuntu Linux template:&lt;br /&gt;&lt;br /&gt;    # cd /vz/template/cache&lt;br /&gt;    # wget http://download.openvz.org/template/precreated/ubuntu-9.04-x86_64.tar.gz&lt;br /&gt;&lt;br /&gt;Download CentOS 64 bit template:&lt;br /&gt;&lt;br /&gt;    # cd /vz/template/cache&lt;br /&gt;    # wget http://download.openvz.org/template/precreated/centos-5-x86_64.tar.gz&lt;br /&gt;&lt;br /&gt;Create VPS&lt;br /&gt;&lt;br /&gt;Now you’ve download the template for your virtual machine. You can just start a VPS based on the template you have just downloaded, by typing the following commands:  [10 is VPS ID you can use as per your requirement]&lt;br /&gt;&lt;br /&gt;    vzctl create 10 –ostemplate ubuntu-9.04-x86_64&lt;br /&gt;    vzctl set 10 –onboot yes –save&lt;br /&gt;&lt;br /&gt;    ***  Set IP for VPS ***&lt;br /&gt;    vzctl set 10 –ipadd 192.168.1.5 –save&lt;br /&gt;&lt;br /&gt;    *** Set Nameservers IP for VPS ***&lt;br /&gt;    vzctl set 10 –nameserver 192.168.1.111 –save&lt;br /&gt;    vzctl set 10 –nameserver 192.168.1.111 –save&lt;br /&gt;&lt;br /&gt;    *** Set Hostname IP for VPS ***&lt;br /&gt;    vzctl set 10 –hostname ourlinuxblog.wordpress.com –save&lt;br /&gt;&lt;br /&gt;    *** Set Disk quota for VPS (10G min [soft] and 11G max hard limit) ***&lt;br /&gt;    vzctl set 10 –diskspace 10G:11G –save&lt;br /&gt;&lt;br /&gt;    *** Okay lets the vps ***&lt;br /&gt;    vzctl start 10&lt;br /&gt;&lt;br /&gt;    ***  Set root user password for VPS ***&lt;br /&gt;    vzctl exec 10 passwd&lt;br /&gt;&lt;br /&gt;vzctl is used to create and set various vps properties such as memory, disk usage and much more. Where,&lt;br /&gt;&lt;br /&gt;    * create 10 : Your VPS ID.&lt;br /&gt;    * –ostemplate ubuntu-9.04-x86_64 : VPS template.&lt;br /&gt;    * –config vps.ubuntu: Save configuration.&lt;br /&gt;    * set 10 : Set various option for VPS ID # 10.&lt;br /&gt;    * –onboot yes : Make sure VPS boots automatically after a reboot.&lt;br /&gt;    * –save : Save changes to config file.&lt;br /&gt;&lt;br /&gt;Common OpenVZ Admin Tasks&lt;br /&gt;&lt;br /&gt;vzctl act as a master tool for various tasks:&lt;br /&gt;&lt;br /&gt;How Do I Set VPS Name to ourlinuxblog.wordpress.com ?&lt;br /&gt;&lt;br /&gt;    # vzctl set 10 –hostname ourlinuxblog.wordpress.com –save&lt;br /&gt;&lt;br /&gt;How Do I Set VPS IP Address?&lt;br /&gt;&lt;br /&gt;    # vzctl set 10 –ipadd 74.86.48.99 –save&lt;br /&gt;&lt;br /&gt;How Do I Set VPS DNS Name Servers?&lt;br /&gt;&lt;br /&gt;    # vzctl set 10 –nameserver 10.0.1.11 –save&lt;br /&gt;&lt;br /&gt;How Do I Set Disk Quota?&lt;br /&gt;&lt;br /&gt;    # vzctl set 10 –diskspace SoftLimitG:HardLimitG –save&lt;br /&gt;&lt;br /&gt;    # vzctl set 10 –diskspace 10G:12G –save&lt;br /&gt;&lt;br /&gt;How Do I Stop / Start / Restart VPS Servers?&lt;br /&gt;&lt;br /&gt;    # vzctl start 10&lt;br /&gt;    # vzctl restart 10&lt;br /&gt;    # vzctl stop 10&lt;br /&gt;&lt;br /&gt;How Do I Run a Command For VPS?&lt;br /&gt;&lt;br /&gt;You can run command as follows&lt;br /&gt;&lt;br /&gt;    # vzctl exec 10 w&lt;br /&gt;    # vzctl exec 10 df&lt;br /&gt;    # vzctl exec 10 date&lt;br /&gt;    # vzctl exec 10 ps aux&lt;br /&gt;&lt;br /&gt;How Do I Login Into VPS Server (container)?&lt;br /&gt;&lt;br /&gt;    # vzctl enter 10&lt;br /&gt;&lt;br /&gt;How Do I Delete VPS?&lt;br /&gt;&lt;br /&gt;Type the following command to delete VPS:&lt;br /&gt;&lt;br /&gt;    # vzctl destroy 10&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-2258576185419324484?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/2258576185419324484/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=2258576185419324484' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/2258576185419324484'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/2258576185419324484'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2010/11/how-to-create-openvz-virtual-machines.html' title='How To Create OpenVZ Virtual Machines (VPS)'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-6609611253248588964</id><published>2010-10-24T04:29:00.000-07:00</published><updated>2010-10-24T04:35:48.664-07:00</updated><title type='text'>How to check command history by date/time</title><content type='html'>If you want to check history of the command by date and time, you need to set following export path on the server&lt;br /&gt;&lt;br /&gt;root@server [~&lt;span style="font-weight:bold;"&gt;&lt;/span&gt;]# export HISTTIMEFORMAT='%F %T '&lt;br /&gt;&lt;br /&gt;then you will get the output of history command like given below:&lt;br /&gt;&lt;br /&gt;root@layang [/tmp]# history | grep ls&lt;br /&gt;   31  2010-10-24 18:33:45 ls&lt;br /&gt;   33  2010-10-24 18:33:45 ls&lt;br /&gt;   36  2010-10-24 18:33:45 ls&lt;br /&gt;   64  2010-10-24 18:33:45 ls&lt;br /&gt;&lt;br /&gt;Thats it :o)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-6609611253248588964?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/6609611253248588964/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=6609611253248588964' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/6609611253248588964'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/6609611253248588964'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2010/10/datetime-wise-command-history.html' title='How to check command history by date/time'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-9206924451388476246</id><published>2010-10-15T14:14:00.000-07:00</published><updated>2010-10-15T14:18:40.846-07:00</updated><title type='text'>cPanel :: Unable to locate clamd</title><content type='html'>If you are not able to restart clamd on cpanel server and getting following error:&lt;br /&gt;&lt;br /&gt;root@hazel [~]# /scripts/restartsrv_clamd &lt;br /&gt;Unable to locate clamd&lt;br /&gt;&lt;br /&gt;Please follow the steps as given below:&lt;br /&gt;&lt;br /&gt;#  Red Hat Enterprise Linux 5 / i386:&lt;br /&gt;rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm&lt;br /&gt;# Red Hat Enterprise Linux 5 / x86_64:&lt;br /&gt;rpm -Uhv http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS//rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm&lt;br /&gt;&lt;br /&gt;Then install it through yum:&lt;br /&gt;&lt;br /&gt;yum install clamd&lt;br /&gt;&lt;br /&gt;And finally restart clamd service:&lt;br /&gt;&lt;br /&gt; /scripts/restartsrv_clamd &lt;br /&gt;&lt;br /&gt;That's it.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-9206924451388476246?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/9206924451388476246/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=9206924451388476246' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/9206924451388476246'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/9206924451388476246'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2010/10/cpanel-unable-to-locate-clamd.html' title='cPanel :: Unable to locate clamd'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-6991121681200818551</id><published>2010-10-10T15:58:00.000-07:00</published><updated>2010-10-10T16:03:02.998-07:00</updated><title type='text'>Install yum</title><content type='html'>This article is specific to CentOS, however the packages required for yum here are the same on other flavors&lt;br /&gt;&lt;br /&gt;The scripts shown below install all the packages upon which yum depends for a 386 distro (Need separate 64 bit instructions)&lt;br /&gt;&lt;br /&gt;Please note - that the version numbers of the packages WILL change as later releases come out, it is up to you to ensure that the packages used are the latest. If you find a package in this script has become deprecated, please update this page with the latest package so others do not have to search for it as well. &lt;br /&gt;&lt;br /&gt;CentOS 4 i386&lt;br /&gt;&lt;br /&gt;rpm -Uvh http://mirror.centos.org/centos-4/4/os/i386/CentOS/RPMS/gmp-4.1.4-3.i386.rpm&lt;br /&gt;rpm -Uvh http://mirror.centos.org/centos-4/4/os/i386/CentOS/RPMS/readline-4.3-13.i386.rpm&lt;br /&gt;rpm -Uvh http://mirror.centos.org/centos-4/4/os/i386/CentOS/RPMS/python-2.3.4-14.7.el4.i386.rpm&lt;br /&gt;rpm -Uvh http://mirror.centos.org/centos-4/4/os/i386/CentOS/RPMS/libxml2-2.6.16-12.6.i386.rpm&lt;br /&gt;rpm -Uvh http://mirror.centos.org/centos-4/4/os/i386/CentOS/RPMS/libxml2-python-2.6.16-12.6.i386.rpm&lt;br /&gt;rpm -Uvh http://mirror.centos.org/centos-4/4/os/i386/CentOS/RPMS/expat-1.95.7-4.i386.rpm&lt;br /&gt;rpm -Uvh http://mirror.centos.org/centos-4/4/os/i386/CentOS/RPMS/python-elementtree-1.2.6-5.el4.centos.i386.rpm&lt;br /&gt;rpm -Uvh http://mirror.centos.org/centos-4/4/os/i386/CentOS/RPMS/sqlite-3.3.6-2.i386.rpm&lt;br /&gt;rpm -Uvh http://mirror.centos.org/centos-4/4/os/i386/CentOS/RPMS/python-sqlite-1.1.7-1.2.1.i386.rpm&lt;br /&gt;rpm -Uvh http://mirror.centos.org/centos-4/4/os/i386/CentOS/RPMS/elfutils-libelf-0.97.1-5.i386.rpm&lt;br /&gt;rpm -Uvh http://mirror.centos.org/centos-4/4/os/i386/CentOS/RPMS/elfutils-0.97.1-5.i386.rpm&lt;br /&gt;rpm -Uvh http://mirror.centos.org/centos-4/4/os/i386/CentOS/RPMS/rpm-4.3.3-26_nonptl.i386.rpm&lt;br /&gt;rpm -Uvh http://mirror.centos.org/centos-4/4/os/i386/CentOS/RPMS/rpm-python-4.3.3-32_nonptl.i386.rpm&lt;br /&gt;rpm -Uvh http://mirror.centos.org/centos-4/4/os/i386/CentOS/RPMS/python-urlgrabber-2.9.8-2.noarch.rpm&lt;br /&gt;rpm -Uvh ftp://ftp.pbone.net/mirror/ftp.centos.org/4.8/os/alpha/CentOS/RPMS/centos-yumconf-4-4.5.noarch.rpm&lt;br /&gt;rpm -Uvh http://mirror.centos.org/centos-4/4/os/i386/CentOS/RPMS/yum-metadata-parser-1.0-8.el4.centos.i386.rpm&lt;br /&gt;rpm -Uvh http://mirror.centos.org/centos-4/4/os/i386/CentOS/RPMS/yum-2.4.3-4.el4.centos.noarch.rpm&lt;br /&gt;yum -y update&lt;br /&gt;&lt;br /&gt;Note: CentOS 4 i386 updated 20 September 2010&lt;br /&gt;[edit] CentOS 4 X86_64&lt;br /&gt;&lt;br /&gt;rpm -Uvh http://mirror.centos.org/centos/4/os/x86_64/CentOS/RPMS/gmp-4.1.4-3.x86_64.rpm&lt;br /&gt;rpm -Uvh http://mirror.centos.org/centos/4/os/x86_64/CentOS/RPMS/readline-4.3-13.x86_64.rpm&lt;br /&gt;rpm -Uvh http://mirror.centos.org/centos/4/os/x86_64/CentOS/RPMS/python-2.3.4-14.7.el4.x86_64.rpm&lt;br /&gt;rpm -Uvh http://mirror.centos.org/centos/4/os/x86_64/CentOS/RPMS/libxml2-2.6.16-12.x86_64.rpm&lt;br /&gt;rpm -Uvh http://mirror.centos.org/centos/4/os/x86_64/CentOS/RPMS/libxml2-python-2.6.16-12.x86_64.rpm&lt;br /&gt;rpm -Uvh http://mirror.centos.org/centos/4/os/x86_64/CentOS/RPMS/expat-1.95.7-4.x86_64.rpm&lt;br /&gt;rpm -Uvh http://mirror.centos.org/centos/4/os/x86_64/CentOS/RPMS/python-elementtree-1.2.6-5.el4.centos.x86_64.rpm&lt;br /&gt;rpm -Uvh http://mirror.centos.org/centos/4/os/x86_64/CentOS/RPMS/sqlite-3.3.6-2.x86_64.rpm&lt;br /&gt;rpm -Uvh http://mirror.centos.org/centos/4/os/x86_64/CentOS/RPMS/python-sqlite-1.1.7-1.2.1.x86_64.rpm&lt;br /&gt;rpm -Uvh http://mirror.centos.org/centos/4/os/x86_64/CentOS/RPMS/elfutils-libelf-0.97.1-5.x86_64.rpm&lt;br /&gt;rpm -Uvh http://mirror.centos.org/centos/4/os/x86_64/CentOS/RPMS/elfutils-0.97.1-5.x86_64.rpm&lt;br /&gt;rpm -Uvh http://mirror.centos.org/centos/4/os/x86_64/CentOS/RPMS/rpm-4.3.3-26_nonptl.x86_64.rpm&lt;br /&gt;rpm -Uvh http://mirror.centos.org/centos/4/os/x86_64/CentOS/RPMS/rpm-python-4.3.3-26_nonptl.x86_64.rpm&lt;br /&gt;rpm -Uvh http://mirror.centos.org/centos/4/os/x86_64/CentOS/RPMS/python-urlgrabber-2.9.8-2.noarch.rpm&lt;br /&gt;rpm -Uvh ftp://ftp.pbone.net/mirror/ftp.centos.org/4.8/os/alpha/CentOS/RPMS/centos-yumconf-4-4.5.noarch.rpm&lt;br /&gt;rpm -Uvh http://mirror.centos.org/centos/4/os/x86_64/CentOS/RPMS/yum-metadata-parser-1.0-8.el4.centos.x86_64.rpm&lt;br /&gt;rpm -Uvh http://mirror.centos.org/centos/4/os/x86_64/CentOS/RPMS/yum-2.4.3-4.el4.centos.noarch.rpm&lt;br /&gt;yum -y update&lt;br /&gt;&lt;br /&gt;Note: CentOS 4 X86_64 updated 20 September 2010&lt;br /&gt;[edit] CentOS 5 i386&lt;br /&gt;&lt;br /&gt;rpm -Uvh http://mirror.centos.org/centos-5/5/os/i386/CentOS/elfutils-libs-0.137-3.el5.i386.rpm&lt;br /&gt;rpm -Uvh http://mirror.centos.org/centos-5/5/os/i386/CentOS/gmp-4.1.4-10.el5.i386.rpm&lt;br /&gt;rpm -Uvh http://mirror.centos.org/centos-5/5/os/i386/CentOS/readline-5.1-3.el5.i386.rpm&lt;br /&gt;rpm -Uvh http://mirror.centos.org/centos-5/5/os/i386/CentOS/python-2.4.3-27.el5.i386.rpm&lt;br /&gt;rpm -Uvh http://mirror.centos.org/centos-5/5/os/i386/CentOS/python-iniparse-0.2.3-4.el5.noarch.rpm&lt;br /&gt;rpm -Uvh http://mirror.centos.org/centos-5/5/os/i386/CentOS/libxml2-2.6.26-2.1.2.8.i386.rpm&lt;br /&gt;rpm -Uvh http://mirror.centos.org/centos-5/5/os/i386/CentOS/libxml2-python-2.6.26-2.1.2.8.i386.rpm&lt;br /&gt;rpm -Uvh http://mirror.centos.org/centos-5/5/os/i386/CentOS/expat-1.95.8-8.3.el5_4.2.i386.rpm&lt;br /&gt;rpm -Uvh http://mirror.centos.org/centos-5/5/os/i386/CentOS/python-elementtree-1.2.6-5.i386.rpm&lt;br /&gt;rpm -Uvh http://mirror.centos.org/centos-5/5/os/i386/CentOS/sqlite-3.3.6-5.i386.rpm&lt;br /&gt;rpm -Uvh http://mirror.centos.org/centos-5/5/os/i386/CentOS/python-sqlite-1.1.7-1.2.1.i386.rpm&lt;br /&gt;rpm -Uvh http://mirror.centos.org/centos-5/5/os/i386/CentOS/elfutils-0.137-3.el5.i386.rpm&lt;br /&gt;rpm -Uvh http://mirror.centos.org/centos-5/5/os/i386/CentOS/rpm-python-4.4.2.3-18.el5.i386.rpm&lt;br /&gt;rpm -Uvh http://mirror.centos.org/centos-5/5/os/i386/CentOS/m2crypto-0.16-6.el5.6.i386.rpm&lt;br /&gt;rpm -Uvh http://mirror.centos.org/centos-5/5/os/i386/CentOS/python-urlgrabber-3.1.0-5.el5.noarch.rpm&lt;br /&gt;rpm -Uvh http://mirror.centos.org/centos-5/5/os/i386/CentOS/yum-metadata-parser-1.1.2-3.el5.centos.i386.rpm&lt;br /&gt;wget http://mirror.centos.org/centos-5/5/os/i386/CentOS/yum-fastestmirror-1.1.16-14.el5.centos.1.noarch.rpm&lt;br /&gt;wget http://mirror.centos.org/centos-5/5/os/i386/CentOS/yum-3.2.22-26.el5.centos.noarch.rpm&lt;br /&gt;rpm -Uvh yum-*.rpm&lt;br /&gt;yum -y update&lt;br /&gt;&lt;br /&gt;Note: Updated 3 September 2010 by David Rummel&lt;br /&gt;&lt;br /&gt;    * Changed to make it work as one big copy&amp;paste command. (Hint: If it doesn't work later on, look for updated packages) &lt;br /&gt;&lt;br /&gt;    * If you get some complaints about rpm and maybe popt, you might need to use the --nodeps option to get the dependencies right. &lt;br /&gt;&lt;br /&gt;[edit] CentOS 5 x86_64&lt;br /&gt;&lt;br /&gt;rpm -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/gmp-4.1.4-10.el5.x86_64.rpm&lt;br /&gt;rpm -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/readline-5.1-3.el5.x86_64.rpm &lt;br /&gt;rpm -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/python-2.4.3-27.el5.x86_64.rpm&lt;br /&gt;rpm -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/libxml2-2.6.26-2.1.2.8.x86_64.rpm&lt;br /&gt;rpm -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/libxml2-python-2.6.26-2.1.2.8.x86_64.rpm&lt;br /&gt;rpm -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/expat-1.95.8-8.3.el5_4.2.x86_64.rpm&lt;br /&gt;rpm -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/python-elementtree-1.2.6-5.x86_64.rpm&lt;br /&gt;rpm -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/sqlite-3.3.6-5.x86_64.rpm&lt;br /&gt;rpm -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/python-sqlite-1.1.7-1.2.1.x86_64.rpm&lt;br /&gt;rpm -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/elfutils-libelf-0.137-3.el5.x86_64.rpm&lt;br /&gt;rpm --nodeps -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/elfutils-0.137-3.el5.x86_64.rpm&lt;br /&gt;rpm --nodeps -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/rpm-4.4.2.3-18.el5.x86_64.rpm&lt;br /&gt;rpm -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/rpm-python-4.4.2.3-18.el5.x86_64.rpm&lt;br /&gt;rpm -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/m2crypto-0.16-6.el5.6.x86_64.rpm&lt;br /&gt;rpm -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/python-urlgrabber-3.1.0-5.el5.noarch.rpm&lt;br /&gt;rpm -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/yum-metadata-parser-1.1.2-3.el5.centos.x86_64.rpm&lt;br /&gt;rpm -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/python-iniparse-0.2.3-4.el5.noarch.rpm&lt;br /&gt;rpm --nodeps -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/yum-fastestmirror-1.1.16-14.el5.centos.1.noarch.rpm&lt;br /&gt;rpm -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/yum-3.2.22-26.el5.centos.noarch.rpm&lt;br /&gt;yum -y update&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Please note that sometime you may get dependencies failed error that time just use rpm --nodeps.&lt;br /&gt;&lt;br /&gt;For exa :: rpm --nodeps -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/rpm-python-4.4.2.3-18.el5.x86_64.rpm&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-6991121681200818551?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/6991121681200818551/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=6991121681200818551' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/6991121681200818551'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/6991121681200818551'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2010/10/install-yum.html' title='Install yum'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-7409180713773514890</id><published>2010-10-04T11:09:00.000-07:00</published><updated>2010-10-04T11:11:00.158-07:00</updated><title type='text'>No space left on device: Couldn’t create accept lock – cPanel Apache server</title><content type='html'>On a cPanel dedicated server, apache server failed to start. So, while checking the apache logs found this:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;==&gt; /usr/local/apache/logs/error_log &lt;==&lt;br /&gt;&lt;br /&gt;[Sat Dec 20 01:12:27 2008]&lt;br /&gt;[notice] suEXEC mechanism enabled (wrapper: /usr/local/apache/bin/suexec)&lt;br /&gt;&lt;br /&gt;[Sat Dec 20 01:12:27 2008]&lt;br /&gt;[warn] pid file /usr/local/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;[Sat Dec 20 01:12:27 2008]&lt;br /&gt;[emerg] (28)No space left on device: Couldn't create accept lock&lt;br /&gt;&lt;br /&gt;Solution:&lt;br /&gt;&lt;br /&gt;First of all make sure your server is not out of space. This can be checked with the command:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;root# df –h&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Now, to check how many semaphores are currently in use the command is:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;root# ipcs -s&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;When the apache (httpd) is stopped, to kill the semaphores ID the command is:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;root# ipcrm –s &lt;sem-id&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To kill all the semaphores ID , you can achieve this by doing it in a for loop, the command is:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;root# for semid in `ipcs -s | grep nobody | cut -f2 -d" "`; do ipcrm -s $semid; done&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Note: “nobody” is apache user.&lt;br /&gt;&lt;br /&gt;Now start apache with the command:&lt;br /&gt;&lt;br /&gt;root# service httpd restart&lt;br /&gt;&lt;br /&gt;This has fixed the issue for us.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-7409180713773514890?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/7409180713773514890/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=7409180713773514890' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/7409180713773514890'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/7409180713773514890'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2010/10/no-space-left-on-device-couldnt-create.html' title='No space left on device: Couldn’t create accept lock – cPanel Apache server'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-6075559346825545111</id><published>2010-09-03T10:47:00.000-07:00</published><updated>2010-09-03T11:06:00.971-07:00</updated><title type='text'>Setting up a new web site on centOS 5 box</title><content type='html'>Hey Guys, I am specifying this post for everyone who is going to use it as I searched number of pages but could not find all these information at a single page.&lt;br /&gt;&lt;br /&gt;So basically there are three steps to get your website live on plain (No control panel) centos server.&lt;br /&gt;&lt;br /&gt;1. Register your nameservers and domain at your registrar end.&lt;br /&gt;&lt;br /&gt;2. Set up DNS including nameservers and DNS zones&lt;br /&gt;&lt;br /&gt;3. Set up web user and apache entries.&lt;br /&gt;&lt;br /&gt;I am considering that you already know about domain/nameservers registrationso I am moving ahead to 2nd step. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Nameservers setup&lt;/span&gt; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;CentOS 4 : chroot DNS with BIND&lt;br /&gt;February 4, 2007 - 23 comments&lt;br /&gt;&lt;br /&gt;I won’t go into the details of what is DNS, or the difference between an A record and a CNAME record.. just a quick howto to set up a chrooted DNS server using Bind under CentOS in a mere 5 minutes..&lt;br /&gt;&lt;br /&gt;Howto available for CentOS 5 : http://www.wains.be/index.php/2007/12/13/centos-5-chroot-dns-with-bind/&lt;br /&gt;&lt;br /&gt;1. Install packages :&lt;br /&gt;&lt;br /&gt;yum install bind bind-chroot bind-libs bind-utils&lt;br /&gt;&lt;br /&gt;2. Configure rndc :&lt;br /&gt;&lt;br /&gt;The rndc tool allow to get some useful info on your dns server (stats, status, etc.) so you better get it set up.&lt;br /&gt;&lt;br /&gt;rndc.conf is staying out of the chroot cage, for clarity we’ll move it into the chroot cage&lt;br /&gt;cp /etc/rndc.conf /var/named/chroot/etc&lt;br /&gt;&lt;br /&gt;Let’s make a symbolic link back in /etc, so we get 3 symlinks pointing to files in the cage (rndc.conf, rndc.key, named.conf) :&lt;br /&gt;cd /etc&lt;br /&gt;ln -s /var/named/chroot/etc/rndc.conf -f&lt;br /&gt;&lt;br /&gt;Create the rndc key, this command will create your key and store it under /etc/rndc.key :&lt;br /&gt;rndc-confgen -a&lt;br /&gt;&lt;br /&gt;/etc/rndc.key looks like this :&lt;br /&gt;key "rndc-key" {&lt;br /&gt;algorithm hmac-md5;&lt;br /&gt;secret "ZK4g84WrfdfsTIQLVs59Eg==";&lt;br /&gt;};&lt;br /&gt;&lt;br /&gt;Pay close attention to the key name, rndc-confgen makes a “rndc-key” while /etc/named.conf calls “rndckey”, you’ll have to carefully edit your named.conf&lt;br /&gt;&lt;br /&gt;Edit /etc/rndc.conf so it looks like this :&lt;br /&gt;&lt;br /&gt;include "/etc/rndc.key";&lt;br /&gt;options {&lt;br /&gt;default-server localhost;&lt;br /&gt;default-key "rndc-key";&lt;br /&gt;};&lt;br /&gt;server localhost {&lt;br /&gt;key "rndc-key";&lt;br /&gt;};&lt;br /&gt;&lt;br /&gt;3. Set up BIND&lt;br /&gt;&lt;br /&gt;Edit /etc/named.conf so it looks like this :&lt;br /&gt;&lt;br /&gt;include "/etc/rndc.key";&lt;br /&gt;&lt;br /&gt;// we assume our server has the IP 192.168.100.100 serving the 192.168.100.0/24 subnet&lt;br /&gt;controls {&lt;br /&gt;        inet 127.0.0.1 allow { 127.0.0.1; } keys { "rndc-key"; };&lt;br /&gt;        inet 192.168.100.100 allow { 192.168.100.0/24; } keys { "rndc-key"; };&lt;br /&gt;};&lt;br /&gt;&lt;br /&gt;options {&lt;br /&gt;        directory "/var/named";&lt;br /&gt;        pid-file "/var/run/named/named.pid";&lt;br /&gt;&lt;br /&gt;        recursion yes;&lt;br /&gt;&lt;br /&gt;        allow-recursion {&lt;br /&gt;                127.0.0.1;&lt;br /&gt;                192.168.100.0/24;&lt;br /&gt;                };&lt;br /&gt;&lt;br /&gt;        // these are the opendns servers (optional)&lt;br /&gt;        forwarders {&lt;br /&gt;                208.67.222.222;&lt;br /&gt;                208.67.220.220;&lt;br /&gt;        };&lt;br /&gt;&lt;br /&gt;        listen-on {&lt;br /&gt;                127.0.0.1;&lt;br /&gt;                192.168.100.100;&lt;br /&gt;                };&lt;br /&gt;&lt;br /&gt;        /*&lt;br /&gt;         * If there is a firewall between you and nameservers you want&lt;br /&gt;         * to talk to, you might need to uncomment the query-source&lt;br /&gt;         * directive below.  Previous versions of BIND always asked&lt;br /&gt;         * questions using port 53, but BIND 8.1 uses an unprivileged&lt;br /&gt;         * port by default.&lt;br /&gt;         */&lt;br /&gt;        query-source address * port 53;&lt;br /&gt;&lt;br /&gt;        // so people can't try to guess what version you're running&lt;br /&gt;        version "REFUSED";&lt;br /&gt;&lt;br /&gt;        allow-query {&lt;br /&gt;                127.0.0.1;&lt;br /&gt;                192.168.100.0/24;&lt;br /&gt;                };&lt;br /&gt;        };&lt;br /&gt;&lt;br /&gt;server 192.168.100.100 {&lt;br /&gt;        keys { rndc-key; };&lt;br /&gt;        };&lt;br /&gt;&lt;br /&gt;zone "." IN {&lt;br /&gt;        type hint;&lt;br /&gt;        file "named.root";&lt;br /&gt;        };&lt;br /&gt;&lt;br /&gt;// we assume we have a slave dns server with the IP 192.168.100.101&lt;br /&gt;zone "test.be" IN {&lt;br /&gt;        type master;&lt;br /&gt;        file "data/test.be.zone";&lt;br /&gt;        allow-update { none; };&lt;br /&gt;        allow-transfer { 192.168.100.101; };&lt;br /&gt;        };&lt;br /&gt;&lt;br /&gt;};&lt;br /&gt;&lt;br /&gt;4. Your zones&lt;br /&gt;&lt;br /&gt;Download named.root under /var/named/chroot/var/named :&lt;br /&gt;wget http://www.internic.net/zones/named.root&lt;br /&gt;&lt;br /&gt;Create your first zone under /var/named/chroot/var/named/data/test.be.zone (syntax may not be perfect but is working) :&lt;br /&gt;&lt;br /&gt;$ttl 38400&lt;br /&gt;test.be.       IN      SOA     ns.test.be. admin.test.be. (&lt;br /&gt;                       2007020400   ; Serial&lt;br /&gt;                       10800           ; Refresh after 3 hours&lt;br /&gt;                       3600            ; Retry after 1 hour&lt;br /&gt;                       604800          ; Expire after 1 week&lt;br /&gt;                       86400 )         ; Minimum TTL of 1 day&lt;br /&gt;test.be.       IN      NS      ns.test.be.&lt;br /&gt;&lt;br /&gt;test.be.               IN      MX      1       mx.test.be.&lt;br /&gt;test.be.               IN      MX      5       mx2.test.be.&lt;br /&gt;&lt;br /&gt;ns.test.be.           IN      A       192.168.100.10&lt;br /&gt;mx.test.be.          IN      A       192.168.100.20&lt;br /&gt;mx2.test.be.         IN      A       192.168.100.21&lt;br /&gt;mail.test.be.          IN      CNAME   mx.test.be.&lt;br /&gt;&lt;br /&gt;5. Set up your server to query its own dns server&lt;br /&gt;&lt;br /&gt;Edit /etc/resolv.conf and add this line at the top of the file :&lt;br /&gt;nameserver 127.0.0.1&lt;br /&gt;&lt;br /&gt;6. Start the service&lt;br /&gt;&lt;br /&gt;Start the DNS server :&lt;br /&gt;service named start&lt;br /&gt;&lt;br /&gt;Make sure the service will start at reboot :&lt;br /&gt;chkconfig named on&lt;br /&gt;&lt;br /&gt;Thats it, now move ahead to set 3.&lt;br /&gt;&lt;br /&gt;The first step, but not always a necessary step is setting up a new user. This is the preferred way to start as the /etc/skel has been preloaded with all the necessary directories and files to get new users started. If you are going to be a system administrator and you are not familiar with the /etc/skel/, please take some time learn more information about placing files in the /etc/skel/ directory to save time setting up new users. You can put default web directory such as www or public_html plus any other files and or directories you want to give to all new users.&lt;br /&gt;&lt;br /&gt;To setup a new user you can simply use the following command (replace username with the username you want to use)&lt;br /&gt;&lt;br /&gt;adduser -m username&lt;br /&gt;&lt;br /&gt;Now that you have created the account, it is best to setup a password for the account. You can assign a password to the account using the following command&lt;br /&gt;&lt;br /&gt;passwd username&lt;br /&gt;&lt;br /&gt;You should be prompted to enter in the new password and then confirm the password. Assume a new account needs to be setup with the username of ditto. When you run the passwd ditto command you should be prompted for the password as follows.&lt;br /&gt;&lt;br /&gt;Changing password for user ditto.&lt;br /&gt;New UNIX password:&lt;br /&gt;Retype new UNIX password:&lt;br /&gt;&lt;br /&gt;Your new account is almost ready to start putting files up for the web. One thing to pass along to new system administrators is that you have to make sure you setup the right permissions on this new account so it is strongly suggested that you do this now.&lt;br /&gt;&lt;br /&gt;Now the path to the new account may differ depending on your server. Assume for now that new users are setup in the /home/ directory. Assuming your new user “ditto” was created successfully, the new account for ditto should be /home/ditto/. Any files in your /etc/skel/ directory would be there as well. You can check this by using the following command to change directories and list the contents of the directory&lt;br /&gt;&lt;br /&gt;cd /home/ditto &amp;&amp; ls&lt;br /&gt;&lt;br /&gt;In this example we have two folders for our user ditto and they are the public_html and wwwconf directories.&lt;br /&gt;&lt;br /&gt;To change the permissions on the users ditto directory so it can be viewed by visitors, the permissions on the ditto directory must be changed to something like 755. This can be done to just ditto directory using following command:&lt;br /&gt;&lt;br /&gt;chmod 755 /home/ditto&lt;br /&gt;&lt;br /&gt;If you don’t know what 755 is as far as permissions, pause this tutorial and take the time to learn about chmod and what the different permissions will do for you.&lt;br /&gt;&lt;br /&gt;Now comes the part where many configurations likely differ depending on what you have installed to run on your server. This tutorial opts to save a core httpd related .conf file in one httpd directory (conf.d) and then from there look for more .conf files in the user directory called wwwconf/. This setup is not the only one possibility in the universe and if you have an older setup or wish to do it differently that is your choice.&lt;br /&gt;&lt;br /&gt;You can start your .conf file by copying a current one or creating a new one in your httpd/conf.d/ directory. This tutorial will assume that directory is located at /etc/httpd/conf.d/. Creat your new .conf file in vi or vim by using the following command.&lt;br /&gt;&lt;br /&gt;sudo vim web.ditto.com.conf&lt;br /&gt;&lt;br /&gt;This is going to be the core configuration file for your virtualhost. You will need to start the virtualhost using the tag:&lt;br /&gt;&lt;br /&gt;&lt;VirtualHost *:80&gt;&lt;br /&gt;&lt;br /&gt;The VirutalHost directive is used to enclose a group of directives which will apply only to a particular virtual host. Inside this directive you will put all the information pertaining to your site. You can put the email address to your ServerAdmin, the absolute path to the Document Root, the ServerName and any ServerAlias&lt;br /&gt;&lt;br /&gt;ServerAdmin webmaster@localhost&lt;br /&gt;Documentroot /home/ditto/public_html/&lt;br /&gt;ServerName www.ditto.com&lt;br /&gt;ServerAlias ditto.com&lt;br /&gt;&lt;br /&gt;Now it is necessary to give Apache some directives that will apply to our public_html directory. To do this you will create another node inside the VirtualHost node named Directory. The Directory node here is used to enclose a group of directives which will apply only to the named directory and sub-directories of that directory (in this case the public_html directory).&lt;br /&gt;&lt;br /&gt;&lt;Directory /home/ditto/public_html&gt;&lt;br /&gt;Options ExecCGI FollowSymLinks +Includes&lt;br /&gt;&lt;/Directory&gt;&lt;br /&gt;&lt;br /&gt;This tells Apache that the execution of CGI scripts is permitted, the server will follow symbolic links in this directory, and that server-side includes are permitted.&lt;br /&gt;&lt;br /&gt;You will also like to have some type of error log as is very useful when troubleshooting an issue on the box, so be sure to include the following code for error logging. You can access the logs in your httpd/logs directory&lt;br /&gt;&lt;br /&gt;ErrorLog logs/ditto.error&lt;br /&gt;CustomLog logs/ditto.log combined&lt;br /&gt;&lt;br /&gt;Now for the customized part. In order to let the user create their own Directory options another Directory directive is created that will point to a folder where other options/modifications can be made by the account user.&lt;br /&gt;&lt;br /&gt;&lt;Directory /home/ditto/wwwconf&gt;&lt;br /&gt;AllowOverride All&lt;br /&gt;&lt;/Directory&gt;&lt;br /&gt;&lt;br /&gt;What this does is allows ditto to ftp or ssh into the box and create a .conf file with their own directives and options in the wwwconf/ directory. The directive inside the above tag says any directive which has the .htaccess context is allowed in .htaccess files. After this tag is closed, it can be followed up with&lt;br /&gt;&lt;br /&gt;Include /home/ditto/wwwconf/*.conf&lt;br /&gt;&lt;br /&gt;which tells Apache to grab any file with .conf in the wwwconf/ directory of ditto (if you didn’t know it already, the “*” is a wildcard here).&lt;br /&gt;&lt;br /&gt;That should do it. You can now put an end to your VirtualHost node (if you have not already) and your end result should look something like&lt;br /&gt;&lt;br /&gt;&lt;VirtualHost *:80&gt;&lt;br /&gt;ServerAdmin webmaster@localhost&lt;br /&gt;Documentroot /home/ditto/public_html/&lt;br /&gt;ServerName www.ditto.com&lt;br /&gt;ServerAlias ditto.com&lt;br /&gt;&lt;Directory /home/ditto/public_html&gt;&lt;br /&gt;Options ExecCGI FollowSymLinks +Includes&lt;br /&gt;&lt;/Directory&gt;&lt;br /&gt;ErrorLog logs/ditto.error&lt;br /&gt;CustomLog logs/ditto.log combined&lt;br /&gt;&lt;Directory /home/ditto/wwwconf&gt;&lt;br /&gt;AllowOverride All&lt;br /&gt;&lt;/Directory&gt;&lt;br /&gt;Include /home/ditto/wwwconf/*.conf&lt;br /&gt;&lt;/VirtualHost&gt;&lt;br /&gt;&lt;br /&gt;You can now save this in the httpd/conf.d/ folder. Now if you want to add a mod re-wite or make a password protected directory in public_html, you can add a .conf file to the wwwconf directory and save my changes there. There is still one more command to use in order for all of this to work and that is the command to restart the httpd service. This can be done very easily using the following command.&lt;br /&gt;&lt;br /&gt;service httpd restart&lt;br /&gt;&lt;br /&gt;If you are running on an older system, this command may not be recognized. In those cases you should be able to use&lt;br /&gt;&lt;br /&gt;/etc/init.d/httpd restart&lt;br /&gt;&lt;br /&gt;Assuming you didn’t get any errors when you restarted the httpd service your web service should now be working. If you get an error, be sure to address it right away. Most common issues are invalid paths in the &lt;Directory&gt; tags or missing directories that the &lt;Directory&gt; tags are directed too.&lt;br /&gt;&lt;br /&gt;Hopefully this tutorial was helpful to at least one user out there. This tutorial will be followed up next by a tutorial that will help you setup subdomains, create password protected directories and create mod rewrites.&lt;br /&gt;&lt;br /&gt;Referred links ::&lt;br /&gt;http://www.wains.be/index.php/2007/02/04/centos-chroot-dns-with-bind/&lt;br /&gt;http://www.dingobytes.com/tutorial/web-site-on-centos-5-box&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-6075559346825545111?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/6075559346825545111/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=6075559346825545111' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/6075559346825545111'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/6075559346825545111'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2010/09/setting-up-new-web-site-on-centos-5-box.html' title='Setting up a new web site on centOS 5 box'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-7523883979291054178</id><published>2010-09-03T10:32:00.000-07:00</published><updated>2010-09-03T10:40:30.374-07:00</updated><title type='text'>Installing VNC-Server - CentOS</title><content type='html'>&lt;span style="font-weight:bold;"&gt;1. Installing the required packages&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The server package is called 'vnc-server'. Run the command &lt;span style="font-weight:bold;"&gt;rpm -q vnc-server&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;The result will be either package vnc-server is not installed or something like vnc-server-4.0-11.el4.&lt;br /&gt;&lt;br /&gt;If the server is not installed, install it with the command: &lt;span style="font-weight:bold;"&gt;yum install vnc-server&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;The client program is 'vnc'. You can use the command &lt;span style="font-weight:bold;"&gt;yum install vnc&lt;/span&gt; to install the client if &lt;span style="font-weight:bold;"&gt;rpm -q vnc&lt;/span&gt; shows that it is not already installed.&lt;br /&gt;&lt;br /&gt;Make sure to install a window manager in order to get a normal GUI desktop. You can use the command &lt;span style="font-weight:bold;"&gt;yum groupinstall "GNOME Desktop Environment"&lt;/span&gt; to install the Gnome Desktop and requirements, for example. Other popular desktop environments are &lt;span style="font-weight:bold;"&gt;"KDE"&lt;/span&gt; and "XFCE-4.4". XFCE is more light-weight than Gnome or KDE and available from the "extras" repository.&lt;br /&gt;&lt;br /&gt;&lt;!&gt; If you are running CentOS 5, &lt;span style="font-weight:bold;"&gt;yum groupinstall "GNOME Desktop Environment"&lt;/span&gt; may complain about a missing libgaim.so.0. This is a known bug. Please see CentOS-5 FAQ for details. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;2. Configuring un-encrypted VNC&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;We will be setting up VNC for 3 users. These will be 'larry', 'moe', and 'curly'.&lt;br /&gt;&lt;br /&gt;You will perform the following steps to configure your VNC server:&lt;br /&gt;&lt;br /&gt;   1. Create your VNC users.&lt;br /&gt;   2. Set your users' VNC passwords.&lt;br /&gt;   3. Edit the server configuration.&lt;br /&gt;   4. Create and customize xstartup scripts.&lt;br /&gt;   5. Start the VNC service.&lt;br /&gt;   6. Test each VNC user.&lt;br /&gt;   7. Setup the VNC service to start on reboot.&lt;br /&gt;   8. Additional optional enhancements &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;2.1. Create your VNC users&lt;/span&gt;&lt;br /&gt;As root: &lt;br /&gt;$ su -&lt;br /&gt;# useradd larry&lt;br /&gt;# useradd moe&lt;br /&gt;# useradd curly&lt;br /&gt;# passwd larry&lt;br /&gt;# passwd moe&lt;br /&gt;# passwd curly&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;2.2. Set your users' VNC passwords&lt;/span&gt;&lt;br /&gt;Login to each user, and run vncpasswd. This will create a .vnc directory. &lt;br /&gt;[~]$ cd .vnc&lt;br /&gt;[.vnc]$ ls&lt;br /&gt;passwd&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;2.3. Edit the server configuration&lt;/span&gt;&lt;br /&gt;Edit /etc/sysconfig/vncservers, and add the following to the end of the file.&lt;br /&gt;&lt;br /&gt;VNCSERVERS="1:larry 2:moe 3:curly"&lt;br /&gt;VNCSERVERARGS[1]="-geometry 640x480"&lt;br /&gt;VNCSERVERARGS[2]="-geometry 640x480"&lt;br /&gt;VNCSERVERARGS[3]="-geometry 800x600"&lt;br /&gt;&lt;br /&gt;Larry will have a 640 by 480 screen, as will Moe. Curly will have an 800 by 600 screen. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;2.4. Create xstartup scripts&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;We will create the xstartup scripts by starting and stopping the vncserver as root.&lt;br /&gt;&lt;br /&gt;# /sbin/service vncserver start&lt;br /&gt;# /sbin/service vncserver stop&lt;br /&gt;&lt;br /&gt;Login to each user and edit the xstartup script. To use Larry as an example, first login as larry&lt;br /&gt;&lt;br /&gt;[~]$ cd .vnc&lt;br /&gt;[.vnc] ls&lt;br /&gt;mymachine.localnet:1.log  passwd  xstartup&lt;br /&gt;&lt;br /&gt;Edit xstartup. The original should look like:&lt;br /&gt;&lt;br /&gt;#!/bin/sh&lt;br /&gt;# Uncomment the following two lines for normal desktop:&lt;br /&gt;# unset SESSION_MANAGER&lt;br /&gt;# exec /etc/X11/xinit/xinitrc&lt;br /&gt;[ -x /etc/vnc/xstartup ] &amp;&amp; exec /etc/vnc/xstartup&lt;br /&gt;[ -r $HOME/.Xresources ] &amp;&amp; xrdb $HOME/.Xresources&lt;br /&gt;xsetroot -solid grey&lt;br /&gt;vncconfig -iconic &amp;&lt;br /&gt;xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &amp;&lt;br /&gt;twm &amp;&lt;br /&gt;&lt;br /&gt;Add the line indicated below to assure that an xterm is always present, and uncomment the two lines as directed if you wish to run the user's normal desktop window manager in the VNC. Note that in the likely reduced resolution and color depth of a VNC window the full desktop will be rather cramped and a look bit odd. If you do not uncomment the two lines you will get a gray speckled background to the VNC window.&lt;br /&gt;&lt;br /&gt;#!/bin/sh&lt;br /&gt;# Add the following line to ensure you always have an xterm available.&lt;br /&gt;( while true ; do xterm ; done ) &amp;&lt;br /&gt;# Uncomment the following two lines for normal desktop:&lt;br /&gt;unset SESSION_MANAGER&lt;br /&gt;exec /etc/X11/xinit/xinitrc&lt;br /&gt;[ -x /etc/vnc/xstartup ] &amp;&amp; exec /etc/vnc/xstartup&lt;br /&gt;[ -r $HOME/.Xresources ] &amp;&amp; xrdb $HOME/.Xresources&lt;br /&gt;xsetroot -solid grey&lt;br /&gt;vncconfig -iconic &amp;&lt;br /&gt;xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &amp;&lt;br /&gt;twm &amp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;2.5. Start the VNC server&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Start the vncserver as root.&lt;br /&gt;&lt;br /&gt;# /sbin/service vncserver start&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;2.6. Test each VNC user&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;Let us assume that mymachine has an IP address of 192.168.0.10. The URL to connect to each of the users will be:&lt;br /&gt;&lt;br /&gt;Larry is http://192.168.0.10:5801&lt;br /&gt;Moe   is http://192.168.0.10:5802&lt;br /&gt;Curly is http://192.168.0.10:5803&lt;br /&gt;&lt;br /&gt;Connect to http://192.168.0.10:5801. A java applet window will pop-up showing a connection to your machine at port 1. Click the [ok] button. Enter larry's VNC password, and a 640x480 window should open using the default window manager selected for larry . The above ports  5801, 5802 and 5803  must be open in the firewall {iptables) for the source IP addresses or subnets of a given client. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;2.6.2. Testing with a vnc client&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;For Larry: vncviewer 192.168.0.10:1&lt;br /&gt;For   Moe: vncviewer 192.168.0.10:2&lt;br /&gt;For Curly: vncviewer 192.168.0.10:3&lt;br /&gt;&lt;br /&gt;To test larry using vncviewer, vncviewer 192.168.0.10:1. Enter Larry's VNC password, and a 640x480 window should open using Larry's default window manager. The vncviewer client will connect to port 590X where X is an offset of 1,2,3 for Larry, Moe, and Curly respectively, so these ports must be open in the firewall for the IP addresses or subnets of the clients.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;2.6.3. Starting vncserver at boot&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To start vncserver at boot, enter the command /sbin/chkconfig vncserver on.&lt;br /&gt;&lt;br /&gt;For basic VNC configuration the procedure is now complete. The following sections are optional refinements to enhance security and functionality.&lt;br /&gt;&lt;br /&gt;3. VNC encrypted through an ssh tunnel&lt;br /&gt;&lt;br /&gt;You will be connecting through an ssh tunnel. You will need to be able to ssh to a user on the machine. For this example, the user on the vncserver machine is Larry.&lt;br /&gt;&lt;br /&gt;   1. Edit /etc/sysconfig/vncservers, and add the option -localhost.&lt;br /&gt;&lt;br /&gt;      VNCSERVERS="1:larry 2:moe 3:curly"&lt;br /&gt;      VNCSERVERARGS[1]="-geometry 640x480 -localhost"&lt;br /&gt;      VNCSERVERARGS[2]="-geometry 640x480 -localhost"&lt;br /&gt;      VNCSERVERARGS[1]="-geometry 800x600 -localhost"&lt;br /&gt;&lt;br /&gt;   2.&lt;br /&gt;&lt;br /&gt;      /sbin/service vncserver restart&lt;br /&gt;   3. Go to another machine with vncserver and test the VNC.&lt;br /&gt;         1.&lt;br /&gt;&lt;br /&gt;            vncviewer -via larry@192.168.0.10 localhost:1&lt;br /&gt;         2.&lt;br /&gt;&lt;br /&gt;            vncviewer -via moe@192.168.0.10 localhost:2&lt;br /&gt;         3.&lt;br /&gt;&lt;br /&gt;            vncviewer -via curly@192.168.0.10 localhost:3 &lt;br /&gt;&lt;br /&gt;By default, many vncviewers will disable compression options for what it thinks is a "local" connection. Make sure to check with the vncviewer man page to enable/force compression. If not, performance may be very poor! &lt;br /&gt;&lt;br /&gt;Reffered URL :: http://wiki.centos.org/HowTos/VNC-Server&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-7523883979291054178?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/7523883979291054178/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=7523883979291054178' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/7523883979291054178'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/7523883979291054178'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2010/09/installing-vnc-server-centos.html' title='Installing VNC-Server - CentOS'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-4850477290893790168</id><published>2010-07-30T18:45:00.000-07:00</published><updated>2010-07-30T18:46:04.732-07:00</updated><title type='text'>Reinstalling the Boot Loader</title><content type='html'>In many cases, the GRUB boot loader can mistakenly be deleted, corrupted, or replaced by other operating systems.&lt;br /&gt;&lt;br /&gt;The following steps detail the process on how GRUB is reinstalled on the master boot record:&lt;br /&gt;&lt;br /&gt;    *&lt;br /&gt;&lt;br /&gt;      Boot the system from an installation boot medium.&lt;br /&gt;    *&lt;br /&gt;&lt;br /&gt;      Type linux rescue at the installation boot prompt to enter the rescue environment.&lt;br /&gt;    *&lt;br /&gt;&lt;br /&gt;      Type chroot /mnt/sysimage to mount the root partition.&lt;br /&gt;    *&lt;br /&gt;&lt;br /&gt;      Type /sbin/grub-install /dev/hda to reinstall the GRUB boot loader, where /dev/hda is the boot partition.&lt;br /&gt;    *&lt;br /&gt;&lt;br /&gt;      Review the /boot/grub/grub.conf file, as additional entries may be needed for GRUB to control additional operating systems.&lt;br /&gt;    *&lt;br /&gt;&lt;br /&gt;      Reboot the system.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-4850477290893790168?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/4850477290893790168/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=4850477290893790168' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/4850477290893790168'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/4850477290893790168'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2010/07/reinstalling-boot-loader.html' title='Reinstalling the Boot Loader'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-4703647312648553276</id><published>2010-07-27T13:53:00.000-07:00</published><updated>2010-07-27T13:55:16.310-07:00</updated><title type='text'>Setting up a new web site on centOS 5 box</title><content type='html'>There are so many great tutorials on the web about setting up a Linux box for web hosting, but why not add one more… right? Actually this tutorial is written specifically for a co worker that is not familiar with Linux, so this tutorial is being offered to “assist” him with the migration process. His old hosting company provided him with CPanel and he is reluctant to change, but who in their right mind would pass up hosting at the price of “free ninty-nine”.&lt;br /&gt;&lt;br /&gt;By no means is this a guide for all new linux user, but just a compilation of things learned while setting up web services on a Linux box in the past.&lt;br /&gt;&lt;br /&gt;The first step, but not always a necessary step is setting up a new user. This is the preferred way to start as the /etc/skel has been preloaded with all the necessary directories and files to get new users started. If you are going to be a system administrator and you are not familiar with the /etc/skel/, please take some time learn more information about placing files in the /etc/skel/ directory to save time setting up new users. You can put default web directory such as www or public_html plus any other files and or directories you want to give to all new users.&lt;br /&gt;&lt;br /&gt;To setup a new user you can simply use the following command (replace username with the username you want to use)&lt;br /&gt;&lt;br /&gt;adduser -m username&lt;br /&gt;&lt;br /&gt;Now that you have created the account, it is best to setup a password for the account. You can assign a password to the account using the following command&lt;br /&gt;&lt;br /&gt;passwd username&lt;br /&gt;&lt;br /&gt;You should be prompted to enter in the new password and then confirm the password. Assume a new account needs to be setup with the username of ditto. When you run the passwd ditto command you should be prompted for the password as follows.&lt;br /&gt;&lt;br /&gt;Changing password for user ditto.&lt;br /&gt;New UNIX password:&lt;br /&gt;Retype new UNIX password:&lt;br /&gt;&lt;br /&gt;Your new account is almost ready to start putting files up for the web. One thing to pass along to new system administrators is that you have to make sure you setup the right permissions on this new account so it is strongly suggested that you do this now.&lt;br /&gt;&lt;br /&gt;Now the path to the new account may differ depending on your server. Assume for now that new users are setup in the /home/ directory. Assuming your new user “ditto” was created successfully, the new account for ditto should be /home/ditto/. Any files in your /etc/skel/ directory would be there as well. You can check this by using the following command to change directories and list the contents of the directory&lt;br /&gt;&lt;br /&gt;cd /home/ditto &amp;&amp; ls&lt;br /&gt;&lt;br /&gt;In this example we have two folders for our user ditto and they are the public_html and wwwconf directories.&lt;br /&gt;&lt;br /&gt;To change the permissions on the users ditto directory so it can be viewed by visitors, the permissions on the ditto directory must be changed to something like 755. This can be done to just ditto directory using following command:&lt;br /&gt;&lt;br /&gt;chmod 755 /home/ditto&lt;br /&gt;&lt;br /&gt;If you don’t know what 755 is as far as permissions, pause this tutorial and take the time to learn about chmod and what the different permissions will do for you.&lt;br /&gt;&lt;br /&gt;Now comes the part where many configurations likely differ depending on what you have installed to run on your server. This tutorial opts to save a core httpd related .conf file in one httpd directory (conf.d) and then from there look for more .conf files in the user directory called wwwconf/. This setup is not the only one possibility in the universe and if you have an older setup or wish to do it differently that is your choice.&lt;br /&gt;&lt;br /&gt;You can start your .conf file by copying a current one or creating a new one in your httpd/conf.d/ directory. This tutorial will assume that directory is located at /etc/httpd/conf.d/. Creat your new .conf file in vi or vim by using the following command.&lt;br /&gt;&lt;br /&gt;sudo vim web.ditto.com.conf&lt;br /&gt;&lt;br /&gt;This is going to be the core configuration file for your virtualhost. You will need to start the virtualhost using the tag:&lt;br /&gt;&lt;br /&gt;&lt;VirtualHost *:80&gt;&lt;br /&gt;&lt;br /&gt;The VirutalHost directive is used to enclose a group of directives which will apply only to a particular virtual host. Inside this directive you will put all the information pertaining to your site. You can put the email address to your ServerAdmin, the absolute path to the Document Root, the ServerName and any ServerAlias&lt;br /&gt;&lt;br /&gt;ServerAdmin webmaster@localhost&lt;br /&gt;Documentroot /home/ditto/public_html/&lt;br /&gt;ServerName www.ditto.com&lt;br /&gt;ServerAlias ditto.com&lt;br /&gt;&lt;br /&gt;Now it is necessary to give Apache some directives that will apply to our public_html directory. To do this you will create another node inside the VirtualHost node named Directory. The Directory node here is used to enclose a group of directives which will apply only to the named directory and sub-directories of that directory (in this case the public_html directory).&lt;br /&gt;&lt;br /&gt;&lt;Directory /home/ditto/public_html&gt;&lt;br /&gt;Options ExecCGI FollowSymLinks +Includes&lt;br /&gt;&lt;/Directory&gt;&lt;br /&gt;&lt;br /&gt;This tells Apache that the execution of CGI scripts is permitted, the server will follow symbolic links in this directory, and that server-side includes are permitted.&lt;br /&gt;&lt;br /&gt;You will also like to have some type of error log as is very useful when troubleshooting an issue on the box, so be sure to include the following code for error logging. You can access the logs in your httpd/logs directory&lt;br /&gt;&lt;br /&gt;ErrorLog logs/ditto.error&lt;br /&gt;CustomLog logs/ditto.log combined&lt;br /&gt;&lt;br /&gt;Now for the customized part. In order to let the user create their own Directory options another Directory directive is created that will point to a folder where other options/modifications can be made by the account user.&lt;br /&gt;&lt;br /&gt;&lt;Directory /home/ditto/wwwconf&gt;&lt;br /&gt;AllowOverride All&lt;br /&gt;&lt;/Directory&gt;&lt;br /&gt;&lt;br /&gt;What this does is allows ditto to ftp or ssh into the box and create a .conf file with their own directives and options in the wwwconf/ directory. The directive inside the above tag says any directive which has the .htaccess context is allowed in .htaccess files. After this tag is closed, it can be followed up with&lt;br /&gt;&lt;br /&gt;Include /home/ditto/wwwconf/*.conf&lt;br /&gt;&lt;br /&gt;which tells Apache to grab any file with .conf in the wwwconf/ directory of ditto (if you didn’t know it already, the “*” is a wildcard here).&lt;br /&gt;&lt;br /&gt;That should do it. You can now put an end to your VirtualHost node (if you have not already) and your end result should look something like&lt;br /&gt;&lt;br /&gt;&lt;VirtualHost *:80&gt;&lt;br /&gt;ServerAdmin webmaster@localhost&lt;br /&gt;Documentroot /home/ditto/public_html/&lt;br /&gt;ServerName www.ditto.com&lt;br /&gt;ServerAlias ditto.com&lt;br /&gt;&lt;Directory /home/ditto/public_html&gt;&lt;br /&gt;Options ExecCGI FollowSymLinks +Includes&lt;br /&gt;&lt;/Directory&gt;&lt;br /&gt;ErrorLog logs/ditto.error&lt;br /&gt;CustomLog logs/ditto.log combined&lt;br /&gt;&lt;Directory /home/ditto/wwwconf&gt;&lt;br /&gt;AllowOverride All&lt;br /&gt;&lt;/Directory&gt;&lt;br /&gt;Include /home/ditto/wwwconf/*.conf&lt;br /&gt;&lt;/VirtualHost&gt;&lt;br /&gt;&lt;br /&gt;You can now save this in the httpd/conf.d/ folder. Now if you want to add a mod re-wite or make a password protected directory in public_html, you can add a .conf file to the wwwconf directory and save my changes there. There is still one more command to use in order for all of this to work and that is the command to restart the httpd service. This can be done very easily using the following command.&lt;br /&gt;&lt;br /&gt;service httpd restart&lt;br /&gt;&lt;br /&gt;If you are running on an older system, this command may not be recognized. In those cases you should be able to use&lt;br /&gt;&lt;br /&gt;/etc/init.d/httpd restart&lt;br /&gt;&lt;br /&gt;Assuming you didn’t get any errors when you restarted the httpd service your web service should now be working. If you get an error, be sure to address it right away. Most common issues are invalid paths in the &lt;Directory&gt; tags or missing directories that the &lt;Directory&gt; tags are directed too.&lt;br /&gt;&lt;br /&gt;Hopefully this tutorial was helpful to at least one user out there. This tutorial will be followed up next by a tutorial that will help you setup subdomains, create password protected directories and create mod rewrites.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-4703647312648553276?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/4703647312648553276/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=4703647312648553276' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/4703647312648553276'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/4703647312648553276'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2010/07/setting-up-new-web-site-on-centos-5-box.html' title='Setting up a new web site on centOS 5 box'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-1088642905499761996</id><published>2010-04-24T09:14:00.000-07:00</published><updated>2010-04-24T09:19:04.810-07:00</updated><title type='text'>Changing "A" record for all domains on cpanel server</title><content type='html'>If you have the scenario to point all your domains to another server then obviously you have to change the "A" record to the new server. Cpanel does not have such feature to do this in one command. But I found a way to do this and you will have to fire just following commands. You will need to login by root in order to execute them.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#cd /var/named/&lt;br /&gt;#replace 1.1.1.1 2.2.2.2 -- *&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Replace 1.1.1.1 with old ip&lt;br /&gt;and 2.2.2.2 with new ip &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This worked for me and hope this will work for you too :o)&lt;br /&gt;&lt;br /&gt;Any suggestions or questions are welcome.&lt;br /&gt;mayur.c24@gmail.com&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-1088642905499761996?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/1088642905499761996/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=1088642905499761996' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/1088642905499761996'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/1088642905499761996'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2010/04/changing-record-for-all-domains-on.html' title='Changing &quot;A&quot; record for all domains on cpanel server'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-6744310274247728810</id><published>2010-04-06T13:52:00.000-07:00</published><updated>2010-04-06T14:02:08.536-07:00</updated><title type='text'>Installing VNC Server on Centos</title><content type='html'>VNC ( Virtual Network Computing ) is used to display an X windows session running on another computer. Unlike a remote X connection, the xserver is running on the remote computer, not on your local workstation. Your workstation ( Linux or Windows ) is only displaying a copy of the display ( real or virtual ) that is running on the remote machine.&lt;br /&gt;&lt;br /&gt;There are several ways to configure the vnc server. This HOWTO shows you how to configure VNC using the 'vncserver' service as supplied by CentOS. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;1. Installing the required packages&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The server package is called 'vnc-server'. Run the command &lt;span style="font-weight:bold;"&gt;rpm -q vnc-server&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;The result will be either package vnc-server is not installed or something like vnc-server-4.0-11.el4.&lt;br /&gt;&lt;br /&gt;If the server is not installed, install it with the command: &lt;span style="font-weight:bold;"&gt;yum install vnc-server&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;The client program is 'vnc'. You can use the command yum install vnc to install the client if rpm -q vnc shows that it is not already installed.&lt;br /&gt;&lt;br /&gt;Make sure to install a window manager in order to get a normal GUI desktop. You can use the command &lt;span style="font-weight:bold;"&gt;yum groupinstall "GNOME Desktop Environment"&lt;/span&gt; to install the Gnome Desktop and requirements, for example. Other popular desktop environments are "KDE" and "XFCE-4.4". XFCE is more light-weight than Gnome or KDE and available from the "extras" repository. &lt;br /&gt;&lt;br /&gt;For my installation I used XFCE :: yum install XFCE&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;2. Configuring un-encrypted VNC&lt;/span&gt;&lt;br /&gt;We will be setting up VNC for 3 users. These will be 'larry', 'moe', and 'curly'.&lt;br /&gt;&lt;br /&gt;You will perform the following steps to configure your VNC server:&lt;br /&gt;&lt;br /&gt;   1. Create your VNC users.&lt;br /&gt;   2. Set your users' VNC passwords.&lt;br /&gt;   3. Edit the server configuration.&lt;br /&gt;   4. Create and customize xstartup scripts.&lt;br /&gt;   5. Start the VNC service.&lt;br /&gt;   6. Test each VNC user.&lt;br /&gt;   7. Setup the VNC service to start on reboot.&lt;br /&gt;   8. Additional optional enhancements &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;2.1. Create your VNC users&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;As root: &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;$ su -&lt;br /&gt;# useradd larry&lt;br /&gt;# useradd moe&lt;br /&gt;# useradd curly&lt;br /&gt;# passwd larry&lt;br /&gt;# passwd moe&lt;br /&gt;# passwd curly&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;2.2. Set your users' VNC passwords&lt;/span&gt;&lt;br /&gt;Login to each user, and run vncpasswd. This will create a .vnc directory. &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;[~]$ cd .vnc&lt;br /&gt;[.vnc]$ ls&lt;br /&gt;passwd&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;2.3. Edit the server configuration&lt;/span&gt;&lt;br /&gt;Edit /etc/sysconfig/vncservers, and add the following to the end of the file. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;VNCSERVERS="1:larry 2:moe 3:curly"&lt;br /&gt;VNCSERVERARGS[1]="-geometry 640x480"&lt;br /&gt;VNCSERVERARGS[2]="-geometry 640x480"&lt;br /&gt;VNCSERVERARGS[3]="-geometry 800x600"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Larry will have a 640 by 480 screen, as will Moe. Curly will have an 800 by 600 screen. &lt;br /&gt;&lt;br /&gt;2.4. Create xstartup scripts&lt;br /&gt;&lt;br /&gt;We will create the xstartup scripts by starting and stopping the vncserver as root. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;# /sbin/service vncserver start&lt;br /&gt;# /sbin/service vncserver stop&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Login to each user and edit the xstartup script. To use Larry as an example, first login as larry&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;[~]$ cd .vnc&lt;br /&gt;[.vnc] ls&lt;br /&gt;mymachine.localnet:1.log  passwd  xstartup&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Edit xstartup. The original should look like: &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#!/bin/sh&lt;br /&gt;# Uncomment the following two lines for normal desktop:&lt;br /&gt;# unset SESSION_MANAGER&lt;br /&gt;# exec /etc/X11/xinit/xinitrc&lt;br /&gt;[ -x /etc/vnc/xstartup ] &amp;&amp; exec /etc/vnc/xstartup&lt;br /&gt;[ -r $HOME/.Xresources ] &amp;&amp; xrdb $HOME/.Xresources&lt;br /&gt;xsetroot -solid grey&lt;br /&gt;vncconfig -iconic &amp;&lt;br /&gt;xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &amp;&lt;br /&gt;twm &amp;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Add the line indicated below to assure that an xterm is always present, and uncomment the two lines as directed if you wish to run the user's normal desktop window manager in the VNC. Note that in the likely reduced resolution and color depth of a VNC window the full desktop will be rather cramped and a look bit odd. If you do not uncomment the two lines you will get a gray speckled background to the VNC window.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;#!/bin/sh&lt;br /&gt;# Add the following line to ensure you always have an xterm available.&lt;br /&gt;( while true ; do xterm ; done ) &amp;&lt;br /&gt;# Uncomment the following two lines for normal desktop:&lt;br /&gt;unset SESSION_MANAGER&lt;br /&gt;exec /etc/X11/xinit/xinitrc&lt;br /&gt;[ -x /etc/vnc/xstartup ] &amp;&amp; exec /etc/vnc/xstartup&lt;br /&gt;[ -r $HOME/.Xresources ] &amp;&amp; xrdb $HOME/.Xresources&lt;br /&gt;xsetroot -solid grey&lt;br /&gt;vncconfig -iconic &amp;&lt;br /&gt;xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &amp;&lt;br /&gt;twm &amp;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;2.5. Start the VNC server&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Start the vncserver as root&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;# /sbin/service vncserver start&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;2.6. Test each VNC user&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Let us assume that mymachine has an IP address of 192.168.0.10. The URL to connect to each of the users will be:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Larry is http://192.168.0.10:5801&lt;br /&gt;Moe   is http://192.168.0.10:5802&lt;br /&gt;Curly is http://192.168.0.10:5803&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Connect to http://192.168.0.10:5801. A java applet window will pop-up showing a connection to your machine at port 1. Click the [ok] button. Enter larry's VNC password, and a 640x480 window should open using the default window manager selected for larry . The above ports  5801, 5802 and 5803  must be open in the firewall {iptables) for the source IP addresses or subnets of a given client.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;2.6.2. Testing with a vnc client&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;For Larry: vncviewer 192.168.0.10:1&lt;br /&gt;For   Moe: vncviewer 192.168.0.10:2&lt;br /&gt;For Curly: vncviewer 192.168.0.10:3&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To test larry using vncviewer, vncviewer 192.168.0.10:1. Enter Larry's VNC password, and a 640x480 window should open using Larry's default window manager. The vncviewer client will connect to port 590X where X is an offset of 1,2,3 for Larry, Moe, and Curly respectively, so these ports must be open in the firewall for the IP addresses or subnets of the clients. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;2.6.3. Starting vncserver at boot&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To start vncserver at boot, enter the command &lt;span style="font-weight:bold;"&gt;/sbin/chkconfig vncserver on&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;That's it.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Mayur C.&lt;br /&gt;mayur.c24@gmail.com&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-6744310274247728810?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/6744310274247728810/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=6744310274247728810' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/6744310274247728810'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/6744310274247728810'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2010/04/installing-vnc-server-on-centos.html' title='Installing VNC Server on Centos'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-4533434626917279522</id><published>2010-04-01T15:21:00.000-07:00</published><updated>2010-04-01T15:25:10.128-07:00</updated><title type='text'>Roundcube + Directadmin - DATABASE ERROR: CONNECTION FAILED!</title><content type='html'>The following is if you're using customapache. If you're using custombuild, see below.&lt;br /&gt;&lt;br /&gt;If you cannot login to roundcube because you get this error:&lt;br /&gt;&lt;br /&gt;DATABASE ERROR: CONNECTION FAILED!&lt;br /&gt;&lt;br /&gt;Then do the following:&lt;br /&gt;&lt;br /&gt;Type:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;cat /usr/local/directamin/conf/mysql.conf&lt;/span&gt;&lt;br /&gt;to get the login/password for mysql.&lt;br /&gt;&lt;br /&gt;Type:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;mysql -uda_admin -ppassword&lt;/span&gt;&lt;br /&gt;where da_admin/password are the login/pass output from the mysql.conf.&lt;br /&gt;&lt;br /&gt;Once in mysql, type:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;DROP DATABASE da_roundcube;&lt;br /&gt;quit&lt;/span&gt;&lt;br /&gt;once the db is dropped and you're out of mysql, type:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;cd /usr/local/directadmin/scripts&lt;br /&gt;./roundcube.sh&lt;/span&gt;&lt;br /&gt;to recreate the database and user/pass for roundcube.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The following is the fix if you're using custombuild:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;cd /usr/local/directadmin/custombuild&lt;br /&gt;./build roundcube&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;That's it. Any suggestion or questions are welcome.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-4533434626917279522?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/4533434626917279522/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=4533434626917279522' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/4533434626917279522'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/4533434626917279522'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2010/04/roundcube-directadmin-database-error.html' title='Roundcube + Directadmin - DATABASE ERROR: CONNECTION FAILED!'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-821092631325400821</id><published>2010-03-26T15:27:00.000-07:00</published><updated>2010-03-26T15:29:46.610-07:00</updated><title type='text'>Steps to Install Mod_Security on Direct Admin</title><content type='html'>What is mod_security or modsecurity?&lt;br /&gt;&lt;br /&gt;ModSecurity is an open source intrusion detection and prevention engine for web applications. It operates embedded into the web server, acting as a powerful umbrella - shielding applications from attacks. ModSecurity supports both branches of the Apache web server.&lt;br /&gt;This HOW-TO is for Apache 2.X only.&lt;br /&gt;&lt;br /&gt;  &lt;span style="font-weight:bold;"&gt; 1.&lt;br /&gt;      cd /usr/local/src&lt;br /&gt;   2.&lt;br /&gt;      mkdir modsecurity2&lt;br /&gt;   3.&lt;br /&gt;      cd modsecurity2&lt;br /&gt;   4.&lt;br /&gt;      wget http://www.serverbuddies.com/files/modsecurity-apache_2.5.9.tar.gz&lt;br /&gt;   5.&lt;br /&gt;      perl -pi -e ’s/ServerTokens Major/ServerTokens Full/’ /etc/httpd/conf/extra/httpd-default.conf&lt;br /&gt;   6.&lt;br /&gt;      perl -pi -e ’s/ServerSignature Off/ServerSignature On/’ /etc/httpd/conf/extra/httpd-default.conf&lt;br /&gt;   7.&lt;br /&gt;      perl -pi -e ’s/ServerSignature EMail/ServerSignature On/’ /etc/httpd/conf/extra/httpd-default.conf&lt;br /&gt;   8.&lt;br /&gt;      tar xzf modsecurity-apache_2.5.9.tar.gz&lt;br /&gt;   9.&lt;br /&gt;      cd modsecurity-apache_2.5.9&lt;br /&gt;  10.&lt;br /&gt;      cd apache2&lt;br /&gt;  11.&lt;br /&gt;      ./configure&lt;br /&gt;  12.&lt;br /&gt;      make&lt;br /&gt;  13.&lt;br /&gt;      make test&lt;br /&gt;  14.&lt;br /&gt;      make install&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;Now we download a pre-defined mod_sec ruleset,&lt;br /&gt;&lt;br /&gt;   &lt;span style="font-weight:bold;"&gt;1.&lt;br /&gt;      cd /etc/modsecurity2/&lt;br /&gt;   2.&lt;br /&gt;      wget http://www.serverbuddies.com/files/modsec.v2.rules.conf&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Add the new compiled mod_security module into the apache configuration,&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;vi /etc/httpd/conf/httpd.conf&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;After:&lt;br /&gt;&lt;br /&gt;    LoadModule php5_module /usr/lib/apache/libphp5.so&lt;br /&gt;&lt;br /&gt;Add:&lt;br /&gt;&lt;br /&gt;For 32bit -&lt;br /&gt;&lt;br /&gt;  &lt;span style="font-weight:bold;"&gt; 1.&lt;br /&gt;      LoadFile /usr/lib/libxml2.so&lt;br /&gt;   2.&lt;br /&gt;      LoadModule security2_module     /usr/lib/apache/mod_security2.so&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;For 64bit -&lt;br /&gt;&lt;br /&gt;  &lt;span style="font-weight:bold;"&gt; 1.&lt;br /&gt;      LoadFile /usr/lib64/libxml2.so&lt;br /&gt;   2.&lt;br /&gt;      LoadModule security2_module     /usr/lib/apache/mod_security2.so&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;At the botton of the httpd.conf config file we add the following,&lt;br /&gt;&lt;br /&gt;  &lt;span style="font-weight:bold;"&gt; 1.&lt;br /&gt;      &lt;IfModule mod_security2.c&gt;&lt;br /&gt;   2.&lt;br /&gt;      # ModSecurity2 config file.&lt;br /&gt;   3.&lt;br /&gt;      #&lt;br /&gt;   4.&lt;br /&gt;      Include /etc/modsecurity2/modsec.v2.rules.conf&lt;br /&gt;   5.&lt;br /&gt;      &lt;/IfModule&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;Restart the webserver.&lt;br /&gt;&lt;br /&gt; &lt;span style="font-weight:bold;"&gt;  1.&lt;br /&gt;      service httpd restart&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Installation should be completed and mod_sec should be now loaded on your Apache webserver.&lt;br /&gt;&lt;br /&gt;Any suggestion or questions are welcome.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-821092631325400821?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/821092631325400821/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=821092631325400821' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/821092631325400821'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/821092631325400821'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2010/03/steps-to-install-modsecurity-on-direct.html' title='Steps to Install Mod_Security on Direct Admin'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-121256776894032207</id><published>2010-03-24T16:21:00.000-07:00</published><updated>2010-03-24T16:25:20.589-07:00</updated><title type='text'>How to set default crontab editor ?</title><content type='html'>The default crontab editor is nano on some systems. This is a pain. You can change this by setting the EDITOR environment variable. In BASH: &lt;br /&gt;&lt;br /&gt;srv-4 / # &lt;span style="font-weight:bold;"&gt;set | grep EDITOR&lt;/span&gt;&lt;br /&gt;EDITOR=/bin/nano&lt;br /&gt;srv-4 / # &lt;span style="font-weight:bold;"&gt;which vi&lt;/span&gt;&lt;br /&gt;/usr/bin/vi&lt;br /&gt;srv-4 / # &lt;span style="font-weight:bold;"&gt;export EDITOR=/usr/bin/vi&lt;/span&gt;&lt;br /&gt;srv-4 / # &lt;span style="font-weight:bold;"&gt;set | grep EDITOR&lt;/span&gt;&lt;br /&gt;EDITOR=/usr/bin/vi&lt;br /&gt;_=EDITOR&lt;br /&gt;srv-4 / # &lt;br /&gt;&lt;br /&gt;To make the change stick, you can add it to the profile script appropriate for your shell. We put it in /etc/profile. &lt;br /&gt;&lt;br /&gt;Any suggestions or questions are welcome.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-121256776894032207?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/121256776894032207/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=121256776894032207' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/121256776894032207'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/121256776894032207'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2010/03/how-to-set-default-crontab-editor.html' title='How to set default crontab editor ?'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-2679641883875177823</id><published>2010-03-20T06:00:00.000-07:00</published><updated>2010-03-20T06:02:39.357-07:00</updated><title type='text'>How to Install FFmpeg though YUM</title><content type='html'>Installing FFMpeg&lt;br /&gt;&lt;br /&gt;yum install ffmpeg ffmpeg-devel&lt;br /&gt;&lt;br /&gt;If you get package not found, then you will need to add few lines in the yum repository for dag packages installation. Create a file named dag.repo in /etc/yum.repos.d with the following contents on it&lt;br /&gt;&lt;br /&gt;[dag]&lt;br /&gt;name=Dag RPM Repository for Red Hat Enterprise Linux&lt;br /&gt;&lt;br /&gt;baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag&lt;br /&gt;gpgcheck=1&lt;br /&gt;enabled=1&lt;br /&gt;&lt;br /&gt;then&lt;br /&gt;&lt;br /&gt;yum install ffmpeg ffmpeg-devel&lt;br /&gt;&lt;br /&gt;If everything is fine, then the installation should proceed smoothly. If not you will get something like warning GPG public key missing .&lt;br /&gt;Common Errors&lt;br /&gt;&lt;br /&gt;To fix rpmforge GPG key warning:&lt;br /&gt;&lt;br /&gt;rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm&lt;br /&gt;&lt;br /&gt;For more information refer to this faq depending on Centos version&lt;br /&gt;&lt;br /&gt;Missing Dependency Error:&lt;br /&gt;&lt;br /&gt;If you get missing dependency error like shown below, in the middle of ffmpeg installation&lt;br /&gt;&lt;br /&gt;Error: Missing Dependency: libc.so.6(GLIBC_2.4) is needed by package ffmpeg&lt;br /&gt;Error: Missing Dependency: libtheora.so.0(libtheora.so.1.0) is needed by package ffmpeg&lt;br /&gt;Error: Missing Dependency: rtld(GNU_HASH) is needed by package ffmpeg&lt;br /&gt;Error: Missing Dependency: libc.so.6(GLIBC_2.4) is needed by package imlib2&lt;br /&gt;Error: Missing Dependency: rtld(GNU_HASH) is needed by package a52dec&lt;br /&gt;Error: Missing Dependency: rtld(GNU_HASH) is needed by package imlib2&lt;br /&gt;Error: Missing Dependency: rtld(GNU_HASH) is needed by package gsm&lt;br /&gt;Error: Missing Dependency: libc.so.6(GLIBC_2.4) is needed by package x264&lt;br /&gt;Error: Missing Dependency: rtld(GNU_HASH) is needed by package xvidcore&lt;br /&gt;Error: Missing Dependency: libc.so.6(GLIBC_2.4) is needed by package lame&lt;br /&gt;Error: Missing Dependency: libc.so.6(GLIBC_2.4) is needed by package a52dec&lt;br /&gt;Error: Missing Dependency: rtld(GNU_HASH) is needed by package faad2&lt;br /&gt;Error: Missing Dependency: rtld(GNU_HASH) is needed by package x264&lt;br /&gt;Error: Missing Dependency: rtld(GNU_HASH) is needed by package lame&lt;br /&gt;Error: Missing Dependency: libc.so.6(GLIBC_2.4) is needed by package xvidcore&lt;br /&gt;Error: Missing Dependency: libc.so.6(GLIBC_2.4) is needed by package faac&lt;br /&gt;Error: Missing Dependency: libc.so.6(GLIBC_2.4) is needed by package faad2&lt;br /&gt;Error: Missing Dependency: libgif.so.4 is needed by package imlib2&lt;br /&gt;Error: Missing Dependency: rtld(GNU_HASH) is needed by package faac&lt;br /&gt;Error: Missing Dependency: libc.so.6(GLIBC_2.4) is needed by package gsm&lt;br /&gt;Error: Missing Dependency: libpng12.so.0(PNG12_0) is needed by package imlib2&lt;br /&gt;Error: Missing Dependency: rtld(GNU_HASH) is needed by package libmp4v2&lt;br /&gt;Error: Missing Dependency: libc.so.6(GLIBC_2.4) is needed by package libmp4v2&lt;br /&gt;&lt;br /&gt;then most commonly you have GLIB 2.3 installed instead of GLIB 2.4 version. To check the current GLIB version installed on your server. just use&lt;br /&gt;&lt;br /&gt;yum list glib*&lt;br /&gt;&lt;br /&gt;and it should list the latest GLIB package version.&lt;br /&gt;&lt;br /&gt;The reason i was getting this error was my rpmforge packages was pointed to centos 5 versions instead of centos 4.6.&lt;br /&gt;&lt;br /&gt;To fix dependency error:&lt;br /&gt;&lt;br /&gt;To fix this error, you might need to check your rpmforge packages compatible to the release of your existing CentOS version.&lt;br /&gt;Check the file /etc/yum.repos.d/rpmforge.repo and it should look like for Centos 4.6(Final). If you have lines like http://apt.sw.be/redhat/el5/en/mirrors-rpmforge you might need to make changes to the rpmforge.repos like shown below&lt;br /&gt;&lt;br /&gt;Note: Backup the original rpmforge.repo file before you edit its content.&lt;br /&gt;&lt;br /&gt;[rpmforge]&lt;br /&gt;name = Red Hat Enterprise $releasever - RPMforge.net - dag&lt;br /&gt;#baseurl = http://apt.sw.be/redhat/el4/en/$basearch/dag&lt;br /&gt;mirrorlist = http://apt.sw.be/redhat/el4/en/mirrors-rpmforge&lt;br /&gt;#mirrorlist = file:///etc/yum.repos.d/mirrors-rpmforge&lt;br /&gt;enabled = 1&lt;br /&gt;protect = 0&lt;br /&gt;gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-dag&lt;br /&gt;gpgcheck = 1&lt;br /&gt;&lt;br /&gt;To know what linux type and version you are running&lt;br /&gt;&lt;br /&gt;cat /etc/redhat-release&lt;br /&gt;&lt;br /&gt;Once this is done, do again yum install ffmpeg.&lt;br /&gt;&lt;br /&gt;This trick resolved the problem in my linux box running Centos 4.6 and this is the only way i found to install ffmpeg using yum.&lt;br /&gt;To check the FFmpeg working:&lt;br /&gt;&lt;br /&gt;Finally, check the ffmpeg whether it is working or not.&lt;br /&gt;&lt;br /&gt;&gt; ffmpeg&lt;br /&gt;&gt; ffmpeg -formats&lt;br /&gt;&gt; ffmpeg --help&lt;br /&gt;// This lists path of mpeg, its modules and other path information&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;ffmpeg -i Input.file Output.file&lt;br /&gt;To check what audi/video formats are supported&lt;br /&gt;&lt;br /&gt;ffmpeg -formats &gt; ffmpeg-format.txt&lt;br /&gt;&lt;br /&gt;Open the ffmpeg-formats.txt to see the ooutput&lt;br /&gt;&lt;br /&gt;D means decode&lt;br /&gt;E means encode&lt;br /&gt;V means video&lt;br /&gt;A means audio&lt;br /&gt;T = Truncated&lt;br /&gt;Install FFMPEG-PHP Extension&lt;br /&gt;&lt;br /&gt;FFmpeg-php is a very good extension and wrapper for PHP which can pull useful information about video through API interface. Inorder to install it you will need to download the source file and then compile and install extension in your server. You can download the source tarball : http://ffmpeg-php.sourceforge.net/&lt;br /&gt;&lt;br /&gt;wget /path/to/this/file/ffmpeg-php-0.5.2.1.tbz2&lt;br /&gt;&lt;br /&gt;tar -xjf ffmpeg-0.5.2.1.tbz2&lt;br /&gt;&lt;br /&gt;phpize&lt;br /&gt;&lt;br /&gt;./configure&lt;br /&gt;make&lt;br /&gt;make install&lt;br /&gt;Common Errors&lt;br /&gt;&lt;br /&gt;1. If you get command not found error for phpize, then you will need to do yum install php-devel&lt;br /&gt;&lt;br /&gt;2. If you get error like "ffmpeg headers not found" while configuring the source.&lt;br /&gt;&lt;br /&gt;configure: error: ffmpeg headers not found. Make sure ffmpeg is compiled as shared libraries using the --enable-shared option&lt;br /&gt;&lt;br /&gt;then it means you have not installed ffmpeg-devel packages.&lt;br /&gt;&lt;br /&gt;To Fix: Just install ffmpeg-devel using&lt;br /&gt;&lt;br /&gt;yum install ffmpeg-devel&lt;br /&gt;&lt;br /&gt;3. If you get an error like shared libraries not found problem and the program halts in the middle, then you must specify the ffmpeg installed path explicitly to the ./configure.&lt;br /&gt;&lt;br /&gt;configure: error: ffmpeg shared libraries not found. Make sure ffmpeg is compiled as shared libraries using the --enable-shared option&lt;br /&gt;&lt;br /&gt;To Fix:&lt;br /&gt;&lt;br /&gt;1. First find out the ffmpeg path with ffmpeg --help command. The prefix default path should be like /usr/local/cpffmpeg&lt;br /&gt;2. Configure the FFmpeg-php with --with-ffmpeg option&lt;br /&gt;&lt;br /&gt;./configure --with-ffmpeg=/usr/local/cpffmpeg&lt;br /&gt;&lt;br /&gt;That should resolve the problem!&lt;br /&gt;Editing PHP.INI&lt;br /&gt;&lt;br /&gt;Once you have done that without any problems then you will see the php extension file /usr/local/lib/php/extensions/no-debug-non-zts-20060613/ffmpeg.so and you will need mention that extension in php.ini file&lt;br /&gt;&lt;br /&gt;nano /usr/local/lib/php.ini&lt;br /&gt;&lt;br /&gt;Put the below two lines at the end of the php.ini file&lt;br /&gt;&lt;br /&gt;[ffmpeg]&lt;br /&gt;extension=ffmpeg.so&lt;br /&gt;&lt;br /&gt;Then restart the server service httpd restart&lt;br /&gt;&lt;br /&gt;To check whether ffmpeg enabled with php, point your browser to test.php file. It should show the confirmation of installed ffmpeg php extension&lt;br /&gt;&lt;br /&gt;// #test.php&lt;br /&gt;&lt;br /&gt;&lt;?php&lt;br /&gt;&lt;br /&gt;phpinfo()&lt;br /&gt;&lt;br /&gt;?&gt;&lt;br /&gt;&lt;br /&gt;If any case the ffmpeg does not show in the phpinfo() test make sure that php.ini path to ffmpeg.so is correct. Still the problem occurs, the reason could be you might be using older versions of ffmpeg-php which is buggy. Just download the latest version of ffmpeg-php source then compile it.&lt;br /&gt;Installing Mplayer + Mencoder&lt;br /&gt;&lt;br /&gt;Just issue the following yum commands to install the rest of the packages.&lt;br /&gt;&lt;br /&gt;yum install mplayer mencoder&lt;br /&gt;Installing FlvTool2&lt;br /&gt;&lt;br /&gt;Flvtool2 is a flash video file manipulation tool. It can calculate metadata and can cut and edit cue points for flv files.&lt;br /&gt;&lt;br /&gt;If you are on Centos 5 try yum install flvtool2 with dag repository and if you get package not found you will need to manually download and compile the flvtool2. You can download latest version of flvtool2 here: http://rubyforge.org/projects/flvtool2/&lt;br /&gt;&lt;br /&gt;wget &lt;url-link&gt;&lt;br /&gt;&lt;br /&gt;ruby setup.rb config&lt;br /&gt;ruby setup.rb setup&lt;br /&gt;sudo ruby setup.rb install&lt;br /&gt;&lt;br /&gt;If you get command not found error, it probably means that you dont have ruby installed.&lt;br /&gt;&lt;br /&gt;yum install ruby&lt;br /&gt;&lt;br /&gt;Thats it! Once ffmpeg works fine with php extension, download a sample video, convert to .flv format in the command line and plug it to flowplayer to see it work on your web browser. Try also to download the video file offline and see whether the converted flv file works well with both audio and video.&lt;br /&gt;Useful Links&lt;br /&gt;&lt;br /&gt;FFmpeg (http://ffmpeg.mplayerhq.hu)&lt;br /&gt;Mplayer + Mencoder (http://www.mplayerhq.hu/design7/dload.html)&lt;br /&gt;Flv2tool (http://inlet-media.de/flvtool2)&lt;br /&gt;Libogg + Libvorbis (http://www.xiph.org/downloads)&lt;br /&gt;LAME MP3 Encoder (http://lame.sourceforge.net)&lt;br /&gt;FlowPlayer - A Free Flash Video Player - http://flowplayer.org/&lt;br /&gt;&lt;br /&gt;Install FFmpeg from Compiling Source (Tutorial Link)&lt;br /&gt;Nice FFmpeg Installation Tutorial (click here)&lt;br /&gt;Important Audio Codecs&lt;br /&gt;(http://www.mplayerhq.hu/DOCS/HTML/en/audio-codecs.html)&lt;br /&gt;Common Errors &amp; Fixes while Installing FFmpeg (click here)&lt;br /&gt;&lt;br /&gt;You can also post comments in my blog.&lt;br /&gt;&lt;br /&gt;Back to home&lt;br /&gt;&lt;br /&gt;For more information please take a look at:&lt;br /&gt;http://www.mysql-apache-php.com/ffmpeg-install.htm&lt;br /&gt;&lt;br /&gt;Any suggestion or questions are welcome.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-2679641883875177823?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/2679641883875177823/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=2679641883875177823' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/2679641883875177823'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/2679641883875177823'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2010/03/how-to-install-ffmpeg-though-yum.html' title='How to Install FFmpeg though YUM'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-6877789270213985697</id><published>2010-03-19T14:27:00.000-07:00</published><updated>2010-03-19T14:29:07.526-07:00</updated><title type='text'>Downgrade MySQL 5 to MySQL 4.1 on cPanel dedicated server</title><content type='html'>For some reason you need to downgrade MySQL 5 to MySQL 4.1 to achieve this you will have to do the following:&lt;br /&gt;&lt;br /&gt;To check the which all mysql rpm’s are available use the command:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;rpm -qa | grep -i mysql-&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;First of all take a backup of /var/lib/mysql, and also ask the other users to keep a backup it with them. This can also be a .sql file. The command to take a backup is:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;cp /var/lib/mysql /var/lib/mysql.bk&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Now, you will have to edit the cPanel config file and make manual changes under this, so edit it with the command:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;nano /var/cpanel/cpanel.config&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;And here, find for the line “mysql-version=5.0” and change it to “mysql-version=4.1”&lt;br /&gt;&lt;br /&gt;Now, we will forcefully install mysql by the following command:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;/scripts/mysqlup --force&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;You can now check again with the command:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;rpm -qa | grep -i mysql-&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This is done and worked for me.&lt;br /&gt;&lt;br /&gt;Any suggestions or questions are welcome.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-6877789270213985697?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/6877789270213985697/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=6877789270213985697' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/6877789270213985697'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/6877789270213985697'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2010/03/downgrade-mysql-5-to-mysql-41-on-cpanel.html' title='Downgrade MySQL 5 to MySQL 4.1 on cPanel dedicated server'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-1207988075631370877</id><published>2010-03-18T14:43:00.000-07:00</published><updated>2010-03-18T14:47:02.884-07:00</updated><title type='text'>update python</title><content type='html'>if there’s some problems with mail or anything u can go and update python on ur cpanel server&lt;br /&gt;&lt;br /&gt;download the least version here : http://www.python.org/download/&lt;br /&gt;&lt;br /&gt;the build it and edit cpanel config to match the new version&lt;br /&gt;&lt;br /&gt;cd /usr/local/src/&lt;br /&gt;wget http://www.python.org/ftp/python/2.6.4/Python-2.6.4.tgz&lt;br /&gt;tar -xvzf Python-2.4.6.tgz&lt;br /&gt;cd Python-2.4.6/&lt;br /&gt;./configure –prefix=/usr/local/python.2.4.6/&lt;br /&gt;make&lt;br /&gt;make install&lt;br /&gt;&lt;br /&gt;now u have install python on ur system as slave version u can edit cpanel config now&lt;br /&gt;vi /var/cpanel/cpanel.config then find python and comment that line # and enter line blow&lt;br /&gt;python=/usr/local/python.2.4.6/bin/python2.4&lt;br /&gt;do force update to ur cpanel&lt;br /&gt;&lt;br /&gt;everything is ok&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-1207988075631370877?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/1207988075631370877/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=1207988075631370877' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/1207988075631370877'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/1207988075631370877'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2010/03/update-python.html' title='update python'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-4883640277555936589</id><published>2010-03-17T15:10:00.000-07:00</published><updated>2010-03-17T15:13:16.369-07:00</updated><title type='text'>Daily Process Logs are not working in WHM</title><content type='html'>"Daily Process Log" page in WHM, Where it's exactly coming from?&lt;br /&gt;&lt;br /&gt;the same information may be accessed via command-line (SSH access) using the following script:&lt;br /&gt;&lt;br /&gt;# /usr/local/cpanel/bin/dcpumonview&lt;br /&gt;&lt;br /&gt;Simply run this script to update the stats also make sure cron is properly set to update the stats. The information is updated every 5 minutes by an entry in the root crontab, like the following:&lt;br /&gt;&lt;br /&gt;# crontab -l -u root | grep dcpumon&lt;br /&gt;*/5 * * * * /usr/local/cpanel/bin/dcpumon &gt;/dev/null 2&gt;&amp;1&lt;br /&gt;&lt;br /&gt;That's it.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-4883640277555936589?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/4883640277555936589/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=4883640277555936589' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/4883640277555936589'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/4883640277555936589'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2010/03/daily-process-logs-are-not-working-in.html' title='Daily Process Logs are not working in WHM'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-1510254673458681577</id><published>2010-03-15T14:55:00.000-07:00</published><updated>2010-03-15T14:56:06.590-07:00</updated><title type='text'>How to Get Linux Server Sends Email Alert on Root Login</title><content type='html'>1. Login to the server via SSH using as root ID.&lt;br /&gt;   2. Ensure that you’re at home directory of root. The open up the .bash_profile for editing using pico or vi by typing one of the following commands at command shell line:&lt;br /&gt;&lt;br /&gt;      pico .bash_profile&lt;br /&gt;      vi .bash_profile&lt;br /&gt;   3. Scroll down to the end of the file and add the following line:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;      echo 'ALERT - Root Shell Access on:' `date` `who` | mail -s "Alert: Root Access&lt;br /&gt;      from `who | cut -d"(" -f2 | cut -d")" -f1`" user@example.com&lt;br /&gt;&lt;br /&gt;      Replace user@email.com with the actual email account&lt;br /&gt;      address that you want to the root access alert notification been sent to. Note that you can change the text contains in the email alert too. The text starting with first ALERT is written as email body, and you can add in other info such as host name or change the wordings. The second Alert is the email title which you can change to your own too. &lt;br /&gt;&lt;br /&gt;Now logout and login again as root, you should receive an email alert at your inbox. The security trick should works on most popular flavor of Linux such as RedHat, CentOS, Ubuntu, FreeBSD and etc.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-1510254673458681577?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/1510254673458681577/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=1510254673458681577' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/1510254673458681577'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/1510254673458681577'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2010/03/how-to-get-linux-server-sends-email.html' title='How to Get Linux Server Sends Email Alert on Root Login'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-5276803136867529055</id><published>2010-03-13T09:10:00.000-08:00</published><updated>2010-03-13T09:12:26.026-08:00</updated><title type='text'>Disable eAccelerator for one domain</title><content type='html'>I had an issue where I had to disable eAccelerator for a single domain on my VPS.&lt;br /&gt;&lt;br /&gt;I've seen instructions that say to put following lines .htaccess file in the site's root directory, &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;php_flag eaccelerator.enable 0&lt;br /&gt;php_flag eaccelerator.optimizer 0&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;but when I did that trying to access any pages on that site resulted in a 500 error.&lt;br /&gt;&lt;br /&gt;I found that the only way to make this work is to locate the VirtualHost section for the domain in question in /etc/httpd/conf/httpd.conf. Within that VirtualHost section, there should be a section that looks similar to this:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;IfModule mod_php4.c&gt;&lt;br /&gt;php_admin_value open_basedir "/home/site-name/:/usr/lib/php:/usr/local/lib/php:/tmp"&lt;br /&gt;&lt;/IfModule&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Add the following lines to this section, before the "&lt;/IfModule&gt;"&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;php_flag eaccelerator.enable 0&lt;br /&gt;php_flag eaccelerator.optimizer 0&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Any suggestions or questions are welcome.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-5276803136867529055?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/5276803136867529055/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=5276803136867529055' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/5276803136867529055'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/5276803136867529055'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2010/03/disable-eaccelerator-for-one-domain.html' title='Disable eAccelerator for one domain'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-8106974745751633855</id><published>2010-03-13T08:31:00.000-08:00</published><updated>2010-03-13T08:34:44.925-08:00</updated><title type='text'>FTP hangs when CSF is on</title><content type='html'>This is very known issue between CSF and ftp and it hangs while we change directory through ftp so this is what I tried to get this fixed.&lt;br /&gt;&lt;br /&gt;Server the follwoing line in  &lt;span style="font-weight:bold;"&gt;/etc/pure-ftpd.conf&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Port range for passive connections replies. - for firewalling.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;and simply &lt;span style="font-weight:bold;"&gt;comment&lt;/span&gt; it.&lt;br /&gt;&lt;br /&gt;Then restart FTP and CSF and FTP should be working fine now.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-8106974745751633855?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/8106974745751633855/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=8106974745751633855' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/8106974745751633855'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/8106974745751633855'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2010/03/ftp-hangs-when-csf-is-on.html' title='FTP hangs when CSF is on'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-6107170581107698804</id><published>2010-03-13T06:31:00.000-08:00</published><updated>2010-03-13T08:31:33.548-08:00</updated><title type='text'>Upgrade CentOS 4.8 to 5.3</title><content type='html'>Traditionally, the dist upgrade path that many were familiar with from the RH8/9-&gt;Fedora or similarly Fedora dist upgrades, have applied more or less to RHEL/CentOS but with the release of 4.5 and early releases of 5.0 the actual dist upgrade path was messy or nearly impossible. The early versions of 5.0 (up to 5.2) had excessive dependency issues with versions later than 4.4 for straight dist upgrades that would often result in a box blowing up on you or forcing a messy downgrade attempt of 4.5+ to 4.4 to try get things to dist upgrade. With more recent release updates the gap has closed and now dist upgrades on are far more reasonable to complete with little in the way of problems.&lt;br /&gt;&lt;br /&gt;If you are currently running a version of RHEL/CentOS earlier than 4.8 (cat /etc/redhat-release) then please do a proper ‘yum update’ and get yourself on 4.8. Although this is intended for CentOS it “should” (read: at own risk) work on RHEL systems as well, in the unfortunate situation that something does blow up please post a comment and I will try to assist.&lt;br /&gt;&lt;br /&gt;The first thing we must do is make sure none of our core binaries, libraries or other content is set immutable as this will cause a package to fail on installation. If you are running an earlier version of LES or you use immutable bits on system paths (sbin/bin/share/include/libexec/etc) then you should run the following:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;wget http://www.rfxn.com/downloads/disable.les.rpmpkg&lt;br /&gt;sh disable.les.rpmpkg&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Once that is done we should go ahead and have a quick run through of cleaning up yum cache, double check that any pending updates are installed and rebuild the rpmdb:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;rpm --rebuilddb&lt;br /&gt;yum clean all&lt;br /&gt;yum update&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;If for some reason the rpm rebuild hangs for more than a few minutes then you may need to manually clear the rpmdb files:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;rm -f /var/lib/rpm/__db.00*&lt;br /&gt;rpm --rebuilddb&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;If you run into any minor dependency issues for packages that are not essential, such as syslinux and lftp then you can either exclude them or better yet remove them. If you are not sure what a package does, then you should query it for description details and make an educated choice (rpm -qi PACKAGE):&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;rpm -e lftp syslinux mkboot&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;OR (but not recommended)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;yum update --exclude=syslinux --exclude=lftp --exclude=mkboot&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;At this point you should be able to run a ‘yum update’ command with optional exclude and receive no errors (again, I recommend you remove conflicts items instead of using exclusions).&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;    # yum update –exclude=nagios-plugins&lt;br /&gt;    Setting up Update Process&lt;br /&gt;    Setting up repositories&lt;br /&gt;    Reading repository metadata in from local files&lt;br /&gt;    Excluding Packages in global exclude list&lt;br /&gt;    Finished&lt;br /&gt;    No Packages marked for Update/Obsoletion&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Now we are ready to get going, I have put together a small package that contains the needed packages for this upgrade in addition to a few that you might require to resolve dependency conflicts:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;wget http://www.rfxn.com/downloads/CentOS-5up.tar.gz&lt;br /&gt;tar xvfz CentOS-5up.tar.gz&lt;br /&gt;cd CentOS-5up&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;We need to go ahead and setup the centos-release package as follows:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;rpm -Uhv centos-release-*&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;If you see that CentOS-Base.repo was created as /etc/yum.repos.d/CentOS-Base.repo.rpmnew then go ahead and move it into the proper place:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;mv /etc/yum.repos.d/CentOS-Base.repo.rpmnew /etc/yum.repos.d/CentOS-Base.repo&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Now we are ready to go with kernel changes, this is an important part so pay attention. The key to successful upgrade is that you remove ALL OLD KERNELS as many packages will fail to install during the upgrade if they detect a release 4.x kernel due to minimum kernel version dependency checks. We will start with first installing the new kernel so it preserves grub templating:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;rpm -ivh kernel-2.6.18-164.el5.i686.rpm kernel-devel-2.6.18-164.el5.i686.rpm --nodeps&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;NOTE: release 5.x has smp support integrated into the standard kernel, so no -smp version is required for mp systems&lt;br /&gt;&lt;br /&gt;If you are running an older system the chances are you got allot of older kernel packages installed so make sure you get them all out of the way:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;rpm -e $(rpm -qa | grep kernel | grep -v 2.6.18 | tr '\n' ' ')&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;You may end up with a few dependencies coming up such as lm_sensors and net-snmp if the list is fairly small and packages you do not recognize as critical (if unsure always query the package for info ‘rpm -qi PACKAGE’, remember you can reinstall them later):&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;    # rpm -e $(rpm -qa | grep kernel | grep -v 2.6.18)&lt;br /&gt;    error: Failed dependencies:&lt;br /&gt;    kernel-utils is needed by (installed) lm_sensors-2.8.7-2.40.5.i386&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The command the ended up being required on most of my servers to get the kernel packages and related dependencies came out to the following:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;rpm -e $(rpm -qa | grep kernel | grep -v 2.6.18 | tr '\n' ' ') lm_sensors net-snmp net-snmp-devel net-snmp-utils&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;That said and done you should now only have 2 kernel packages installed which are the 2.6.18 release 5.x kernels, DO NOT under any circumstance continue if you still got 2.6.9 release 4.x kernels packages still installed, remove them!&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;    # rpm -qa | grep -i kernel&lt;br /&gt;    kernel-2.6.18-164.el5&lt;br /&gt;    kernel-devel-2.6.18-164.el5&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;A cleanup of /etc/grub.conf may be required, though if all went as planned then the rpm command should have done this up for us but review it anyways for good measure. You should find that 2.6.18-164.el5 is the only kernel in the file, if it is not go ahead and clean it by removing all older entries for 2.6.9 kernels.&lt;br /&gt;&lt;br /&gt;There is a known bug with python-elementtree package versions which cause yum/rpm to think the release 4.x version is newer than the 5.x version, to get around this without blowing up the entire python installation we need to remove the package from just the rpmdb as follows:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;rpm -e --justdb python-elementtree --nodeps&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;We can now go ahead and use yum to start the upgrade process, this is a dry run and will take a few minutes to compile list of available packages and associated dependency checks. You should carry the exclude options, if any, that you used during the ‘yum update’ process as so to avoid unresolvable dependencies:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;yum clean all&lt;br /&gt;yum upgrade --exclude=nagios-plugins&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;You will end up with a small list of dependency errors, these should be resolved by again evaluating a packages need as a critical system component and either removing it with ‘rpm -e’ or excluding it with ‘–exclude’ (remember to query description with ‘rpm -qi PACKAGE’ if you are unsure what something does). In my case the packages that threw up red flags were stuff I had manually installed over time such as iftop and mrtg in addition to default installed samba, these can all safely be removed or excluded as you prefer (removal always safest to prevent dependency chain issues).&lt;br /&gt;&lt;br /&gt;    Error: Missing Dependency: libpcap.so.0.8.3 is needed by package iftop&lt;br /&gt;    Error: Missing Dependency: perl(Convert::ASN1) is needed by package samba&lt;br /&gt;    Error: Missing Dependency: libevent-1.1a.so.1 is needed bypackage nfs-utils&lt;br /&gt;    Error: Missing Dependency: perl-Socket6 is needed by package mrtg&lt;br /&gt;    Error: Missing Dependency: perl-IO-Socket-INET6 is needed by package mrtg&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;rpm -e iftop samba nfs-utils mrtg system-config-samba&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;At this point we should be ready to do a final dry run of with yum and see where we stand on dependencies, rerun the earlier ‘yum upgrade’ while making sure to carry over any exclude options you are using.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;yum upgrade --exclude=nagios-plugins&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;You should now end up with a summary of actions that yum needs to perform, go ahead and kick it off… this will take a bit to complete so go grab some coffee/jolt/redbull and maybe a small snack cause it could be a long night if this blows up on you.&lt;br /&gt;&lt;br /&gt;    Transaction Summary&lt;br /&gt;    =============================================================================&lt;br /&gt;    Install 183 Package(s)&lt;br /&gt;    Update 327 Package(s)&lt;br /&gt;    Remove 0 Package(s)&lt;br /&gt;    Total download size: 299 M&lt;br /&gt;    Is this ok [y/N]:&lt;br /&gt;&lt;br /&gt;Once yum has completed (hopefully without major errors) we need to fix a few things, the first is the rpmdb needs a rebuild due to version changes that will cause any rpm commands to fail:&lt;br /&gt;&lt;br /&gt;    # rpm -qa&lt;br /&gt;    rpmdb: Program version 4.3 doesn’t match environment version&lt;br /&gt;    error: db4 error(-30974) from dbenv-&gt;open: DB_VERSION_MISMATCH: Database environment version mismatch&lt;br /&gt;    error: cannot open Packages index using db3 – (-30974)&lt;br /&gt;    error: cannot open Packages database in /var/lib/rpm &lt;br /&gt;&lt;br /&gt;This can be fixed by running the following to manually rebuild the rpmdb:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;rm -f /var/lib/rpm/__db.00*&lt;br /&gt;rpm --rebuilddb&lt;br /&gt;yum clean all&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The next issue on the list is python-elementtree and python-sqlite, one or both of these may have ended up in a broken state that will cause all yum commands to break, so we will go ahead and reinstall both of these for good measure:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;rpm -e --justdb python-elementtree --nodeps&lt;br /&gt;rpm -ivh python-elementtree-1.2.6-5.el5.i386.rpm&lt;br /&gt;rpm -ivh python-sqlite-1.1.7-1.2.1.i386.rpm --nodeps --force&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The yum command should now work, go ahead and run it with no options, if you do not get any errors you are all sorted.&lt;br /&gt;&lt;br /&gt;Hopefully the install went well for you, the only thing left to do is go ahead and reboot the system; this is the last point at which you have to make backups (but we all maintain backups right?). For the sake of avoiding a heart attack if the system goes into an fsck, we will reboot with the -f option to skip fsck:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;shutdown -rf now&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;That’s a wrap, I hope you found this HowTo useful, if you did run into any issues then go ahead and post them into the comments field and I will try to assist but when in doubt typically google is the fastest alternative.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-6107170581107698804?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/6107170581107698804/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=6107170581107698804' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/6107170581107698804'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/6107170581107698804'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2010/03/upgrade-centos-48-to-53.html' title='Upgrade CentOS 4.8 to 5.3'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-4421559308790899639</id><published>2010-03-13T05:52:00.000-08:00</published><updated>2010-03-13T06:04:09.974-08:00</updated><title type='text'>Limit IP downloads in Apache, Save bandwidth by installing LimitIPConn</title><content type='html'>&lt;span style="font-weight:bold;"&gt;About LimitIPConn&lt;/span&gt;&lt;br /&gt;This is the distribution page for the Apache module mod_limitipconn.c, which allows web server administrators to limit the number of simultaneous downloads permitted from a single IP address&lt;br /&gt;&lt;br /&gt;Official site: http://dominia.org/djao/limitipconn.html&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;well does this thing work with Cpanel ?&lt;/span&gt;&lt;br /&gt;Answer :: Yes, it does.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Installing mod_limitipconn.c&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Installing this was quick and easy. Login to your server through shell as the root user.&lt;br /&gt;&lt;br /&gt;# wget http://dominia.org/djao/limit/mod_limitipconn-0.22.tar.gz&lt;br /&gt;# tar -xzvf mod_limitipconn-0.22.tar.gz&lt;br /&gt;# cd mod_limitipconn-0.22&lt;br /&gt;# nano Makefile&lt;br /&gt;Find&lt;br /&gt;APXS = apxs&lt;br /&gt;CHANGE TO:&lt;br /&gt;APXS = /usr/local/apache/bin/apxs&lt;br /&gt;Save&lt;br /&gt;&lt;br /&gt;#make&lt;br /&gt;#make install&lt;br /&gt;&lt;br /&gt;This adds the module to httpd.conf and backs up the old configuration from httpd.conf.new&lt;br /&gt;&lt;br /&gt;# vi /usr/local/apache/conf/httpd.conf&lt;br /&gt;It should have added the following:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;LoadModule limitipconn_module libexec/mod_limitipconn.so&lt;br /&gt;and&lt;br /&gt;AddModule mod_limitipconn.c&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Now we need to setup the configuration for the site you want to add the limits to. Search the domain you want and go to the configuration for it in httpd.conf&lt;br /&gt;&lt;br /&gt;You should be at the part like this:&lt;br /&gt;&lt;br /&gt;&lt;VirtualHost IP HERE&gt;&lt;br /&gt;ServerAlias www.domain.com domain.com&lt;br /&gt;&lt;br /&gt;Add the following configuration that you want, this restricts 2 directories I have on my site to prevent users from downloading more than 1 video at a time, I have 2 separate rules.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;IfModule mod_limitipconn.c&gt;&lt;br /&gt;    &lt;Location /videos&gt;&lt;br /&gt;        MaxConnPerIP 1&lt;br /&gt;        # In this case, all MIME types other than audio/mpeg and video*&lt;br /&gt;        # are exempt from the limit check&lt;br /&gt;        OnlyIPLimit audio/mpeg video&lt;br /&gt;    &lt;/Location&gt;&lt;br /&gt;&lt;br /&gt;    &lt;Location /forums/media/data&gt;&lt;br /&gt;        MaxConnPerIP 1&lt;br /&gt;        # In this case, all MIME types other than audio/mpeg and video*&lt;br /&gt;        # are exempt from the limit check&lt;br /&gt;        OnlyIPLimit audio/mpeg video&lt;br /&gt;    &lt;/Location&gt;&lt;br /&gt;&lt;br /&gt;&lt;/IfModule&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;So my whole entry for the domain looks like this:&lt;br /&gt;&lt;br /&gt;&lt;VirtualHost IPHERE&gt;&lt;br /&gt;ServerAlias www.domain.com domain.com&lt;br /&gt;ServerAdmin webmaster@domain.com&lt;br /&gt;DocumentRoot /home/domain/public_html&lt;br /&gt;BytesLog domlogs/domain.com-bytes_log&lt;br /&gt;ServerName www.domain.com&lt;br /&gt;&lt;IfModule mod_php4.c&gt;&lt;br /&gt;php_admin_value open_basedir "/home/domain:/usr/lib/php:/usr/local/lib/php:/tmp"&lt;br /&gt;&lt;/IfModule&gt;&lt;br /&gt;&lt;IfModule mod_limitipconn.c&gt;&lt;br /&gt;    &lt;Location /videos&gt;&lt;br /&gt;        MaxConnPerIP 1&lt;br /&gt;        # In this case, all MIME types other than audio/mpeg and video*&lt;br /&gt;        # are exempt from the limit check&lt;br /&gt;        OnlyIPLimit audio/mpeg video&lt;br /&gt;    &lt;/Location&gt;&lt;br /&gt;&lt;br /&gt;    &lt;Location /forums/media/data&gt;&lt;br /&gt;        MaxConnPerIP 1&lt;br /&gt;        # In this case, all MIME types other than audio/mpeg and video*&lt;br /&gt;        # are exempt from the limit check&lt;br /&gt;        OnlyIPLimit audio/mpeg video&lt;br /&gt;    &lt;/Location&gt;&lt;br /&gt;&lt;br /&gt;&lt;/IfModule&gt;&lt;br /&gt;User domain&lt;br /&gt;Group domain&lt;br /&gt;CustomLog domlogs/domain.com combined&lt;br /&gt;ScriptAlias /cgi-bin/ /home/domain/public_html/cgi-bin/&lt;br /&gt;&lt;/VirtualHost&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Save httpd.conf&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Test Apache Configuration&lt;br /&gt;# &lt;span style="font-weight:bold;"&gt;apachectl configtest start&lt;/span&gt;&lt;br /&gt;Make sure it comes back ok without errors&lt;br /&gt;&lt;br /&gt;# &lt;span style="font-weight:bold;"&gt;/scripts/restartsrv_httpd&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Apache will restart. Try it out. Go to your limited directory and try to download 2 things (2 depends on your IP limit you set). You should get forwarded to a 503 Temporary Service page. We can customize that as well.&lt;br /&gt;&lt;br /&gt;Any suggestions or questions are welcome.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-4421559308790899639?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/4421559308790899639/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=4421559308790899639' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/4421559308790899639'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/4421559308790899639'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2010/03/limit-ip-downloads-in-apache-save.html' title='Limit IP downloads in Apache, Save bandwidth by installing LimitIPConn'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-4765995149546948018</id><published>2010-03-03T12:05:00.000-08:00</published><updated>2010-03-03T12:10:44.321-08:00</updated><title type='text'>Install SIM (System Integrity Monitor)</title><content type='html'>Many of us use online services to monitor web server status, if it goes down, if all services are up and running fine, which send back notification by sms, email or others... Such tools help making server administrator's life easier, but what about taking an action even before that your service goes down ? To be able to take such actions you will need to be informed in-time about your services status, actual server load, ... etc. A solution is System Integrity Monitor (SIM), a system and services monitor for 'SysVinit' systems.&lt;br /&gt;&lt;br /&gt;SIM is designed to be intuitive and modular in nature, and to provide a clean and informative status system. It does this by consistently verifying that services are online, load averages are in check, and log files are at reasonable sizes. Many other SIM modules sport different and in-depth features to bring a well rounded tool to your disposal to stop otherwise common issues daunting internet hosts.&lt;br /&gt;SIM Features include :&lt;br /&gt;&lt;br /&gt;    * Service monitoring of HTTP, FTP, DNS, SSH, MYSQL &amp; more&lt;br /&gt;    * Event tracking and alert system&lt;br /&gt;    * Auto restart ability for downed services&lt;br /&gt;    * Checks against network sockets &amp; process list to ensure services are online&lt;br /&gt;    * Advanced HTTP service monitoring, to prevent commonly encountered issues&lt;br /&gt;    * System load monitor with customizable warnings &amp; actions&lt;br /&gt;    * Ability to auto restart system with definable critical load level&lt;br /&gt;    * Priority change configurable for services, at warning or critical load level&lt;br /&gt;    * Informative command line status display&lt;br /&gt;    * Easily customizable configuration file&lt;br /&gt;    * Auto configuration script&lt;br /&gt;    * Auto cronjob setup feature&lt;br /&gt;    * Simple &amp; Informative installation script&lt;br /&gt;    * Integrated auto-update feature&lt;br /&gt;&lt;br /&gt;Install SIM :&lt;br /&gt;&lt;br /&gt;$wget http://www.rfxn.com/downloads/sim-current.tar.gz&lt;br /&gt;$tar xvfz sim-current.tar.gz&lt;br /&gt;$cd sim*&lt;br /&gt;$sudo ./setup -i&lt;br /&gt;&lt;br /&gt;Configuration :&lt;br /&gt;&lt;br /&gt;After installation, setup will run a configuration script which will guide through features that you would like to enable or disable. The configuration script should be located in /usr/local/sim/autoconf&lt;br /&gt;&lt;br /&gt;Most interesting to configure is http, mysql, and server load. You can configure more monitor according to your needs such as FTP, ENSIM, SMTP ... etc.&lt;br /&gt;&lt;br /&gt;SIM 2.5-4 Auto-Config Script&lt;br /&gt;&lt;br /&gt;All questions default to value in brackets if no answer is given. If you&lt;br /&gt;make a typo during the autoconf process, hit CTRL+C (^C) to abort and&lt;br /&gt;rerun the autoconf script (/usr/local/sim/autoconf).&lt;br /&gt;&lt;br /&gt;The below are general configuration options for SIM:&lt;br /&gt;press return to continue...&lt;br /&gt;&lt;br /&gt;Where is SIM installed ?&lt;br /&gt;[/usr/local/sim]:&lt;br /&gt;&lt;br /&gt;Where should the sim.log file be created ?&lt;br /&gt;[/usr/local/sim/sim.log]:&lt;br /&gt;&lt;br /&gt;Max size of sim.log before rotated ? (value in KB)&lt;br /&gt;[128]:&lt;br /&gt;&lt;br /&gt;What is the location of your kernel log ?&lt;br /&gt;Found kernel log at /var/log/messages&lt;br /&gt;&lt;br /&gt;Where should alerts be emailed to ? (e.g: root, user@domain)&lt;br /&gt;[root]:&lt;br /&gt;&lt;br /&gt;Disable alert emails after how many events, to avoid email flood ?&lt;br /&gt;(Note: events stats are cleared daily)&lt;br /&gt;[8]:&lt;br /&gt;&lt;br /&gt;The below are configuration options for Service modules:&lt;br /&gt;press return to continue...&lt;br /&gt;&lt;br /&gt;Auto-restart services found to be offline ? (true=enable, false=disable)&lt;br /&gt;[true]:&lt;br /&gt;&lt;br /&gt;Enforce laxed service checking ? (true=enable, false=disable)&lt;br /&gt;[true]:&lt;br /&gt;&lt;br /&gt;Disable auto-restart after how many downed service events ?&lt;br /&gt;(Note: events stats are cleared daily)&lt;br /&gt;[10]:&lt;br /&gt;&lt;br /&gt;Enable FTP service monitoring ? (true=enable, false=disable)&lt;br /&gt;[false]:&lt;br /&gt;&lt;br /&gt;Enable HTTP service monitoring ? (true=enable, false=disable)&lt;br /&gt;[false]:true&lt;br /&gt;&lt;br /&gt;Name of the HTTP service as appears in 'ps' ?&lt;br /&gt;Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.3/FAQ&lt;br /&gt;Found service name as httpd&lt;br /&gt;&lt;br /&gt;TCP/IP port that HTTP operates on ?&lt;br /&gt;Found service port as 80&lt;br /&gt;&lt;br /&gt;Path to HTTP service init script ?&lt;br /&gt;Found service init script at /etc/init.d/httpd&lt;br /&gt;&lt;br /&gt;Enable DNS service monitoring ? (true=enable, false=disable)&lt;br /&gt;[false]:&lt;br /&gt;&lt;br /&gt;Enable SSH service monitoring ? (true=enable, false=disable)&lt;br /&gt;[false]:&lt;br /&gt;&lt;br /&gt;Enable MYSQL service monitoring ? (true=enable, false=disable)&lt;br /&gt;[false]:true&lt;br /&gt;&lt;br /&gt;Name of the MYSQL service as appears in 'ps' ?&lt;br /&gt;[mysqld]:&lt;br /&gt;&lt;br /&gt;TCP/IP port that MYSQL operates on ?&lt;br /&gt;[3306]:&lt;br /&gt;&lt;br /&gt;Path to MYSQL service init script ?&lt;br /&gt;Found service init script at /etc/init.d/mysql&lt;br /&gt;&lt;br /&gt;Enable SMTP service monitoring ? (true=enable, false=disable)&lt;br /&gt;[false]:&lt;br /&gt;&lt;br /&gt;Enable XINET service monitoring ? (true=enable, false=disable)&lt;br /&gt;[false]:&lt;br /&gt;&lt;br /&gt;Enable ENSIM service monitoring ? (true=enable, false=disable)&lt;br /&gt;[false]:&lt;br /&gt;&lt;br /&gt;Enable NETWORK monitoring ? (true=enable, false=disable)&lt;br /&gt;[false]:true&lt;br /&gt;&lt;br /&gt;interface to monitor ?&lt;br /&gt;[eth0]:&lt;br /&gt;&lt;br /&gt;Path to NETWORK init script ?&lt;br /&gt;[/etc/init.d/network]:&lt;br /&gt;&lt;br /&gt;Enable LOAD monitor ? (true=enable, false=disable)&lt;br /&gt;[false]:true&lt;br /&gt;&lt;br /&gt;Load level before status condition 'warning' ?&lt;br /&gt;[25]:&lt;br /&gt;&lt;br /&gt;Load level before status condition 'critical' ?&lt;br /&gt;[45]:&lt;br /&gt;&lt;br /&gt;Enable a global (wall) message at status condition 'warning' &amp; 'critical' ?&lt;br /&gt;[false]:&lt;br /&gt;&lt;br /&gt;Renice services at status condition 'warning' or 'critical' ?&lt;br /&gt;(3 values - warn, crit, false - false=disabled)&lt;br /&gt;[false]:&lt;br /&gt;&lt;br /&gt;Stop nonessential services at status condition 'warning' or 'critical' ?&lt;br /&gt;(3 values - warn, crit, false - false=disabled)&lt;br /&gt;[false]:&lt;br /&gt;&lt;br /&gt;Reboot system on status condition 'warning' or 'critical' ?&lt;br /&gt;(3 values - warn, crit, false - false=disabled)&lt;br /&gt;[false]:&lt;br /&gt;&lt;br /&gt;Configuration completed, saving conf.sim... &lt;br /&gt;Done, conf.sim saved to /usr/local/sim.&lt;br /&gt;&lt;br /&gt;And you are done ! You can already have a look at /usr/local/sim/sim.log to see how your services are actually acting.&lt;br /&gt;&lt;br /&gt;Suggestions and questions are welcome.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-4765995149546948018?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/4765995149546948018/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=4765995149546948018' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/4765995149546948018'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/4765995149546948018'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2010/03/install-sim-system-integrity-monitor.html' title='Install SIM (System Integrity Monitor)'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-5741590523924812645</id><published>2010-03-02T13:05:00.000-08:00</published><updated>2010-03-02T13:08:21.325-08:00</updated><title type='text'>How to Clear Your /tmp Folder Automatically?</title><content type='html'>Is your /tmp directory simply getting overrun with SESS files? If so, try this:&lt;br /&gt;&lt;br /&gt;make a file in scripts called cleantmp, put the following in it:&lt;br /&gt;&lt;br /&gt;************&lt;br /&gt;# This script cleans out /tmp of empty, root, cpanel&lt;br /&gt;# and nobody session files in /tmp&lt;br /&gt;# rev 2.0b by Darren - 8.19.07&lt;br /&gt;&lt;br /&gt;# if --test is passed, we just show the results&lt;br /&gt;if [ "$1" == "--test" ]&lt;br /&gt;then&lt;br /&gt;        CMD="-exec ls -la"&lt;br /&gt;        echo "$0: test mode"&lt;br /&gt;else&lt;br /&gt;        CMD="-exec rm -rf"&lt;br /&gt;fi&lt;br /&gt;&lt;br /&gt;if [ "$1" == "--help" ]&lt;br /&gt;then&lt;br /&gt;        echo ""&lt;br /&gt;        echo "cleantmp will clean out your tmp directory for you"&lt;br /&gt;        echo ""&lt;br /&gt;        echo "Parameters:"&lt;br /&gt;        echo "--test            to run in test mode"&lt;br /&gt;        echo "--help            display this file"&lt;br /&gt;        echo "-a accountname    to remove all files owned by account name"&lt;br /&gt;        echo "-e                cleans out all empty (zero length) files"&lt;br /&gt;        echo ""&lt;br /&gt;        exit 0&lt;br /&gt;fi&lt;br /&gt;&lt;br /&gt;if [ "$1" == "-a" ]&lt;br /&gt;then&lt;br /&gt;        echo ""&lt;br /&gt;        echo "Removing session file for account $2"&lt;br /&gt;        find /tmp -name "sess*" -user $2 -maxdepth 1 $CMD {} \;&lt;br /&gt;        echo "completed"&lt;br /&gt;        echo ""&lt;br /&gt;        exit 0&lt;br /&gt;fi&lt;br /&gt;&lt;br /&gt;if [ "$1" == "-e" ]&lt;br /&gt;then&lt;br /&gt;        echo ""&lt;br /&gt;        echo "Cleaning out empty files from /tmp"&lt;br /&gt;        find /tmp -name "sess*" -empty -maxdepth 1 $CMD {}  \;&lt;br /&gt;        echo "completed"&lt;br /&gt;        echo ""&lt;br /&gt;        exit 0&lt;br /&gt;fi&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# remove empty session files that are over 2 hours old&lt;br /&gt;find /tmp -name "sess*" -empty -mmin +120 -maxdepth 1 $CMD {}  \;&lt;br /&gt;&lt;br /&gt;# remove root owned session files&lt;br /&gt;find /tmp -name "sess*" -user root -maxdepth 1 $CMD {} \;&lt;br /&gt;&lt;br /&gt;# remove nobody session files&lt;br /&gt;find /tmp -name "*sess*" -user nobody -maxdepth 1 $CMD {} \;&lt;br /&gt;&lt;br /&gt;# remove cpanel owned session files&lt;br /&gt;find /tmp -name "sess*" -user cpanel -maxdepth 1 $CMD {} \;&lt;br /&gt;&lt;br /&gt;# remove any session file over 5 hours old&lt;br /&gt;find /tmp -name "sess*" -mmin +300 -maxdepth 1 $CMD {} \;&lt;br /&gt;&lt;br /&gt;# remove any spamassassin file over 4 hours old&lt;br /&gt;find /tmp -name ".spamassassin*" -mmin +240 -maxdepth 1 $CMD {} \;&lt;br /&gt;************&lt;br /&gt;&lt;br /&gt;Now save, and chmod it so it can be run (use your discretion for perm level):&lt;br /&gt;chmod 755 /scripts/cleantmp&lt;br /&gt;&lt;br /&gt;Run it as /scripts/cleantmp --test to view which files will be removed or /scripts/cleantmp -a accountname to remove all files owned by account name. And running it with "-e" will remove all empty session files.&lt;br /&gt;&lt;br /&gt;What we do on most boxes is have it run in cron.hourly so that it purges session files. It cleans empties that are over 2 hours old, and normal ones that are over 5 hours old. Keep in mind, this may break software that uses "Keep Me Logged In Indefinitely" option for users. But the script could be easily modified to skip some session files if needed.&lt;br /&gt;&lt;br /&gt;So, go to /etc/cron.hourly and create a file called cleantmp. Put this into it:&lt;br /&gt;&lt;br /&gt;****************&lt;br /&gt;#!/bin/bash&lt;br /&gt;&lt;br /&gt;/scripts/cleantmp -e &gt;/dev/null 2&gt;&amp;1&lt;br /&gt;/scripts/cleantmp &gt;/dev/null 2&gt;&amp;1&lt;br /&gt;****************&lt;br /&gt;&lt;br /&gt;and save it, then do the same permissions procedure as above. Now every hour, the script wil clean out empty and older SESS files and keep your sites up. Modify this and the other script as needed.&lt;br /&gt;&lt;br /&gt;Hope this helps! Suggestions, questions are welcome.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-5741590523924812645?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/5741590523924812645/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=5741590523924812645' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/5741590523924812645'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/5741590523924812645'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2010/03/how-to-clear-your-tmp-folder.html' title='How to Clear Your /tmp Folder Automatically?'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-2709198825072288577</id><published>2010-03-02T12:17:00.000-08:00</published><updated>2010-03-02T12:18:04.717-08:00</updated><title type='text'>Upload (mput) and Download (mget) Multiple Files Automatically in FTP Transfer</title><content type='html'>To avoid the situation and automatically transfer the files so that the FTP session can process unattended, use the prompt command before using the mput or mget commands. The prompt command toggles between prompting on, where ftp will prompt you to choose yes or no before each file is transfered, and prompting off, which will copy all files without prompting. By default, prompting is on. So to continue to FTP transfer all files without asking, remember to issue prompt command before starting the transfer process. Ask it do not prompt before putting or getting the files, make sure that your existing files do have have the same file name as FTP will overwrite the existing files that exists on the destination directory automatically too. The command is simple, just a single word “prompt”:&lt;br /&gt;&lt;br /&gt;ftp&gt; prompt&lt;br /&gt;&lt;br /&gt;Interactive mode off.&lt;br /&gt;&lt;br /&gt;FTP command line utility should return Interactive mode off.&lt;br /&gt;&lt;br /&gt;Thanks.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-2709198825072288577?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/2709198825072288577/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=2709198825072288577' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/2709198825072288577'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/2709198825072288577'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2010/03/upload-mput-and-download-mget-multiple.html' title='Upload (mput) and Download (mget) Multiple Files Automatically in FTP Transfer'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-5107525599206871072</id><published>2010-02-28T17:05:00.001-08:00</published><updated>2010-02-28T17:05:59.230-08:00</updated><title type='text'>Excessive mail sent by an user alert for cPanel</title><content type='html'>If you need a simple script to alert you by mail when a user exceeds a predefined mail rate limit, then check this out.&lt;br /&gt;&lt;br /&gt;========================================================================&lt;br /&gt;&lt;br /&gt;1# mailflag=0&lt;br /&gt;2# limit=5&lt;br /&gt;3# mailid=mailaddresshere&lt;br /&gt;4# chkdate=`date -d “60 minute ago” +%Y-%m-%d\ %k`&lt;br /&gt;5# #chkdate=2009-11-10&lt;br /&gt;6# mailfile=$(mktemp)&lt;br /&gt;7# for i in `mysql –batch –skip-column-names -e ” use eximstats; select user,email,msgid from sends where \&lt;br /&gt;8#  mailtime like ‘$chkdate%’;” | awk ‘{print $1}’ | sort | uniq -c | sort -n | sed ’s/^ *//’| sed ’s/ /:/’`&lt;br /&gt;9# do&lt;br /&gt;10# k=`echo $i | cut -d ‘:’ -f1`&lt;br /&gt;11# username=`echo $i | cut -d ‘:’ -f2`&lt;br /&gt;12i# f [ "$k" -gt "$limit" ]&lt;br /&gt;13# then&lt;br /&gt;14# mailflag=1&lt;br /&gt;15# echo -e “\n\n\n Excessive mail sent by user : $username \n\n” &gt;&gt; $mailfile&lt;br /&gt;16# echo -e “==============================================================&lt;br /&gt;===========” &gt;&gt; $mailfile&lt;br /&gt;17# echo “     mailtime           msgid   email   processed       user    size    ip      auth” &gt;&gt; $mailfile&lt;br /&gt;18# mysql –batch –skip-column-names -e ” use eximstats; select * from sends where mailtime like ‘$chkdate%’ and \&lt;br /&gt;19# user like ‘$username’;” &gt;&gt; $mailfile&lt;br /&gt;20# echo -e “===============================================================&lt;br /&gt;========” &gt;&gt; $mailfile&lt;br /&gt;21# fi&lt;br /&gt;21# done&lt;br /&gt;22# if [ "$mailflag" == 1 ]&lt;br /&gt;23# then&lt;br /&gt;24# cat $mailfile | mail -s “Excessive mail sent by user” $mailid&lt;br /&gt;25# fi&lt;br /&gt;26# rm -rf $mailfile&lt;br /&gt;==========================================================================&lt;br /&gt;&lt;br /&gt;You need to edit the limit and mailid variables according to your requirement.&lt;br /&gt;eg:&lt;br /&gt;limit=300&lt;br /&gt;mailid=test@live.com&lt;br /&gt;&lt;br /&gt;Suggestions, questions are welcome.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-5107525599206871072?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/5107525599206871072/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=5107525599206871072' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/5107525599206871072'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/5107525599206871072'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2010/02/excessive-mail-sent-by-user-alert-for.html' title='Excessive mail sent by an user alert for cPanel'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-787673041187770824</id><published>2010-02-28T17:02:00.000-08:00</published><updated>2010-02-28T17:03:26.455-08:00</updated><title type='text'>/var patition full ? How to change Mysql database directory to another partition in cPanel ?</title><content type='html'>Hi guys,&lt;br /&gt;&lt;br /&gt;you might have faced the issue of /var partition gettting full regularly due to database directory. If you have a larger partition with free space, then it is possible to move the database directory to the larger partition.&lt;br /&gt;&lt;br /&gt;Here are the steps&lt;br /&gt;&lt;br /&gt;Switch off the database server while we are moving the databases.&lt;br /&gt;&lt;br /&gt;/etc/rc.d/init.d/mysql stop&lt;br /&gt;&lt;br /&gt;I am considering that I have enough space in /home partition. Here goes my new database data directory as /home/mysql&lt;br /&gt;&lt;br /&gt;Now it is better to copy the database first, rather than move.&lt;br /&gt;&lt;br /&gt;cp -pr /var/lib/mysql /home&lt;br /&gt;mv /var/lib/mysql /var/lib/mysql-bk&lt;br /&gt;&lt;br /&gt;We are copying the database to the new location since it is better to revert back the settings with minimum downtime, if anything goes wrong.&lt;br /&gt;&lt;br /&gt;move to /tmp&lt;br /&gt;&lt;br /&gt;cd /tmp&lt;br /&gt;unlink mysql.sock&lt;br /&gt;ln -s /home/mysql/mysql.sock /tmp/mysql.sock&lt;br /&gt;&lt;br /&gt;Take a backup of /etc/my.cnf&lt;br /&gt;&lt;br /&gt;Now edit /etc/my.cnf&lt;br /&gt;&lt;br /&gt;vi /etc/my.cnf&lt;br /&gt;&lt;br /&gt;add the line&lt;br /&gt;datadir=/home/mysql&lt;br /&gt;&lt;br /&gt;If the socket file is specified, comment it out.&lt;br /&gt;&lt;br /&gt;Now move to /var/lib/mysql and create a symblink&lt;br /&gt;&lt;br /&gt;ln -s /home/mysql /var/lib/mysql&lt;br /&gt;&lt;br /&gt;(Please note that you don’t specify the socket file location in my.cnf since it causes issues with phpMyadmin)&lt;br /&gt;&lt;br /&gt;For, cPanel server, edit the phpMyadmin configuration&lt;br /&gt;take a backup of “/usr/local/cpanel/base/3rdparty/phpMyAdmin/config.inc.php”&lt;br /&gt;&lt;br /&gt;edit this file /usr/local/cpanel/base/3rdparty/phpMyAdmin/config.inc.php&lt;br /&gt;vi /usr/local/cpanel/base/3rdparty/phpMyAdmin/config.inc.php&lt;br /&gt;&lt;br /&gt;add the following lines. If they already exist, edit as below.&lt;br /&gt;(the connect_type usually exist at “tcp” change it to “socket”)&lt;br /&gt;&lt;br /&gt;$cfg['Servers'][$i]['socket'] = ‘/home/mysql/mysql.sock’;&lt;br /&gt;$cfg['Servers'][$i]['connect_type'] = ’socket’;&lt;br /&gt;&lt;br /&gt;Now start the database server.&lt;br /&gt;&lt;br /&gt;/etc/rc.d/ini.d/mysql start&lt;br /&gt;&lt;br /&gt;If it starts fine, you are done. Check the database connections of your site.&lt;br /&gt;You can now remove the directory /var/lib/mysql-bk&lt;br /&gt;&lt;br /&gt;Suggestions, questions are welcome.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-787673041187770824?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/787673041187770824/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=787673041187770824' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/787673041187770824'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/787673041187770824'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2010/02/var-patition-full-how-to-change-mysql.html' title='/var patition full ? How to change Mysql database directory to another partition in cPanel ?'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-9138624709255940204</id><published>2010-02-28T16:55:00.000-08:00</published><updated>2010-02-28T16:58:45.755-08:00</updated><title type='text'>cPanel shows wrong quota for database.</title><content type='html'>&lt;span style="font-weight:bold;"&gt;Getting 0.00MB disk quota for databases in cpanel ?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Here is the answer :: &lt;br /&gt;&lt;br /&gt;The disk quota for MySQL databases will show 0.00 in cPanel &gt; MySQL Databases area unless this option is selected in WHM's Tweak Settings area:&lt;br /&gt;------------------------&lt;br /&gt;When displaying disk usage in cPanel/WHM include Postgresql and MySQL® disk usage. [Requires MySQL® 5+] (SQL disk usage is only updated every four hours)&lt;br /&gt;------------------------&lt;br /&gt;&lt;br /&gt;So go ahead and enable this in Tweak Settings, then manually run the command to update the quotas:&lt;br /&gt;&lt;br /&gt;/scripts/update_db_cache&lt;br /&gt;&lt;br /&gt;This command will run by cron every 4 hours now that the Tweak Settings option has been enabled.&lt;br /&gt;&lt;br /&gt;Thanks&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-9138624709255940204?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/9138624709255940204/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=9138624709255940204' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/9138624709255940204'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/9138624709255940204'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2010/02/cpanel-shows-wrong-quota-for-database.html' title='cPanel shows wrong quota for database.'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-5656725628763199542</id><published>2010-02-26T14:17:00.001-08:00</published><updated>2010-02-26T14:17:38.837-08:00</updated><title type='text'>You need to install the LWP perl module (libwww-perl) and then install csf</title><content type='html'>On installing csf firewall, got following error.&lt;br /&gt;&lt;br /&gt;[root@server22 csf]# sh install.sh&lt;br /&gt;&lt;br /&gt;Configuring for OS&lt;br /&gt;&lt;br /&gt;Checking for perl modulesfailed&lt;br /&gt;You need to install the LWP perl module (libwww-perl) and then install csf&lt;br /&gt;[root@server22 csf]#&lt;br /&gt;&lt;br /&gt;To fix the error, install libwww-perl&lt;br /&gt;&lt;br /&gt;yum install perl-libwww-perl&lt;br /&gt;&lt;br /&gt;That's it!!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-5656725628763199542?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/5656725628763199542/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=5656725628763199542' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/5656725628763199542'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/5656725628763199542'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2010/02/you-need-to-install-lwp-perl-module.html' title='You need to install the LWP perl module (libwww-perl) and then install csf'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-20993703250330223</id><published>2010-02-26T14:11:00.000-08:00</published><updated>2010-02-26T14:15:38.227-08:00</updated><title type='text'>Upgrading PHP4 to PHP5 pn directadmin server.</title><content type='html'>To update to php5, the build script will still work. All that you need to do is swap out the version, compile normally and make a few modifications to your /etc/httpd/conf/httpd.conf file.&lt;br /&gt;&lt;br /&gt;1) download the php-5.2.4.tar.gz from php.net into your customapache directory:&lt;br /&gt;&lt;br /&gt;cd /usr/local/directadmin/customapache&lt;br /&gt;wget http://files.directadmin.com/services/customapache/php-5.2.4.tar.gz&lt;br /&gt;&lt;br /&gt;2) change your build script for the new version:&lt;br /&gt;&lt;br /&gt;nano build&lt;br /&gt;change: PHP_VER=4.4.4&lt;br /&gt;to: PHP_VER=5.2.4&lt;br /&gt;&lt;br /&gt;3) build php normally:&lt;br /&gt;&lt;br /&gt;./build clean&lt;br /&gt;./build php n&lt;br /&gt;If you're using apache 2.x, use&lt;br /&gt;&lt;br /&gt;./build clean&lt;br /&gt;./build php_ap2 n&lt;br /&gt;instead.&lt;br /&gt;&lt;br /&gt;4) edit /etc/httpd/conf/httpd.conf&lt;br /&gt;Remove any referce of:&lt;br /&gt;&lt;br /&gt;LoadModule php4_module modules/libphp4.so&lt;br /&gt;&lt;br /&gt;and make sure they're replaced with:&lt;br /&gt;&lt;br /&gt;LoadModule php5_module modules/libphp5.so&lt;br /&gt;&lt;br /&gt;Remove any reference of:&lt;br /&gt;&lt;br /&gt;AddModule mod_php4.c&lt;br /&gt;and replace with:&lt;br /&gt;&lt;br /&gt;AddModule mod_php5.c&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;5) find this piece of code:&lt;br /&gt;&lt;br /&gt;&lt;IfModule mod_dir.c&gt;&lt;br /&gt;DirectoryIndex index.html index.htm index.shtml index.php index.php4 index.php3 index.phtml index.cgi&lt;br /&gt;&lt;/IfModule&gt;&lt;br /&gt;&lt;br /&gt;replace with:&lt;br /&gt;&lt;br /&gt;&lt;IfModule mod_dir.c&gt;&lt;br /&gt;DirectoryIndex index.html index.htm index.shtml index.php index.php4 index.php5 index.php3 index.phtml index.cgi&lt;br /&gt;&lt;/IfModule&gt;&lt;br /&gt;&lt;br /&gt;Find this:&lt;br /&gt;&lt;br /&gt;&lt;IfModule mod_php4.c&gt;&lt;br /&gt;AddType application/x-httpd-php .inc .php .php4 .php3 .phtml&lt;br /&gt;AddType application/x-httpd-php-source .phps&lt;br /&gt;&lt;/IfModule&gt;&lt;br /&gt;(it might have AddHandler instead of AddType)&lt;br /&gt;replace with:&lt;br /&gt;&lt;br /&gt;&lt;IfModule mod_php5.c&gt;&lt;br /&gt;AddHandler application/x-httpd-php .inc .php .php5 .php4 .php3 .phtml&lt;br /&gt;AddHandler application/x-httpd-php-source .phps&lt;br /&gt;&lt;/IfModule&gt;&lt;br /&gt;Then restart apache.&lt;br /&gt;&lt;br /&gt;If you get the following error while compiling php:&lt;br /&gt;&lt;br /&gt;checking whether to enable LIBXML support... yes&lt;br /&gt;checking libxml2 install dir... no&lt;br /&gt;checking for xml2-config path...&lt;br /&gt;configure: error: xml2-config not found. Please check your libxml2&lt;br /&gt;installation.&lt;br /&gt;&lt;br /&gt;*** There was an error while trying to configure php. Check the configure.php file&lt;br /&gt;Then edit the configure.php file (or configure.php_ap2 if you're using apache 2), and change:&lt;br /&gt;&lt;br /&gt;--with-xml \&lt;br /&gt;to:&lt;br /&gt;&lt;br /&gt;--disable-libxml \&lt;br /&gt;--disable-dom \&lt;br /&gt;--disable-xml \&lt;br /&gt;--disable-simplexml \&lt;br /&gt;--disable-xmlreader \&lt;br /&gt;--disable-xmlwriter \&lt;br /&gt;or else install the missing rpms/packages for xml. (libxml2-dev and libxml2-utils on debian). Redhats:&lt;br /&gt;&lt;br /&gt;yum -y install libxml2-devel libxslt-devel&lt;br /&gt;FreeBSD:&lt;br /&gt;&lt;br /&gt;pkg_add -r libxml2&lt;br /&gt;pkg_add -r libxslt&lt;br /&gt;On debian systems if using apt-get to install libxml2-dev and libxml2-utils doesn't work, then install from source:&lt;br /&gt;&lt;br /&gt;wget http://files.directadmin.com/services/customapache/libxml2-2.6.30.tar.gz&lt;br /&gt;tar xvzf libxml2-2.6.30.tar.gz&lt;br /&gt;cd libxml2-2.6.30&lt;br /&gt;./configure&lt;br /&gt;make &amp;&amp; make install&lt;br /&gt;then recompile php as usual.&lt;br /&gt;&lt;br /&gt;Note: If you want the latest version of php and apache, it's recommended you use custombuild:&lt;br /&gt;http://files.directadmin.com/services/custombuild/1.1&lt;br /&gt;&lt;br /&gt;The Above guide is only to be used if if you still want to use the old apache versions... basically, only if you still need FrontPage.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-20993703250330223?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/20993703250330223/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=20993703250330223' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/20993703250330223'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/20993703250330223'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2010/02/upgrading-php4-to-php5-pn-directadmin.html' title='Upgrading PHP4 to PHP5 pn directadmin server.'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-2044463858870299726</id><published>2010-02-05T13:31:00.000-08:00</published><updated>2010-02-05T14:24:25.004-08:00</updated><title type='text'>Apache interneal dummy connections for localhost (127.0.0.1 - - [] "OPTIONS * HTTP/1.0" 200 -)</title><content type='html'>For anyone interested in this, here's what I did:&lt;br /&gt;&lt;br /&gt;1 -- Backed up the httpd.conf file.&lt;br /&gt;&lt;br /&gt;2 -- Pico-ed into the httpd.conf file and scrolled down to the LogFormat section.&lt;br /&gt;&lt;br /&gt;3 -- You will see a section that starts with this:&lt;br /&gt;&lt;br /&gt;&lt;IfModule log_config_module&gt;&lt;br /&gt;LogFormat "%h %l %u %t \"%r\" %&gt;s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined&lt;br /&gt;LogFormat "%h %l %u %t \"%r\" %&gt;s %b" common&lt;br /&gt;&lt;br /&gt;CustomLog logs/access_log common&lt;br /&gt;&lt;br /&gt;Just change the CustomLog line, and enter a new line just above it. So your final will look like this:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;IfModule log_config_module&gt;&lt;br /&gt;LogFormat "%h %l %u %t \"%r\" %&gt;s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined&lt;br /&gt;LogFormat "%h %l %u %t \"%r\" %&gt;s %b" common&lt;br /&gt;&lt;br /&gt;SetEnvIf Remote_Addr "127\.0\.0\.1" exclude_from_log&lt;br /&gt;CustomLog logs/access_log common env=!exclude_from_log&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;4 -- Restart Apache and now you should see no such entires when tailing /usr/local/apache/logs/access_log&lt;br /&gt;&lt;br /&gt;Please note, that on one of our servers I had to use the following line instead, because the localhost entries were starting with ::1 rather than 127.0.0.1&lt;br /&gt;&lt;br /&gt;SetEnvIf Remote_Addr "\:\:1" exclude_from_log&lt;br /&gt;&lt;br /&gt;Also note ---&gt; If you try this and it screws something up (it shouldn't), I take absolutely no responsibility. Again, be sure to backup your httpd.conf file before doing ANY work with this. &lt;br /&gt;&lt;br /&gt;This removed the entries from the whm apache status as well as the logs.&lt;br /&gt;Its nice not having the logs so large for something so silly.&lt;br /&gt;&lt;br /&gt;Thank You.&lt;br /&gt;&lt;br /&gt;Here are some useful links regarding this post:&lt;br /&gt;http://forums.cpanel.net/f5/apache-strange-request-78449.html&lt;br /&gt;http://www.linuxquestions.org/questions/linux-software-2/apache-...-internal-dummy-connection-506054/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-2044463858870299726?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/2044463858870299726/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=2044463858870299726' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/2044463858870299726'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/2044463858870299726'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2010/02/apache-interneal-dummy-connections-for.html' title='Apache interneal dummy connections for localhost (127.0.0.1 - - [] &quot;OPTIONS * HTTP/1.0&quot; 200 -)'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-8168835045462246130</id><published>2010-02-02T16:56:00.001-08:00</published><updated>2010-02-02T16:56:51.097-08:00</updated><title type='text'>AntiDOS Configuration in APF on cPanel web server</title><content type='html'>It is assumed that you have already installed APF (Advanced policy firewall) on your cPanel dedicated web server. Once, APF is installed do the following:&lt;br /&gt;&lt;br /&gt;Edit the antidos configuration file of APF with the command:&lt;br /&gt;&lt;br /&gt;nano /etc/apf/ad/conf.antidos&lt;br /&gt;&lt;br /&gt;Find the string LP_KLOG=”0″ and change it to LP_KLOG=”1″&lt;br /&gt;&lt;br /&gt;Now, find for CONAME=”Your Company”&lt;br /&gt;&lt;br /&gt;Enter your company name within quotes for example&lt;br /&gt;&lt;br /&gt;CONAME=”SupportFacility.Com”&lt;br /&gt;&lt;br /&gt;Now find for the string USR_ALERT=”0″ and change it to USR_ALERT=”1″&lt;br /&gt;&lt;br /&gt;This is so that you can receive email alerts.&lt;br /&gt;&lt;br /&gt;Now enter your email address here:&lt;br /&gt;&lt;br /&gt;USR=”something@yourdomain.com”&lt;br /&gt;&lt;br /&gt;Now you have to set it in cron for this give the following command:&lt;br /&gt;&lt;br /&gt;crontab –e&lt;br /&gt;&lt;br /&gt;*/5 * * * * root /etc/apf/ad/antidos -a &gt;&gt; /dev/null 2&gt;&amp;1&lt;br /&gt;&lt;br /&gt;This will run antidos every five minutes.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-8168835045462246130?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/8168835045462246130/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=8168835045462246130' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/8168835045462246130'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/8168835045462246130'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2010/02/antidos-configuration-in-apf-on-cpanel.html' title='AntiDOS Configuration in APF on cPanel web server'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-5504719218213079432</id><published>2010-02-02T16:43:00.000-08:00</published><updated>2010-02-02T16:44:16.966-08:00</updated><title type='text'>Plesk : Configure qmail to use alternate SMTP port 26</title><content type='html'>You have a plesk dedicated server and having issues related to SMTP port 25. There are issues where ISP blocks SMTP port 25, in this case we can use alternate port (I will use port 26).&lt;br /&gt;Kindly follow the below steps to change SMTP port on your plesk dedicated (linux) server to 26.&lt;br /&gt;&lt;br /&gt;Login to your server as root&lt;br /&gt;&lt;br /&gt;root# cd /etc/xinetd.d&lt;br /&gt;&lt;br /&gt;root# ls -l | grep smtp*&lt;br /&gt;&lt;br /&gt;root# cat smtp_psa&lt;br /&gt;service smtp&lt;br /&gt;{&lt;br /&gt;socket_type = stream&lt;br /&gt;protocol = tcp&lt;br /&gt;wait = no&lt;br /&gt;disable = no&lt;br /&gt;user = root&lt;br /&gt;instances = UNLIMITED&lt;br /&gt;server = /var/qmail/bin/tcp-env&lt;br /&gt;server_args = /usr/sbin/rblsmtpd -r bl.spamcop.net /var/qmail/bin/relaylock /var/qmail/bin/qmail-smtpd /var/qmail/bin/smtp_auth /var/qmail/bin/true /var/qmail/bin/cmd5checkpw /var/qmail/bin/true&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;root# nano /etc/services&lt;br /&gt;&lt;br /&gt;Add the below lines&lt;br /&gt;&lt;br /&gt;smtp_psa_new 26/tcp mail&lt;br /&gt;smtp_psa_new 26/udp mail&lt;br /&gt;&lt;br /&gt;root# cp smtp_psa smtp_psa_new&lt;br /&gt;&lt;br /&gt;Change the service line in the new file “smtp_psa_new” to be this:&lt;br /&gt;&lt;br /&gt;service smtp_psa_new&lt;br /&gt;{&lt;br /&gt;socket_type = stream&lt;br /&gt;protocol = tcp&lt;br /&gt;wait = no&lt;br /&gt;disable = no&lt;br /&gt;user = root&lt;br /&gt;instances = UNLIMITED&lt;br /&gt;server = /var/qmail/bin/tcp-env&lt;br /&gt;server_args = /usr/sbin/rblsmtpd -r bl.spamcop.net /var/qmail/bin/relaylock /var/qmail/bin/qmail-smtpd /var/qmail/bin/smtp_auth /var/qmail/bin/true /var/qmail/bin/cmd5checkpw /var/qmail/bin/true&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;root# /etc/init.d/xinetd restart&lt;br /&gt;&lt;br /&gt;And you should see smtp listening on ports 25, and 26:&lt;br /&gt;&lt;br /&gt;root# netstat -anp | grep xinetd&lt;br /&gt;tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 6989/xinetd&lt;br /&gt;tcp 0 0 0.0.0.0:26 0.0.0.0:* LISTEN 6989/xinetd&lt;br /&gt;&lt;br /&gt;That’s it!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-5504719218213079432?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/5504719218213079432/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=5504719218213079432' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/5504719218213079432'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/5504719218213079432'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2010/02/plesk-configure-qmail-to-use-alternate.html' title='Plesk : Configure qmail to use alternate SMTP port 26'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-8296732095549309443</id><published>2010-02-02T16:40:00.000-08:00</published><updated>2010-02-02T16:41:19.025-08:00</updated><title type='text'>Mailbox quota shown wrong on cPanel</title><content type='html'>On your cPanel dedicated server, for an email the mailbox quota  is displayed wrong – follow the below steps:&lt;br /&gt;&lt;br /&gt;Login to your server as root&lt;br /&gt;cd /home/username/mail/domain.com/emailaccount&lt;br /&gt;rm -rf maildirsize&lt;br /&gt;&lt;br /&gt;Now, login to cPanel&lt;br /&gt;Go to email account and change the quota for particular email account.&lt;br /&gt;(Once you change quota, it will recreate file maildirsize automatically)&lt;br /&gt;&lt;br /&gt;You can also delete maildirsize file from cpanel &gt; file manager&lt;br /&gt;&lt;br /&gt;That’s it!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-8296732095549309443?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/8296732095549309443/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=8296732095549309443' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/8296732095549309443'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/8296732095549309443'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2010/02/mailbox-quota-shown-wrong-on-cpanel.html' title='Mailbox quota shown wrong on cPanel'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-2862269795356607747</id><published>2010-02-01T14:19:00.000-08:00</published><updated>2010-02-01T14:20:26.360-08:00</updated><title type='text'>Plesk backup and restoring the domain or whole server</title><content type='html'>How to backup and restore in plesk linux based servers..&lt;br /&gt;&lt;br /&gt;BACKUP&lt;br /&gt;&lt;br /&gt;/usr/local/psa/bin/pleskbackup -v domains domainname.com backupfilename&lt;br /&gt;&lt;br /&gt;RESTORE&lt;br /&gt;&lt;br /&gt;CREATING MAPFILE&lt;br /&gt;&lt;br /&gt;/usr/local/psa/bin/pleskrestore --create-map backupfilename -map yourmapfilename&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;yourmapfilename = any name&lt;br /&gt;&lt;br /&gt;To restore an domain edit the map&lt;br /&gt;&lt;br /&gt;vi yourmapfilename&lt;br /&gt;the map file would be like this&lt;br /&gt;&lt;br /&gt;yourdomainname.com 11.22.33.44 # IP address&lt;br /&gt;mysql::@localhost:3306&lt;br /&gt;&lt;br /&gt;comment the unwanted domain and save the file&lt;br /&gt;&lt;br /&gt;Restoring the domain form mapfile&lt;br /&gt;&lt;br /&gt;/usr/local/psa/bin/pleskrestore --restore backupfilename -level domains -map yourmapfilename&lt;br /&gt;&lt;br /&gt;This will restore the complete domain&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-2862269795356607747?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/2862269795356607747/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=2862269795356607747' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/2862269795356607747'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/2862269795356607747'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2010/02/plesk-backup-and-restoring-domain-or.html' title='Plesk backup and restoring the domain or whole server'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-1738858433786089030</id><published>2010-01-22T13:03:00.000-08:00</published><updated>2010-01-22T13:07:59.871-08:00</updated><title type='text'>How to check if a server is Suexec or not?</title><content type='html'>To check the server is Suexec or not? follow the one of the steps which suitable with your privileges&lt;br /&gt;&lt;br /&gt;1) Login into you server with the root login details and run following command&lt;br /&gt;&lt;br /&gt;[root@xx.xx.xx ~]#/usr/local/cpanel/bin/rebuild_phpconf –current&lt;br /&gt;&lt;br /&gt;If server is Suexec then result would look like&lt;br /&gt;&lt;br /&gt;DEFAULT PHP: 5    PHP4&lt;br /&gt;SAPI: suphp       PHP5 SAPI:&lt;br /&gt;suphp             SUEXEC: enabled&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Thank You.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-1738858433786089030?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/1738858433786089030/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=1738858433786089030' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/1738858433786089030'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/1738858433786089030'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2010/01/how-to-check-if-server-is-suexec-or-not.html' title='How to check if a server is Suexec or not?'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-2293629017835309670</id><published>2010-01-21T15:39:00.000-08:00</published><updated>2010-01-21T16:02:26.936-08:00</updated><title type='text'>Compling PHP4 with PHP5 on Plesk</title><content type='html'>&lt;span style="font-weight:bold;"&gt;Download PHP 4 source&lt;/span&gt; http://www.php.net/downloads.php :&lt;br /&gt;&lt;br /&gt;[root@server]# cd /usr/local/src&lt;br /&gt;[root@server]# wget http://museum.php.net/php4/php-4.4.7.tar.gz&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;UNTAR&lt;/span&gt;&lt;br /&gt;[root@server]# tar -zxf php-4.4.5.tar.gz&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;CONFIGURE &amp; COMPILE PHP4&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;[root@server]# cd php-4.4.7&lt;br /&gt;&lt;br /&gt;[root@server]# ./configure '--prefix=/usr/local/php4' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include'&lt;br /&gt;'--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--with-libdir=lib' '--with-config-file-path=/usr/local/php4/lib' '--with-pic' '--disable-rpath' '--with-exec-dir=/usr/bin' '--with-png-dir=/usr' '--enable-gd-native-ttf' '--without-gdbm' '--with-gettext' '--with-iconv' '--with-jpeg-dir=/usr' '--with-png' '--with-zlib' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-sockets' '--enable-track-vars' '--enable-trans-sid' '--enable-yp' '--enable-wddx' '--with-pear=/usr/share/pear' '--enable-calendar' '--with-libxml-dir=/usr' '--with-xml' '--enable-force-cgi-redirect' '--enable-pcntl' '--enable-mbstring' '--enable-mbregex' '--with-ncurses' '--with-gd' '--enable-bcmath' '--with-xmlrpc' '--with-mysql' '--with-mysqli' '--enable-dom' '--with-xsl' '--enable-fastcgi' '--program-suffix=4' '--with-expat-dir=/usr'&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;Note :: You may get too many errors while configuring PHP which can be easily resolved by installing required devel through YUM&lt;/span&gt; (For exa:: yum install libmhash-devel), &lt;span style="font-weight:bold;"&gt;also you can always choose to remove an option above from the compile command if you can't or don't want to install a dependency..  &lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Once the complie command succeeds, run:&lt;br /&gt;&lt;br /&gt;make&lt;br /&gt;&lt;br /&gt;then&lt;br /&gt;&lt;br /&gt;make install&lt;br /&gt;&lt;br /&gt;then Copy php source files.&lt;br /&gt;&lt;br /&gt;[root@server]# cp -rf ./sapi/cgi/php /usr/local/php4/bin/&lt;br /&gt;[root@server]# mkdir -pv /etc/httpd/cgi-sys/&lt;br /&gt;[root@server]# cp -rf ./sapi/cgi/php /etc/httpd/cgi-sys/&lt;br /&gt;[root@server]# cp -rf php.ini-recommended /usr/local/php4/lib/php.ini&lt;br /&gt;&lt;br /&gt; Make a php4.conf file:&lt;br /&gt;&lt;br /&gt;The previous PHP5 installation created a the file /etc/httpd/conf.d/php.conf- duplicate this file and rename it php4.conf, then edit the "DirectoryIndex" "Action" and "AddHandler" lines with the following information:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;DirectoryIndex index.php4 index.php3&lt;br /&gt;Action php4-script /cgi-bin/php&lt;br /&gt;AddHandler php4-script .php3 .php4&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;and comment out the "&lt;span style="font-weight:bold;"&gt;LoadModule php5...&lt;/span&gt;" line&lt;br /&gt;&lt;br /&gt;Instead of creating "php4.conf" you can add following lines at the bottom of the file /etc/httpd/conf/httpd.conf&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;ScriptAlias /cgi-sys/ /etc/httpd/cgi-sys/&lt;br /&gt;Action application/x-httpd-php4 "/cgi-sys/php"&lt;br /&gt;AddHandler application/x-httpd-php4 .php4&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;and then restart Apache:&lt;br /&gt;[root@server]# /etc/init.d/httpd restart&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Create link to PHP4 in Client's cgi-bin Directory&lt;/span&gt;&lt;br /&gt;# Due to Security Issues the PHP4 CGI is installed at /usr/local/etc/php4/cgi/php.ini. In the Interworx virtual host setup using suexec, each user has their own cgi-bin. Do the following to link the PHP4 CGI into your hosting client's cgi-bin directory.&lt;br /&gt;&lt;br /&gt;[root@server]# cd /chroot/home/client/public_html/cgi-bin&lt;br /&gt;[root@server]# ln /usr/local/php4/bin/php php&lt;br /&gt;[root@server]# chown client php&lt;br /&gt;[root@server]# chgrp client php&lt;br /&gt;[root@server]# chmod 755 php&lt;br /&gt;&lt;br /&gt;Test your PHP installation&lt;br /&gt;try creating a php.info doc for both versions of PHP:&lt;br /&gt;&lt;br /&gt;/chroot/home/client/public_html/info.php4&lt;br /&gt;/chroot/home/client/public_html/info.php&lt;br /&gt;using the same code:&lt;br /&gt;&lt;br /&gt;&lt;?php&lt;br /&gt;phpinfo();&lt;br /&gt;?&gt;&lt;br /&gt;&lt;br /&gt;The phpinfo() function reports the version number, as well as the features that are compiled into PHP. You'll see that info.php4 uses php4 and info.php5 uses php5.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Most of these steps were gleaned from:&lt;br /&gt;&lt;br /&gt;http://www.webhostingtalk.nl/directa...hp5-suphp.html&lt;br /&gt;and&lt;br /&gt;http://www.gsp.com/support/virtual/php/cgi.html&lt;br /&gt;and&lt;br /&gt;http://www.interworx.com/forums/showthread.php?t=1897&lt;br /&gt;&lt;br /&gt;Thank You.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-2293629017835309670?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/2293629017835309670/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=2293629017835309670' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/2293629017835309670'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/2293629017835309670'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2010/01/compling-php4-with-php5-on-plesk.html' title='Compling PHP4 with PHP5 on Plesk'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-3467666442225007394</id><published>2010-01-12T11:22:00.000-08:00</published><updated>2010-01-12T11:25:50.308-08:00</updated><title type='text'>Cannot send emails- RoundCube just shows "Sending Message"</title><content type='html'>I found a problem with Roundcube, it shows sending message and hangs up there and actually it doesn't send message anymore. I found the following solution here.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Problem with Roundcube, installed when updated to newest CURRENT release. - Page 3 - cPanel Forums:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;vi /usr/local/cpanel/base/3rdparty/roundcube/config/main.inc.php&lt;br /&gt;&lt;br /&gt;and changed&lt;br /&gt;&lt;br /&gt;$rcmail_config['smtp_user'] = '%u';&lt;br /&gt;to&lt;br /&gt;$rcmail_config['smtp_user'] = '';&lt;br /&gt;&lt;br /&gt;FIXED....&lt;br /&gt;&lt;br /&gt;Thanks :-)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-3467666442225007394?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/3467666442225007394/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=3467666442225007394' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/3467666442225007394'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/3467666442225007394'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2010/01/cannot-send-emails-roundcube-just-shows.html' title='Cannot send emails- RoundCube just shows &quot;Sending Message&quot;'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-4043473779565523485</id><published>2009-12-30T14:31:00.000-08:00</published><updated>2009-12-30T14:33:50.606-08:00</updated><title type='text'>Changing multiple account ownerships via SSH</title><content type='html'>Issue:&lt;br /&gt;&lt;br /&gt;How to change the ownership of multiple accounts under /home via SSH? The option in WHM is a bit tedious.&lt;br /&gt;&lt;br /&gt;Solution :&lt;br /&gt;&lt;br /&gt;To change the ownership of all accounts to the respective user.user :&lt;br /&gt;&lt;br /&gt;    cd /home&lt;br /&gt;    ls -al | grep root&lt;br /&gt;&lt;br /&gt;    for i in `ls /var/cpanel/users/`; do chown $i:$i /home/$i ; done&lt;br /&gt;    for i in `ls /var/cpanel/users/`; do chown -R $i:$i /home/$i/* ; done&lt;br /&gt;&lt;br /&gt;Then change the ownership of the individual public_htmls to their respective user.nobody:&lt;br /&gt;&lt;br /&gt;    for i in `ls /var/cpanel/users/`; do chown $i:nobody /home/$i/public_html ; done&lt;br /&gt;&lt;br /&gt;Change the permissions for public_htmls to 750:&lt;br /&gt;&lt;br /&gt;    for i in `ls /var/cpanel/users/`; do chmod 750 /home/$i/public_html ; done&lt;br /&gt;&lt;br /&gt;Fix the permissions for mail to work fine:&lt;br /&gt;&lt;br /&gt;    /scripts/mailperm&lt;br /&gt;&lt;br /&gt;Fix the ownership of /home:&lt;br /&gt;&lt;br /&gt;    chown root.root /home&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-4043473779565523485?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/4043473779565523485/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=4043473779565523485' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/4043473779565523485'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/4043473779565523485'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2009/12/changing-multiple-account-ownerships.html' title='Changing multiple account ownerships via SSH'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-3312319742806562469</id><published>2009-12-26T17:03:00.000-08:00</published><updated>2009-12-26T17:04:13.971-08:00</updated><title type='text'>semget: No space left on device</title><content type='html'>Whenever you start Apache, it keeps crashing with error "semget: No space left on device".&lt;br /&gt;&lt;br /&gt;# tail /etc/httpd/logs/error_log&lt;br /&gt;semget: No space left on device&lt;br /&gt;semget: No space left on device&lt;br /&gt;[Wed Sep 12 10:54:27 2007] [warn] pid file /usr/local/apache/logs/httpd.pid overwritten&lt;br /&gt;-- Unclean shutdown of previous Apache run? semget: No space left on device&lt;br /&gt;[Wed Sep 12 10:56:27 2007] [warn] pid file /usr/local/apache/logs/httpd.pid overwritten&lt;br /&gt;-- Unclean shutdown of previous Apache run? semget: No space left on device&lt;br /&gt;[Wed Sep 12 10:58:27 2007] [warn] pid file /usr/local/apache/logs/httpd.pid overwritten&lt;br /&gt;-- Unclean shutdown of previous Apache run? semget: No space left on device&lt;br /&gt;[Wed Sep 12 11:00:27 2007] [warn] pid file /usr/local/apache/logs/httpd.pid overwritten&lt;br /&gt;-- Unclean shutdown of previous Apache run? semget: No space left on device&lt;br /&gt;&lt;br /&gt;If you have similar problem as mine above + if your disk space is nowhere near/above 100% + /var/messages and /usr/local/apache/logs/error_log shows no clue about this problem + any files in /etc/httpd/logs/ and /etc/httpd/domlogs nowhere near/above 2GB in size, its most probably semaphore problem. Use the following script to cure your Apache.&lt;br /&gt;&lt;br /&gt;#!/bin/bash&lt;br /&gt;&lt;br /&gt;ipcs -s | grep nobody | perl -e 'while (&lt;STDIN&gt;) {&lt;br /&gt;@a=split(/\s+/); print `ipcrm sem $a[1]`}'&lt;br /&gt;&lt;br /&gt;/scripts/restartsrv httpd&lt;br /&gt;&lt;br /&gt;Script how to:&lt;br /&gt;- SSH as root to your CPanel server&lt;br /&gt;- Go to root dir&lt;br /&gt;&lt;br /&gt;# cd /root&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;- Create a httpdsemclean.sh blank file&lt;br /&gt;&lt;br /&gt;# pico httpdsemclean.sh&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;- Write above script&lt;br /&gt;- Save&lt;br /&gt;&lt;br /&gt;Ctrl + O&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;- Exit pico&lt;br /&gt;&lt;br /&gt;Ctrl + X&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;- Chmod httpdsemclean.sh to 777&lt;br /&gt;&lt;br /&gt;# chmod 777 httpdsemclean.sh&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;- Execute the script&lt;br /&gt;&lt;br /&gt;./httpdsemclean.sh&lt;br /&gt;&lt;br /&gt;If all goes fine, you'll see something like this:&lt;br /&gt;&lt;br /&gt;...&lt;br /&gt;resource(s) deleted&lt;br /&gt;resource(s) deleted&lt;br /&gt;resource(s) deleted&lt;br /&gt;resource(s) deleted&lt;br /&gt;resource(s) deleted&lt;br /&gt;resource(s) deleted&lt;br /&gt;resource(s) deleted&lt;br /&gt;resource(s) deleted&lt;br /&gt;resource(s) deleted&lt;br /&gt;resource(s) deleted&lt;br /&gt;Waiting for httpd to restart..............finished.&lt;br /&gt;&lt;br /&gt;httpd started ok&lt;br /&gt;&lt;br /&gt;PS: Do this at your own risk, we do not guarantee this will work on all CPanel servers!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-3312319742806562469?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/3312319742806562469/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=3312319742806562469' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/3312319742806562469'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/3312319742806562469'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2009/12/semget-no-space-left-on-device.html' title='semget: No space left on device'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-1457144645776095659</id><published>2009-11-10T16:21:00.001-08:00</published><updated>2009-11-10T16:21:20.010-08:00</updated><title type='text'>sshd has failed, please contact the sysadmin</title><content type='html'>If you have changed the shell default Port 22 on a cPanel powered server , restarting sshd from the WHM will fail. You have to ssh to the server and issue the following command to restart sshd…&lt;br /&gt;&lt;br /&gt;    * /sbin/service sshd restart&lt;br /&gt;&lt;br /&gt;To, temporarily, reset your shell port back to 22, run the following command from the Address field in browser:&lt;br /&gt;&lt;br /&gt;      SERVER_MAIN_IP:2087/scripts2/doautofixer?autofix=safesshrestart&lt;br /&gt;&lt;br /&gt;Now, you should be able to access shell, and you need to restart sshd at the prompt using the command mentioned above&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-1457144645776095659?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/1457144645776095659/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=1457144645776095659' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/1457144645776095659'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/1457144645776095659'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2009/11/sshd-has-failed-please-contact-sysadmin.html' title='sshd has failed, please contact the sysadmin'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-7540871576038352860</id><published>2009-11-10T12:51:00.000-08:00</published><updated>2009-11-10T12:52:21.045-08:00</updated><title type='text'>How To Install RED5 Server on Centos 5.3</title><content type='html'>In this how to i will describe how to install RED5 server on Centos 5.3. This how to can be used to install RED5 server on Centos 4 and Fedora 8 – 11 as well. RED5 is open source flash server written in java supports streaming audio/video, recording client streams, shared objects, live stream publishing etc.&lt;br /&gt;1) Download and Install Java&lt;br /&gt;&lt;br /&gt;RED5 server depends on Java. CentOS 5.3 comes with OpenJDK 1.6 and install it using yum.&lt;br /&gt;&lt;br /&gt;    yum -y install java-1.6.0-openjdk java-1.6.0-openjdk-devel&lt;br /&gt;&lt;br /&gt;2) Download and Install Ant (Apache Project)&lt;br /&gt;&lt;br /&gt;Ant will need to compile RED5 server code. Ant comes in binary form, so just download and install it in /usr/local directory.&lt;br /&gt;&lt;br /&gt;    cd /usr/src&lt;br /&gt;    wget http://opensource.become.com/apache/ant/binaries/apache-ant-1.7.1-bin.tar.gz&lt;br /&gt;    tar zxvf apache-ant-1.7.1-bin.tar.gz&lt;br /&gt;    mv apache-ant-1.7.1/ /usr/local/ant&lt;br /&gt;&lt;br /&gt;3) Export Variables for Ant and Java&lt;br /&gt;&lt;br /&gt;    export ANT_HOME=/usr/local/ant&lt;br /&gt;    export JAVA_HOME=/usr/lib/jvm/java&lt;br /&gt;    export PATH=$PATH:/usr/local/ant/bin&lt;br /&gt;    export CLASSPATH=.:$JAVA_HOME/lib/classes.zip&lt;br /&gt;&lt;br /&gt;Also export these variables in /etc/bashrc to become available for every user login or for any terminal opens.&lt;br /&gt;&lt;br /&gt;    echo ‘export ANT_HOME=/usr/local/ant’ &gt;&gt; /etc/bashrc&lt;br /&gt;    echo ‘export JAVA_HOME=/usr/lib/jvm/java’ &gt;&gt; /etc/bashrc&lt;br /&gt;    echo ‘export PATH=$PATH:/usr/local/ant/bin’ &gt;&gt; /etc/bashrc&lt;br /&gt;    echo ‘export CLASSPATH=.:$JAVA_HOME/lib/classes.zip’ &gt;&gt; /etc/bashrc&lt;br /&gt;&lt;br /&gt;4) Download and Install RED5 Server&lt;br /&gt;&lt;br /&gt;Here the latest version available for RED5 is 0.7 on site but download from google code using svn as the tarball of 0.7 on site is missing some of the files.&lt;br /&gt;&lt;br /&gt;    cd /usr/src&lt;br /&gt;    svn checkout http://red5.googlecode.com/svn/java/server/trunk/ red5&lt;br /&gt;    mv red5 /usr/local/&lt;br /&gt;    cd /usr/local/red5&lt;br /&gt;    ant prepare&lt;br /&gt;    ant dist&lt;br /&gt;&lt;br /&gt;you will see a ton of lines, but you should get at last&lt;br /&gt;&lt;br /&gt;BUILD SUCCESSFUL&lt;br /&gt;&lt;br /&gt;that’s mean its install and now copy the conf directory from dist/ and test the red5 installation.&lt;br /&gt;&lt;br /&gt;    cp -r dist/conf .&lt;br /&gt;    ./red5.sh&lt;br /&gt;&lt;br /&gt;If it shows Installer service created in the last then everything is fine here, press ctrl+c and move to next step to create init script.&lt;br /&gt;5) Init Script&lt;br /&gt;&lt;br /&gt;Now we will create init script for red5 to start, stop and restart easily.&lt;br /&gt;&lt;br /&gt;    vi /etc/init.d/red5&lt;br /&gt;&lt;br /&gt;download http://www.sohailriaz.com/downloads/red5.txt and copy / paste code in it. The init script code also be viewed below.&lt;br /&gt;&lt;br /&gt;    #!/bin/sh&lt;br /&gt;    # For RedHat and cousins:&lt;br /&gt;    # chkconfig: 2345 85 85&lt;br /&gt;    # description: Red5 flash streaming server&lt;br /&gt;    # processname: red5&lt;br /&gt;&lt;br /&gt;    PROG=red5&lt;br /&gt;    RED5_HOME=/usr/local/red5&lt;br /&gt;    DAEMON=$RED5_HOME/$PROG.sh&lt;br /&gt;    PIDFILE=/var/run/$PROG.pid&lt;br /&gt;&lt;br /&gt;    # Source function library&lt;br /&gt;    . /etc/rc.d/init.d/functions&lt;br /&gt;&lt;br /&gt;    [ -r /etc/sysconfig/red5 ] &amp;&amp; . /etc/sysconfig/red5&lt;br /&gt;&lt;br /&gt;    RETVAL=0&lt;br /&gt;&lt;br /&gt;    case “$1″ in&lt;br /&gt;    start)&lt;br /&gt;    echo -n $”Starting $PROG: ”&lt;br /&gt;    cd $RED5_HOME&lt;br /&gt;    $DAEMON &gt;/dev/null 2&gt;/dev/null &amp;&lt;br /&gt;    RETVAL=$?&lt;br /&gt;    if [ $RETVAL -eq 0 ]; then&lt;br /&gt;    echo $! &gt; $PIDFILE&lt;br /&gt;    touch /var/lock/subsys/$PROG&lt;br /&gt;&lt;br /&gt;    fi&lt;br /&gt;    [ $RETVAL -eq 0 ] &amp;&amp; success $”$PROG startup” || failure $”$PROG startup”&lt;br /&gt;    echo&lt;br /&gt;    ;;&lt;br /&gt;    stop)&lt;br /&gt;    echo -n $”Shutting down $PROG: ”&lt;br /&gt;    killproc -p $PIDFILE&lt;br /&gt;    RETVAL=$?&lt;br /&gt;    echo&lt;br /&gt;    [ $RETVAL -eq 0 ] &amp;&amp; rm -f /var/lock/subsys/$PROG&lt;br /&gt;    ;;&lt;br /&gt;    restart)&lt;br /&gt;    $0 stop&lt;br /&gt;    $0 start&lt;br /&gt;    ;;&lt;br /&gt;    status)&lt;br /&gt;    status $PROG -p $PIDFILE&lt;br /&gt;    RETVAL=$?&lt;br /&gt;    ;;&lt;br /&gt;    *)&lt;br /&gt;    echo $”Usage: $0 {start|stop|restart|status}”&lt;br /&gt;    RETVAL=1&lt;br /&gt;    esac&lt;br /&gt;&lt;br /&gt;    exit $RETVAL&lt;br /&gt;&lt;br /&gt;Now start the service&lt;br /&gt;&lt;br /&gt;    /etc/init.d/red5 start&lt;br /&gt;&lt;br /&gt;check status&lt;br /&gt;&lt;br /&gt;    /etc/init.d/red5 status&lt;br /&gt;    red5 (pid  XXXXX) is running…&lt;br /&gt;&lt;br /&gt;again you can do stop, restart.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-7540871576038352860?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/7540871576038352860/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=7540871576038352860' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/7540871576038352860'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/7540871576038352860'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2009/11/how-to-install-red5-server-on-centos-53_10.html' title='How To Install RED5 Server on Centos 5.3'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-7416651944062630276</id><published>2009-11-10T12:46:00.000-08:00</published><updated>2009-11-10T12:48:06.917-08:00</updated><title type='text'>Error:- Missing Dependency: perl(URI) &gt;= 1.17 is needed by package subversion-1.4.2-4.el5_3.1.i386</title><content type='html'>While installing subversion on my CentOS 5.2 64bit OS i got this error&lt;br /&gt;&lt;br /&gt;yum install subversion&lt;br /&gt;Missing Dependency: perl(URI) &gt;= 1.17 is needed by package subversion-1.4.2-4.el5_3.1.i386&lt;br /&gt;&lt;br /&gt;I google the error and found the solution.&lt;br /&gt;&lt;br /&gt;    *&lt;br /&gt;&lt;br /&gt;      Fistly i download perl(URI) which is greater than 1.17. I downloaded perl(URI) 1.35 using the following command&lt;br /&gt;&lt;br /&gt;wget http://yum.trixbox.org/centos/5/RPMS/perl-URI-1.35-3.noarch.rpm&lt;br /&gt;&lt;br /&gt;    *&lt;br /&gt;&lt;br /&gt;      Then i install the perl package by using following command&lt;br /&gt;&lt;br /&gt;rpm -i perl-URI-1.35-3.noarch.rpm&lt;br /&gt;&lt;br /&gt;    *&lt;br /&gt;&lt;br /&gt;      Then i install the subversion by using following command&lt;br /&gt;&lt;br /&gt;yum install subversion&lt;br /&gt;&lt;br /&gt;Now subversion is working fine on my server.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-7416651944062630276?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/7416651944062630276/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=7416651944062630276' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/7416651944062630276'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/7416651944062630276'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2009/11/error-missing-dependency-perluri-117-is.html' title='Error:- Missing Dependency: perl(URI) &gt;= 1.17 is needed by package subversion-1.4.2-4.el5_3.1.i386'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-8019967312878672404</id><published>2009-07-23T18:38:00.000-07:00</published><updated>2009-07-23T19:09:20.977-07:00</updated><title type='text'></title><content type='html'>&lt;meta equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="Word.Document"&gt;&lt;meta name="Generator" content="Microsoft Word 11"&gt;&lt;meta name="Originator" content="Microsoft Word 11"&gt;&lt;link rel="File-List" href="file:///C:%5CDOCUME%7E1%5Csupport%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml"&gt;&lt;link rel="Edit-Time-Data" href="file:///C:%5CDOCUME%7E1%5Csupport%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_editdata.mso"&gt;&lt;!--[if !mso]&gt; &lt;style&gt; v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} &lt;/style&gt; &lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:worddocument&gt;   &lt;w:view&gt;Normal&lt;/w:View&gt;   &lt;w:zoom&gt;0&lt;/w:Zoom&gt;   &lt;w:punctuationkerning/&gt;   &lt;w:validateagainstschemas/&gt;   &lt;w:saveifxmlinvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;   &lt;w:ignoremixedcontent&gt;false&lt;/w:IgnoreMixedContent&gt;   &lt;w:alwaysshowplaceholdertext&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;   &lt;w:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;  &lt;/w:WordDocument&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:latentstyles deflockedstate="false" latentstylecount="156"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Font Definitions */  @font-face 	{font-family:"\0022"; 	panose-1:0 0 0 0 0 0 0 0 0 0; 	mso-font-alt:"Times New Roman"; 	mso-font-charset:0; 	mso-generic-font-family:roman; 	mso-font-format:other; 	mso-font-pitch:auto; 	mso-font-signature:0 0 0 0 0 0;}  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} a:link, span.MsoHyperlink 	{color:blue; 	text-decoration:underline; 	text-underline:single;} a:visited, span.MsoHyperlinkFollowed 	{color:purple; 	text-decoration:underline; 	text-underline:single;} pre 	{margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Courier New"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --&gt; &lt;/style&gt;&lt;!--[if gte mso 10]&gt; &lt;style&gt;  /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} &lt;/style&gt; &lt;![endif]--&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 18pt;"&gt;Here I am specifying the steps which I used to configure remote backups through NFS.&lt;br /&gt;&lt;/span&gt;&lt;span style=""&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 0);"&gt;Task - Configure backup for virtuzzo on backup server.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;First, you have to make the appropriate directories available to nfs by "exporting" them. On the remote server, edit the /etc/exports file to expose the directories you need to the hosts that need to access them. See the man page for exports to find out all your options, but here's a simple example from my setup:&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;Code:&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;div style="border: 1pt inset ; padding: 6pt;"&gt;&lt;pre style="border: medium none ; padding: 0in; overflow: auto; margin-bottom: 12pt;"&gt;&lt;span style="color: rgb(204, 102, 0);"&gt;# /etc/exports&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 0);"&gt;/backup&lt;span style=""&gt;         &lt;/span&gt;192.168.1.0(rw,no_root_squash,async)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 0);"&gt;/backup2&lt;span style=""&gt;        &lt;/span&gt;192.168.1.1(rw,no_root_squash,async)&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;/div&gt;  &lt;p class="MsoNormal"&gt;The /etc/exports file must contain a directory, (in this example the directory being exported is /home), as well as the networks (or hosts) the file system is exported to.&lt;br /&gt;&lt;br /&gt;In this case it's exported a range of hosts in the network 192.168.1.0. Alternately, it could be exported to a single host using the configuration:&lt;br /&gt;&lt;br /&gt;Then go to virtozzo and mount the destination as given below:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;[root@server1]# mount -t nfs 192.168.1.0:/backup2 /vz/backups&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;To check if it is mounted or not you can use&lt;/span&gt;&lt;span style="color: rgb(255, 102, 0);"&gt; showmount -e &lt;/span&gt;&lt;span style="color: black;"&gt;or &lt;/span&gt;&lt;span style="color: rgb(204, 102, 0);"&gt;mount&lt;/span&gt;&lt;span style="color: black;"&gt; command&lt;br /&gt;&lt;br /&gt;Then write /etc/fstab as given below:&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;&lt;br /&gt;198.168.0.1:/backup2 /vz/backup nfs rsize=1024,wsize=1024,noauto 0 0&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;Then restart nfs and portmap on Virtuzzo server&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;[root@server1]# /etc/init.d/portmap restart&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;[root@server1]# /etc/init.d/nfs restart&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;Then go to backup server and check if its mounted on this server as well, &lt;span style="color: black;"&gt;you can use to check it&lt;/span&gt;&lt;span style="color: rgb(255, 102, 0);"&gt; showmount -e &lt;/span&gt;&lt;span style="color: black;"&gt;or &lt;/span&gt;&lt;span style="color: rgb(204, 102, 0);"&gt;mount&lt;/span&gt;&lt;span style="color: black;"&gt; command&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;If everything is ok, fire the command to effect the changes of /etc/exports:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 0);"&gt;[root@backup01 backup2]# exportfs -r&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;and restart both services on this server as well:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;[root@server1]# /etc/init.d/portmap restart&lt;br /&gt;[root@server1]# /etc/init.d/nfs restart&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;That's it, I got it worked. If you have any problem please email me at mayur.c24@gmail.com&lt;br /&gt;&lt;br /&gt;&lt;a href="http://75.125.79.149:2086/cgi/tweakcphulk.cgi"&gt;&lt;b&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;E&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="color: rgb(102, 102, 204);"&gt;nj&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="color: red;"&gt;oy&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="color: rgb(204, 0, 0); text-decoration: none;"&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shapetype id="_x0000_t75" coordsize="21600,21600" spt="75" preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe" filled="f" stroked="f"&gt;  &lt;v:stroke joinstyle="miter"&gt;  &lt;v:formulas&gt;   &lt;v:f eqn="if lineDrawn pixelLineWidth 0"&gt;   &lt;v:f eqn="sum @0 1 0"&gt;   &lt;v:f eqn="sum 0 0 @1"&gt;   &lt;v:f eqn="prod @2 1 2"&gt;   &lt;v:f eqn="prod @3 21600 pixelWidth"&gt;   &lt;v:f eqn="prod @3 21600 pixelHeight"&gt;   &lt;v:f eqn="sum @0 0 1"&gt;   &lt;v:f eqn="prod @6 1 2"&gt;   &lt;v:f eqn="prod @7 21600 pixelWidth"&gt;   &lt;v:f eqn="sum @8 21600 0"&gt;   &lt;v:f eqn="prod @7 21600 pixelHeight"&gt;   &lt;v:f eqn="sum @10 21600 0"&gt;  &lt;/v:formulas&gt;  &lt;v:path extrusionok="f" gradientshapeok="t" connecttype="rect"&gt;  &lt;o:lock ext="edit" aspectratio="t"&gt; &lt;/v:shapetype&gt;&lt;v:shape id="_x0000_i1025" type="#_x0000_t75" alt="Wink" href="http://75.125.79.149:2086/cgi/tweakcphulk.cgi" style="'width:11.25pt;" button="t"&gt;  &lt;v:imagedata src="file:///C:\DOCUME~1\support\LOCALS~1\Temp\msohtml1\01\clip_image001.gif" href="http://linuxblackmagic.com/images/smiles/icon_wink.gif"&gt; &lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;span style=""&gt;&lt;img src="file:///C:/DOCUME%7E1/support/LOCALS%7E1/Temp/msohtml1/01/clip_image001.gif" alt="Wink" shapes="_x0000_i1025" border="0" height="15" width="15" /&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/span&gt;&lt;/b&gt; &lt;/a&gt;&lt;a href="http://75.125.79.149:2086/cgi/tweakcphulk.cgi"&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt; &lt;!--[if !supportLineBreakNewLine]--&gt;&lt;br /&gt; &lt;!--[endif]--&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-8019967312878672404?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/8019967312878672404/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=8019967312878672404' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/8019967312878672404'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/8019967312878672404'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2009/07/v-behaviorurldefaultvml-o.html' title=''/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-5456555013008789463</id><published>2009-07-21T18:32:00.001-07:00</published><updated>2009-07-21T18:32:45.498-07:00</updated><title type='text'>How to set limit to remove the Frozen Maiils Automatically ?</title><content type='html'>&lt;p style="font-weight: bold; color: rgb(255, 102, 0);"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;vi /etc/exim.conf&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-weight: bold; color: rgb(255, 102, 0);"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&lt;span style="color: rgb(255, 153, 0);"&gt;timeout_frozen_after = 8d      ( 8 Days )&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;; font-weight: bold; color: rgb(255, 102, 0);"&gt;/scripts/restartsrv_exim&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;a linkindex="16" href="http://75.125.79.149:2086/cgi/tweakcphulk.cgi"&gt;Thats it &lt;span style="font-weight: bold; color: rgb(204, 0, 0);"&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;E&lt;/span&gt;&lt;span style="color: rgb(102, 102, 204);"&gt;nj&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;oy&lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(204, 0, 0);" class="postbody"&gt;&lt;img src="http://linuxblackmagic.com/images/smiles/icon_wink.gif" alt="Wink" border="0" /&gt;&lt;/span&gt;       &lt;/a&gt;&lt;a linkindex="17" href="http://75.125.79.149:2086/cgi/tweakcphulk.cgi"&gt;&lt;span class="post-comment-link"&gt;&lt;/span&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-5456555013008789463?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/5456555013008789463/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=5456555013008789463' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/5456555013008789463'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/5456555013008789463'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2009/07/how-to-set-limit-to-remove-frozen.html' title='How to set limit to remove the Frozen Maiils Automatically ?'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-7870422733074161473</id><published>2009-07-21T18:27:00.000-07:00</published><updated>2009-07-21T18:29:18.249-07:00</updated><title type='text'>How to remove the blocked ip using iptables</title><content type='html'>&lt;ol style="margin-top: 0in;" start="1" type="1"&gt;&lt;li class="MsoNormal" style=""&gt;First      check that ip is blocked or not&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;iptables      –L –n | grep &lt;/span&gt;&lt;ip&gt;&lt;/ip&gt;&lt;/li&gt;&lt;/ol&gt;  &lt;p class="MsoNormal" style="margin-left: 0.25in;"&gt;DROP&lt;span style=""&gt;       &lt;/span&gt;all&lt;span style=""&gt;  &lt;/span&gt;--&lt;span style=""&gt;  &lt;/span&gt;125.99.10.123&lt;span style=""&gt;        &lt;/span&gt;216.240.157.91&lt;/p&gt;  &lt;ol style="margin-top: 0in;" start="3" type="1"&gt;&lt;li class="MsoNormal" style=""&gt;to      unblock the ip give the command&lt;/li&gt;&lt;/ol&gt;  &lt;p class="MsoNormal"&gt;&lt;span style=""&gt;      &lt;/span&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;iptables -D INPUT -s 125.99.10.123 -d 216.240.157.91 -j DROP&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style=""&gt;     &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style=""&gt;      &lt;/span&gt;Now the ip is unblocked.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;!--[if !supportEmptyParas]--&gt; &lt;!--[endif]--&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;img src="file:///C:/DOCUME%7E1/support/LOCALS%7E1/Temp/moz-screenshot.png" alt="" /&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;img src="file:///C:/DOCUME%7E1/support/LOCALS%7E1/Temp/moz-screenshot-1.png" alt="" /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-7870422733074161473?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/7870422733074161473/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=7870422733074161473' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/7870422733074161473'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/7870422733074161473'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2009/07/how-to-remove-blocked-ip-using-iptables.html' title='How to remove the blocked ip using iptables'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-7589855667794418605</id><published>2009-07-21T12:52:00.000-07:00</published><updated>2009-07-21T13:09:34.901-07:00</updated><title type='text'>Fantastico shows error 'You cannot install more than one script in the root directory of a domain'</title><content type='html'>In order to solve this issue you should follow these steps: &lt;p&gt;1. Log in cPanel and click on File Manager;&lt;/p&gt; &lt;p&gt;2. Navigate to &lt;strong&gt;&lt;em&gt;.fantasticodata&lt;/em&gt;&lt;/strong&gt; in your Home Directory;&lt;/p&gt; &lt;p&gt;3. Delete the file &lt;strong&gt;&lt;em&gt;installed_in_root.php&lt;/em&gt;&lt;/strong&gt;.&lt;/p&gt; &lt;p&gt;This will ensure there is no Fantastico information remaining from previous installations.&lt;/p&gt; &lt;p&gt; &lt;/p&gt; If you have problems with your Fantastico, ask your host for assistance.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_FMGAawamst8/SmYgOg3hOMI/AAAAAAAAABA/UgilI2Xfrjo/s1600-h/mail.gif"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 89px; height: 82px;" src="http://4.bp.blogspot.com/_FMGAawamst8/SmYgOg3hOMI/AAAAAAAAABA/UgilI2Xfrjo/s320/mail.gif" alt="" id="BLOGGER_PHOTO_ID_5361007840144210114" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;img src="file:///E:/Mayur/mail.gif" alt="" /&gt;&lt;br /&gt;- Mayur&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-7589855667794418605?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/7589855667794418605/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=7589855667794418605' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/7589855667794418605'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/7589855667794418605'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2009/07/fantastico-shows-error-you-cannot.html' title='Fantastico shows error &apos;You cannot install more than one script in the root directory of a domain&apos;'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_FMGAawamst8/SmYgOg3hOMI/AAAAAAAAABA/UgilI2Xfrjo/s72-c/mail.gif' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-479372976654406529</id><published>2009-07-15T17:10:00.000-07:00</published><updated>2009-07-15T17:12:14.154-07:00</updated><title type='text'>Named rndc.key error when starting</title><content type='html'>&lt;div class="topContent"&gt;&lt;p&gt;When trying to restart named process after making modifications may end up in a corrupt rndc.key key and the error will show like this: &lt;/p&gt; &lt;p&gt;&lt;coder&gt; &lt;span style="color: rgb(153, 153, 0);"&gt;Sep 12 03:30:54 server named[23683]: /etc/rndc.key:1: configuring key ‘rndc-key’: bad base64 encoding&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(153, 153, 0);"&gt; Sep 12 03:30:54 server named[23683]: loading configuration: bad base64 encoding&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(153, 153, 0);"&gt; Sep 12 03:30:54 server named[23683]: exiting (due to fatal error)&lt;/span&gt;&lt;/coder&gt;&lt;/p&gt; &lt;p style="color: rgb(255, 102, 0);"&gt;A simple explanation to this is that the key got modified somehow might me some bug.&lt;br /&gt;What to do about this? Well it is simple just check the /etc/rndc.conf file and copy the key from there(you will see the key in the first lines of the file) and replace the key that it is in /etc/rndc.key file and restart named process.&lt;/p&gt; &lt;p style="color: rgb(102, 102, 0);"&gt;&lt;coder&gt;&lt;br /&gt;# service named restart&lt;br /&gt;Stopping named:                                            [  OK  ]&lt;br /&gt;Starting named:                                            [  OK  ]&lt;/coder&gt;&lt;/p&gt;&lt;p style="color: rgb(102, 102, 0);"&gt;&lt;a href="http://75.125.79.149:2086/cgi/tweakcphulk.cgi"&gt;Thats it &lt;span style="font-weight: bold; color: rgb(204, 0, 0);"&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;E&lt;/span&gt;&lt;span style="color: rgb(102, 102, 204);"&gt;nj&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;oy&lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(204, 0, 0);" class="postbody"&gt;&lt;img src="http://linuxblackmagic.com/images/smiles/icon_wink.gif" alt="Wink" border="0" /&gt;&lt;/span&gt;       &lt;/a&gt;&lt;a href="http://75.125.79.149:2086/cgi/tweakcphulk.cgi"&gt;&lt;span class="post-comment-link"&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;coder&gt;&lt;/coder&gt;&lt;/p&gt;&lt;p style="color: rgb(102, 102, 0);"&gt;&lt;coder&gt;&lt;br /&gt;&lt;/coder&gt;&lt;/p&gt; &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-479372976654406529?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/479372976654406529/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=479372976654406529' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/479372976654406529'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/479372976654406529'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2009/07/named-rndckey-error-when-starting.html' title='Named rndc.key error when starting'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-7925481747494580793</id><published>2009-07-15T16:45:00.000-07:00</published><updated>2009-07-15T16:59:15.324-07:00</updated><title type='text'>WHM locked out – Brute Force Error</title><content type='html'>&lt;p&gt;&lt;strong&gt;cPHulk Brute Force Protection&lt;/strong&gt; prevents malicious forces from trying to access your server’s services by guessing the login password for that service. BUT sometimes it becomes troublesome when you are accessing the cPanel with incorrect password and cPanel assuming you as attacker blocks you with below message :&lt;/p&gt; &lt;p&gt;—————————————————————————————&lt;br /&gt;&lt;em style="color: rgb(153, 153, 0);"&gt;This account is currently locked out because a brute force attempt was detected. Please wait 10 minutes and try again. Attempting to login again will only increase this delay. If you frequently experience this problem, we recommend having your username changed to something less generic.&lt;/em&gt;&lt;br /&gt;—————————————————————————————&lt;/p&gt; &lt;p&gt;To get out of such situation you can disable cphulkd protection : &lt;/p&gt; &lt;p&gt;login via ssh and disable cphulkd using the command below.&lt;/p&gt;&lt;p style="color: rgb(255, 102, 0);"&gt;root@HOST [~]# /usr/local/cpanel/etc/init/stopcphulkd&lt;/p&gt;&lt;p style="color: rgb(255, 102, 0);"&gt;This should allow you to login to WHM and double check your cphulk settings.&lt;/p&gt;&lt;p style="color: rgb(255, 102, 0);"&gt;You can view IP addresses that have been blocked via the WHM interface: WHM -&gt; Security -&gt; Security Center -&gt; cPHulk Brute Force Protection in the Brutes table. On that screen, you can also customize brute force protection settings.&lt;/p&gt;&lt;p style="color: rgb(255, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt;Then log into your WHM &gt;&gt; &lt;a href="http://75.125.79.149:2086/scripts2/securitycenter" target="mainFrame"&gt;&lt;b class="firstletter"&gt;S&lt;/b&gt;ecurity Center &gt;&gt; &lt;/a&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-size:85%;" &gt;&lt;a href="http://75.125.79.149:2086/cgi/tweakcphulk.cgi"&gt;cPHulk Brute Force Protection &gt;&gt; Flush DB&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="color: rgb(255, 102, 0);"&gt;&lt;span style="color: rgb(0, 0, 0);font-size:85%;" &gt;&lt;a href="http://75.125.79.149:2086/cgi/tweakcphulk.cgi"&gt;Make Sure to restart &lt;/a&gt;&lt;/span&gt;&lt;a href="http://75.125.79.149:2086/cgi/tweakcphulk.cgi"&gt;cphulkd protection from SSH, simply fire the following command&lt;/a&gt;&lt;/p&gt;&lt;p style="color: rgb(0, 0, 0);"&gt;&lt;a href="http://75.125.79.149:2086/cgi/tweakcphulk.cgi"&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;root@HOST [~]# /usr/local/cpanel/etc/init/startcphulkd&lt;br /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style="color: rgb(255, 153, 0);"&gt;Well the other way to this is to remove the IP’s blocked by cPHulk from its database .&lt;/p&gt; &lt;p style="color: rgb(255, 153, 0);"&gt;ssh to the server login as root and type the following at the prompt&lt;/p&gt; &lt;p style="color: rgb(255, 153, 0);"&gt;[root@server:] mysql&lt;/p&gt; &lt;p style="color: rgb(255, 153, 0);"&gt;mysql&gt; use cphulkd;&lt;/p&gt; &lt;p style="color: rgb(255, 153, 0);"&gt;mysql&gt;BACKUP TABLE  brutes TO ‘/path/to/backup/directory’;&lt;/p&gt; &lt;p style="color: rgb(255, 153, 0);"&gt;mysql&gt; SELECT * FROM brutes WHERE `IP`=’xxx.xxx.xxx.xxx’;&lt;/p&gt; &lt;p style="color: rgb(255, 153, 0);"&gt;mysql&gt; DELETE FROM brutes WHERE `IP`=’xxx.xxx.xxx.xxx’;&lt;/p&gt; &lt;p style="color: rgb(255, 153, 0);"&gt;mysql&gt;quit&lt;/p&gt;&lt;p style="color: rgb(0, 0, 0);"&gt;&lt;a href="http://75.125.79.149:2086/cgi/tweakcphulk.cgi"&gt;Thats it &lt;span style="font-weight: bold; color: rgb(204, 0, 0);"&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;E&lt;/span&gt;&lt;span style="color: rgb(102, 102, 204);"&gt;nj&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;oy&lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(204, 0, 0);" class="postbody"&gt;&lt;img src="http://linuxblackmagic.com/images/smiles/icon_wink.gif" alt="Wink" border="0" /&gt;&lt;/span&gt;       &lt;span class="post-comment-link"&gt; &lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;pre style="margin-top: 0pt; display: inline;"&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-7925481747494580793?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/7925481747494580793/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=7925481747494580793' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/7925481747494580793'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/7925481747494580793'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2009/07/whm-locked-out-brute-force-error.html' title='WHM locked out – Brute Force Error'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-285496756442765216</id><published>2009-07-15T15:01:00.000-07:00</published><updated>2009-08-01T16:08:22.917-07:00</updated><title type='text'>Installing PDFLib on PHP 5</title><content type='html'>PDFlib was removed awhile back for PHP5 because the newer versions have different licenses and we wanted to avoid any possible problems. The PHP4 version is still old so it's available in EasyApache, but of course I don't recommend PHP4 since it's not supported by the PHP developers anymore.&lt;br /&gt;&lt;br /&gt;So if you want to install it, it will have to be outside of EasyApache. Here's how you could do it:&lt;br /&gt;&lt;br /&gt;# wget http://www.pdflib.com/binaries/PDFlib/704/PDFlib-Lite-7.0.4p4.tar.gz&lt;br /&gt;# tar -zxvf PDFlib-Lite-7.0.4p4.tar.gz&lt;br /&gt;# cd PDFlib-Lite-7.0.4p4&lt;br /&gt;# ./configure --without-java&lt;br /&gt;# make &amp;&amp; make install&lt;br /&gt;&lt;br /&gt;Then build PHP with pdflib support.&lt;br /&gt;&lt;br /&gt;# echo '--with-pdflib' &gt;&gt; '/var/cpanel/easy/apache/rawopts/all_php5'&lt;br /&gt;# /scripts/easyapache --build&lt;br /&gt;&lt;br /&gt;Finally, make sure pdflib is enabled as an extension in php.ini; add:&lt;br /&gt;&lt;br /&gt;extension=pdf.so&lt;br /&gt;&lt;br /&gt;to /usr/local/lib/php.ini and restart apache. Then it will show up. I have already done this for you as a courtesy&lt;br /&gt;&lt;br /&gt;Thats it EnjoyWink&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-285496756442765216?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/285496756442765216/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=285496756442765216' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/285496756442765216'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/285496756442765216'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2009/07/installing-pdflib-on-php-5.html' title='Installing PDFLib on PHP 5'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-4029322738342434036</id><published>2009-06-23T13:12:00.000-07:00</published><updated>2009-06-23T13:16:21.208-07:00</updated><title type='text'>How to install Zend Optimizer on Plesk or on any plain server?</title><content type='html'>Here are the most  simple steps to install &lt;b&gt;ZendOptimizer-3.0.1 on Plesk&lt;/b&gt;:&lt;br /&gt;&lt;br /&gt;&lt;div style="margin: 5px 20px 20px;"&gt;  &lt;div class="smallfont" style="margin-bottom: 2px;"&gt;Code:&lt;/div&gt;  &lt;pre class="alt2" dir="ltr" style="border: 1px inset ; margin: 0px; padding: 6px; overflow: auto; width: 640px; height: 114px; text-align: left;"&gt;cd /usr/local/src&lt;br /&gt;wget http://www.eth0.us/files/ZendOptimizer-3.0.1-linux-glibc21-i386.tar.gz&lt;br /&gt;tar -zxf ZendOptimizer-3.0.1-linux-glibc21-i386.tar.gz&lt;br /&gt;cd ZendOptimizer-3.0.1-linux-glibc21-i386&lt;br /&gt;./install&lt;/pre&gt; &lt;/div&gt;Now just hit enter a few times until it is done...&lt;br /&gt;&lt;br /&gt;Make sure that above lines are exist in /etc/php.ini&lt;br /&gt;&lt;br /&gt;&lt;div style="margin: 5px 20px 20px;"&gt;  &lt;div class="smallfont" style="margin-bottom: 2px;"&gt;Quote:&lt;/div&gt;  &lt;table width="100%" border="0" cellpadding="6" cellspacing="0"&gt;  &lt;tbody&gt;&lt;tr&gt;   &lt;td class="alt2" style="border: 1px inset ;"&gt;         zend.ini section looks like this,&lt;br /&gt;[Zend]&lt;br /&gt;zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.3.0&lt;br /&gt;zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.0&lt;br /&gt;zend_optimizer.version=3.3.0a&lt;br /&gt;zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so&lt;br /&gt;zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so       &lt;/td&gt;  &lt;/tr&gt;  &lt;/tbody&gt;&lt;/table&gt; &lt;/div&gt;then restart apache service&lt;br /&gt;&lt;div style="margin: 5px 20px 20px;"&gt;  &lt;div class="smallfont" style="margin-bottom: 2px;"&gt;Quote:&lt;/div&gt;  &lt;table width="100%" border="0" cellpadding="6" cellspacing="0"&gt;  &lt;tbody&gt;&lt;tr&gt;   &lt;td class="alt2" style="border: 1px inset ;"&gt;         /sbin/service httpd restart       &lt;/td&gt;  &lt;/tr&gt;  &lt;/tbody&gt;&lt;/table&gt; &lt;/div&gt;verified output&lt;br /&gt;&lt;div style="margin: 5px 20px 20px;"&gt;  &lt;div class="smallfont" style="margin-bottom: 2px;"&gt;Quote:&lt;/div&gt;  &lt;table width="100%" border="0" cellpadding="6" cellspacing="0"&gt;  &lt;tbody&gt;&lt;tr&gt;   &lt;td class="alt2" style="border: 1px inset ;"&gt;         [root@&lt;a href="http://www.eukhost.com/vps-hosting.php" target="_blank"&gt;VPS Hosting&lt;/a&gt; ~]# php -v&lt;br /&gt;PHP 5.1.6 (cli) (built: May  9 2007 11:29:06)&lt;br /&gt;Copyright (c) 1997-2006 The PHP Group&lt;br /&gt;Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies&lt;br /&gt;   with the ionCube PHP Loader v3.1.28, Copyright (c) 2002-2007, by ionCube Ltd., and&lt;br /&gt;   with Zend Extension Manager v1.2.2, Copyright (c) 2003-2007, by Zend Technologies&lt;br /&gt;   with Zend Optimizer v3.3.0, Copyright (c) 1998-2007, by Zend Technologies&lt;br /&gt;[root@&lt;a href="http://www.eukhost.com/vps-hosting.php" target="_blank"&gt;VPS Hosting&lt;/a&gt; ~]#       &lt;/td&gt;  &lt;/tr&gt;  &lt;/tbody&gt;&lt;/table&gt; &lt;/div&gt;Now everything works, and Zend is properly displayed in php.ini  &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(204, 0, 0);"&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;E&lt;/span&gt;&lt;span style="color: rgb(102, 102, 204);"&gt;nj&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;oy&lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(204, 0, 0);" class="postbody"&gt;&lt;img src="http://linuxblackmagic.com/images/smiles/icon_wink.gif" alt="Wink" border="0" /&gt;&lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(204, 0, 0);"&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;&lt;/span&gt;&lt;/span&gt; &lt;span style="font-weight: bold; color: rgb(204, 0, 0);" class="post-comment-link"&gt;&lt;/span&gt; &lt;span class="post-comment-link"&gt;&lt;/span&gt;     &lt;span class="post-comment-link"&gt; &lt;/span&gt;&lt;pre style="margin-top: 0pt; display: inline;"&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-4029322738342434036?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/4029322738342434036/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=4029322738342434036' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/4029322738342434036'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/4029322738342434036'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2009/06/how-to-install-zend-optimizer-on-plesk.html' title='How to install Zend Optimizer on Plesk or on any plain server?'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-7753372509635231384</id><published>2009-06-13T13:11:00.000-07:00</published><updated>2009-06-13T13:17:41.831-07:00</updated><title type='text'>R=central_filter T=**bypassed**</title><content type='html'>Recently I got very interesting issue and it took very long time to figure our. The problem was I was able to send/receive email to other accounts but not able to send/receive to my own account means test@test.com to test@test.com. Here is what I was getting in error logs (Cpanel server).&lt;br /&gt;&lt;br /&gt;gin:test@test.com S=789 id=63311.122.252.239.20.1239477600.squirrel@test.com&lt;br /&gt;2009-04-11 14:20:00 1LsikC-00037z-NP =&gt; /dev/null &lt;test@test.com&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(204, 0, 0);"&gt;R=central_filter T=**bypassed**&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Then here is what I found in cpanel forums:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 51, 0);"&gt;central_filter refers to the email filters you've set up in cPanel - stored in /etc/vfilters/&lt;domain&gt;. Looks like you've got a filter set up to drop certain emails.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;Then I renamed my domain name files in &lt;/span&gt;&lt;span style="color: rgb(0, 51, 0);"&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;/etc/vfilters/ and I got this fixed, hope this will help you&lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(0, 51, 0);"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(204, 0, 0);"&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;E&lt;/span&gt;&lt;span style="color: rgb(102, 102, 204);"&gt;nj&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;oy&lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(204, 0, 0);" class="postbody"&gt;&lt;img src="http://linuxblackmagic.com/images/smiles/icon_wink.gif" alt="Wink" border="0" /&gt;&lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(204, 0, 0);"&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;&lt;/span&gt;&lt;/span&gt; &lt;span style="font-weight: bold; color: rgb(204, 0, 0);" class="post-comment-link"&gt;&lt;/span&gt; &lt;span class="post-comment-link"&gt;&lt;/span&gt;     &lt;span class="post-comment-link"&gt; &lt;/span&gt;&lt;pre style="margin-top: 0pt; display: inline;"&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-7753372509635231384?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/7753372509635231384/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=7753372509635231384' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/7753372509635231384'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/7753372509635231384'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2009/06/rcentralfilter-tbypassed.html' title='R=central_filter T=**bypassed**'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-1328315512958732670</id><published>2009-06-13T13:09:00.000-07:00</published><updated>2009-06-13T13:11:17.432-07:00</updated><title type='text'>R=virtual_user_spam T=virtual_userdelivery_spam</title><content type='html'>If you are not able to receive emails and getting the errors   &lt;span style="color: rgb(204, 0, 0);"&gt;" R=virtual_user_spam T=virtual_userdelivery_spam"&lt;/span&gt; in error logs then simply disable the spamassasin and check, your issue should be fixed.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(204, 0, 0);"&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;E&lt;/span&gt;&lt;span style="color: rgb(102, 102, 204);"&gt;nj&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;oy&lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(204, 0, 0);" class="postbody"&gt;&lt;img src="http://linuxblackmagic.com/images/smiles/icon_wink.gif" alt="Wink" border="0" /&gt;&lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(204, 0, 0);"&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;&lt;/span&gt;&lt;/span&gt; &lt;span style="font-weight: bold; color: rgb(204, 0, 0);" class="post-comment-link"&gt;&lt;/span&gt; &lt;span class="post-comment-link"&gt;&lt;/span&gt;     &lt;span class="post-comment-link"&gt; &lt;/span&gt;&lt;pre style="margin-top: 0pt; display: inline;"&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-1328315512958732670?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/1328315512958732670/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=1328315512958732670' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/1328315512958732670'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/1328315512958732670'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2009/06/rvirtualuserspam-tvirtualuserdeliverysp.html' title='R=virtual_user_spam T=virtual_userdelivery_spam'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-6329545625791661404</id><published>2009-06-13T12:56:00.000-07:00</published><updated>2009-06-13T12:58:30.947-07:00</updated><title type='text'>Complile PHP with imap on directadmin server</title><content type='html'>Trying to add --with-imap to your configure.php5 ?&lt;br /&gt;and getting this error?&lt;br /&gt;&lt;br /&gt;configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing&lt;br /&gt;&lt;br /&gt;Solution (worked for me, this was a dovecot machine):&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;# yum install libc-client&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;# yum install libc-client-devel&lt;/span&gt;&lt;br /&gt;Then add following lines in&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(153, 0, 0);"&gt;nano /usr/local/directadmin/custombuild/configure/ap2/configure.php5&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 51, 0);"&gt;--with-imap=/usr/lib/dovecot/imap \&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 51, 0);"&gt;--with-imap-ssl \ &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;to: configure.php5&lt;br /&gt;&lt;br /&gt;# &lt;span style="color: rgb(153, 0, 0);"&gt;cd /usr/local/directadmin/custombuild/configure/ap2&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;# &lt;span style="color: rgb(153, 0, 0);"&gt;./build php y&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 0, 0);"&gt;Tada!&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-6329545625791661404?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/6329545625791661404/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=6329545625791661404' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/6329545625791661404'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/6329545625791661404'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2009/06/complile-php-with-imap-on-directadmin.html' title='Complile PHP with imap on directadmin server'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-2125878646855102439</id><published>2009-05-16T22:09:00.000-07:00</published><updated>2009-06-13T13:06:27.782-07:00</updated><title type='text'>Fantastico Issues</title><content type='html'>&lt;span style="font-weight: bold;"&gt;First of all here are the steps to install &lt;span style="color: rgb(204, 0, 0);"&gt;Fantastico&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;If the Fantastico install option is not available, you will need to manually download Fantastico onto your VPS.&lt;br /&gt;&lt;ol&gt;&lt;li style="color: rgb(0, 51, 0);"&gt;Connect to your VPS using an SSH connection.&lt;/li&gt;&lt;li style="color: rgb(0, 51, 0);"&gt;Log in as the Administrator user.&lt;/li&gt;&lt;li style="color: rgb(0, 51, 0);"&gt;Change to the proper cgi folder using the following command:&lt;br /&gt;&lt;code style="color: rgb(204, 0, 0);"&gt;cd /usr/local/cpanel/whostmgr/docroot/cgi&lt;/code&gt;  &lt;/li&gt;&lt;li style="color: rgb(0, 51, 0);"&gt;Download the Fantastico install file using the following command:&lt;br /&gt;&lt;code style="color: rgb(204, 0, 0);"&gt;wget http://www.netenberg.com/files/free/fantastico_whm_admin.tgz&lt;/code&gt;  &lt;/li&gt;&lt;li style="color: rgb(0, 51, 0);"&gt;Extract the install file using the following command:&lt;br /&gt;&lt;code style="color: rgb(204, 0, 0);"&gt;tar -xzpf fantastico_whm_admin.tgz&lt;/code&gt;  &lt;/li&gt;&lt;li style="color: rgb(0, 51, 0);"&gt;Remove the install file using the following command:&lt;br /&gt;&lt;code style="color: rgb(204, 0, 0);"&gt;rm -rf fantastico_whm_admin.tgz&lt;/code&gt;  &lt;/li&gt;&lt;li style="color: rgb(0, 51, 0);"&gt;Log out of the SSH connection.&lt;/li&gt;&lt;li style="color: rgb(0, 51, 0);"&gt;Log out and log back into cPanel in a web browser.&lt;/li&gt;&lt;li&gt;&lt;span style="color: rgb(0, 51, 0);"&gt;From the menu, under &lt;/span&gt;&lt;strong style="color: rgb(0, 51, 0);"&gt;Plugins&lt;/strong&gt;&lt;span style="color: rgb(0, 51, 0);"&gt;, click &lt;/span&gt;&lt;strong style="color: rgb(0, 51, 0);"&gt;Fantastico De Luxe WHM Admin&lt;/strong&gt;&lt;span style="color: rgb(51, 51, 0);"&gt; &lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="color: rgb(51, 51, 0);"&gt;&lt;span style="color: rgb(0, 51, 0);"&gt;(located atthe bottom).&lt;/span&gt;&lt;/span&gt;   &lt;img src="http://www.hostmysite.com/support/cpanelvps/installfantastico/images/installfantastico1.gif" /&gt;  &lt;/li&gt;&lt;li&gt;&lt;a href="http://www.hostmysite.com/support/cpanelvps/installfantastico/#continueinstall"&gt;Continue the install&lt;/a&gt; &lt;span style="color: rgb(0, 51, 0);"&gt;using the steps above.&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt; &lt;!-- end maincontent --&gt;  &lt;div class="column span-8 last"&gt;&lt;div&gt;&lt;form method="get" action="http://search.hostmysite.com/search"&gt; &lt;input name="site" value="my_collection" type="hidden"&gt;         &lt;input name="client" value="my_collection" type="hidden"&gt;         &lt;input name="proxystylesheet" value="my_collection" type="hidden"&gt;         &lt;input name="output" value="xml_no_dtd" type="hidden"&gt;        &lt;input name="restrict" value="Articles" type="hidden"&gt;        &lt;/form&gt;      &lt;/div&gt;    &lt;/div&gt;&lt;br /&gt;Recently I got too many issue while installing fantastico. Here is one of them. If you get the message &lt;span style="font-weight: bold;"&gt;"you have not installed fantastico yet"&lt;/span&gt; even after installing it then the issue is probably with wget version. Here is the steps to update wget:&lt;br /&gt;&lt;br /&gt;Login as a root in ssh and fire the following commands:&lt;br /&gt;&lt;br /&gt;&lt;b&gt;For 32-bit:&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;rpm -qa wget ;&lt;br /&gt;&lt;div class="code"&gt;&lt;pre style="margin-top: 0pt; display: inline;"&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;wget ftp://ftp.funet.fi/pub/mirrors/ftp.redhat.com/pub/&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;fedora/linux/core/5/i386/os/Fedora/RPMS/&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;wget-1.10.2-3.2.1.i386.rpm&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;chattr -ia /usr/bin/wget&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;rpm -e wget ;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;rpm -ivh --force wget-1.10.2-3.2.1.i386.rpm ;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;rpm -qa wget ;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;For 64-bit:&lt;br /&gt;&lt;/b&gt;&lt;i&gt;Leaving your OS default wget installed and install a fresh copy for Fantastico at /usr/local/bin/wget&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div class="codeheader"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="code"&gt;&lt;pre style="margin-top: 0pt; display: inline;"&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;cd &lt;/span&gt;&lt;i style="color: rgb(204, 0, 0);"&gt;&lt;i&gt;/usr/local/bin/&lt;/i&gt;&lt;/i&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;&lt;br /&gt;wget http://ftp.gnu.org/gnu/wget/wget-latest.tar.gz&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;tar xfz wget-latest.tar.gz&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;cd wget-*&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;./configure&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;make&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;make test&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;make install&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;cd ../&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;rm -Rf wget-*&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;This will install a clean copy of wget on your server at /usr/local/bin/wget and you will just need to change the path of wget to /usr/local/bin/wget&lt;br /&gt;&lt;br /&gt;for the errors in cpanel &gt;&gt; fantastico just run &lt;span style="color: rgb(204, 0, 0);"&gt;/scripts/makecpphp&lt;/span&gt; and the errors should be gone.&lt;br /&gt;&lt;br /&gt;Thats it.&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(204, 0, 0);"&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;E&lt;/span&gt;&lt;span style="color: rgb(102, 102, 204);"&gt;nj&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;oy&lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(204, 0, 0);" class="postbody"&gt;&lt;img src="http://linuxblackmagic.com/images/smiles/icon_wink.gif" alt="Wink" border="0" /&gt;&lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(204, 0, 0);"&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;&lt;/span&gt;&lt;/span&gt; &lt;span style="font-weight: bold; color: rgb(204, 0, 0);" class="post-comment-link"&gt;&lt;/span&gt; &lt;span class="post-comment-link"&gt;&lt;/span&gt;     &lt;span class="post-comment-link"&gt; &lt;/span&gt;&lt;pre style="margin-top: 0pt; display: inline;"&gt;&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-2125878646855102439?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/2125878646855102439/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=2125878646855102439' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/2125878646855102439'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/2125878646855102439'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2009/05/fantastico-issues.html' title='Fantastico Issues'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-464805022737221780</id><published>2009-04-04T23:53:00.000-07:00</published><updated>2009-07-16T16:39:03.837-07:00</updated><title type='text'>WGET with FTP</title><content type='html'>&lt;span style="font-weight: bold;"&gt;Here  are some useful commands to download data from an account which is exist on different server.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0); font-weight: bold;"&gt;wget ftp://username:password@ftp.domainname.com * -r&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;For exa : wget ftp://test:celita0201@ftp.domainname.com * -r&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;OR&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0); font-weight: bold;"&gt;wget ftp://ftp.domainname.com/* --ftp-user=username  --ftp-pass=password -r&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;wget ftp://ftp.domainname.com/* --ftp-user=test@domainname.com  --ftp-pass=neHGyxhjr -r&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(204, 0, 0);"&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;E&lt;/span&gt;&lt;span style="color: rgb(102, 102, 204);"&gt;nj&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;oy&lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(204, 0, 0);" class="postbody"&gt;&lt;img src="http://linuxblackmagic.com/images/smiles/icon_wink.gif" alt="Wink" border="0" /&gt;&lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(204, 0, 0);"&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;&lt;/span&gt;&lt;/span&gt; &lt;span style="font-weight: bold; color: rgb(204, 0, 0);" class="post-comment-link"&gt;&lt;/span&gt; &lt;span class="post-comment-link"&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-464805022737221780?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/464805022737221780/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=464805022737221780' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/464805022737221780'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/464805022737221780'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2009/04/wget-with-ftp.html' title='WGET with FTP'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-465907616568318574</id><published>2009-04-04T22:58:00.000-07:00</published><updated>2009-04-04T23:15:24.301-07:00</updated><title type='text'>Useful IPTABLES Commands</title><content type='html'>&lt;span style="font-weight: bold; color: rgb(102, 51, 51);"&gt;TO OPEN OR CLOSE PORTS:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Before using commands for opening the port please make sure the specific port is already opened and what is the use of that port.&lt;br /&gt;&lt;br /&gt;you can verify the port with&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;netstat -nap | grep : &lt;port&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;1.you can open OR block TCp port with following syntax&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;iptables -A INPUT  -p tcp –dport &lt;port&gt; -j ACCEPT&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;iptables -A INPUT  -p tcp –dport &lt;port&gt; -j DROP &lt;/span&gt;- to block the port&lt;br /&gt;&lt;br /&gt;2. You can open UDP port with&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;iptables -A INPUT -p udp –sport &lt;port&gt;  -j ACCEPT &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;iptables -A INPUT -p udp –sport &lt;port&gt;  -j DROP&lt;/span&gt; - to block the port&lt;br /&gt;&lt;br /&gt;after that&lt;br /&gt;&lt;br /&gt;3 &lt;span style="color: rgb(204, 0, 0);"&gt;service iptables save&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(102, 51, 51);"&gt;TO allow or block IPs:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;iptables -A INPUT -s &lt;&gt; -j ACCEPT&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;iptables -A INPUT -s &lt;&gt; -j DROP&lt;/span&gt; - to block the IP&lt;br /&gt;&lt;br /&gt;Make sure to save IPtables if you did changes in IPtables&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(102, 51, 51);"&gt;Usefull Options&lt;/span&gt;&lt;br /&gt;Either long or short options are allowed.&lt;br /&gt;  --append  &lt;span style="font-weight: bold; color: rgb(204, 0, 0);"&gt;-A&lt;/span&gt; chain            Append to chain&lt;br /&gt;  --delete  &lt;span style="font-weight: bold;"&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;-D&lt;/span&gt; &lt;/span&gt;chain            Delete matching rule from chain&lt;br /&gt;  --delete  &lt;span style="font-weight: bold; color: rgb(204, 0, 0);"&gt;-D&lt;/span&gt; chain rulenum&lt;br /&gt;                                Delete rule rulenum (1 = first) from chain&lt;br /&gt;  --insert  &lt;span style="font-weight: bold; color: rgb(204, 0, 0);"&gt;-I&lt;/span&gt; chain [rulenum]&lt;br /&gt;                                Insert in chain as rulenum (default 1=first)&lt;br /&gt;  --replace &lt;span style="font-weight: bold; color: rgb(204, 0, 0);"&gt;-R&lt;/span&gt; chain rulenum&lt;br /&gt;                                Replace rule rulenum (1 = first) in chain&lt;br /&gt;  --list    &lt;span style="font-weight: bold; color: rgb(204, 0, 0);"&gt;-L&lt;/span&gt; [chain]          List the rules in a chain or all chains&lt;br /&gt;  --flush   &lt;span style="font-weight: bold; color: rgb(204, 0, 0);"&gt;-F&lt;/span&gt; [chain]          Delete all rules in  chain or all chains&lt;br /&gt;  --zero    &lt;span style="font-weight: bold; color: rgb(204, 0, 0);"&gt;-Z&lt;/span&gt; [chain]          Zero counters in chain or all chains&lt;br /&gt;  --new    &lt;span style="color: rgb(204, 0, 0);"&gt; &lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(204, 0, 0);"&gt;-N&lt;/span&gt; chain            Create a new user-defined chain&lt;br /&gt;  --delete-chain&lt;br /&gt;            &lt;span style="font-weight: bold; color: rgb(204, 0, 0);"&gt;-X&lt;/span&gt; [chain]          Delete a user-defined chain&lt;br /&gt;  --policy &lt;span style="font-weight: bold;"&gt; &lt;span style="color: rgb(204, 0, 0);"&gt;-P&lt;/span&gt;&lt;/span&gt; chain target&lt;br /&gt;                                Change policy on chain to target&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;service iptables save&lt;/span&gt; - To save IPtables&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;service iptables restart &lt;/span&gt;- To restart the IPtables firewall.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(204, 0, 0);"&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;E&lt;/span&gt;&lt;span style="color: rgb(102, 102, 204);"&gt;nj&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;oy&lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(204, 0, 0);" class="postbody"&gt;&lt;img src="http://linuxblackmagic.com/images/smiles/icon_wink.gif" alt="Wink" border="0" /&gt;&lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(204, 0, 0);"&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;&lt;/span&gt;&lt;/span&gt; &lt;span style="font-weight: bold; color: rgb(204, 0, 0);" class="post-comment-link"&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-465907616568318574?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/465907616568318574/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=465907616568318574' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/465907616568318574'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/465907616568318574'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2009/04/useful-iptables-commands.html' title='Useful IPTABLES Commands'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-7523711045321815890</id><published>2009-04-04T22:48:00.000-07:00</published><updated>2009-07-15T17:04:18.495-07:00</updated><title type='text'>Shorthand at the Linux Command Prompt</title><content type='html'>&lt;span style="color: rgb(255, 153, 0);"&gt; Some of these are specific to the bash shell. I have not experimented enough with other shells to know which are common to all shells. See also the ``Bash Reference Card'', SSC (2000), available online.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 0);"&gt;    * / - root directory&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 0);"&gt;    * ./ - current directory&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 0);"&gt;    * ./command_name - run a command in the current directory when the current directory is not on the path&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 0);"&gt;    * ../ - parent directory&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 0);"&gt;    * ~ - home directory&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 0);"&gt;    * $ - typical prompt when logged in as ordinary user&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 0);"&gt;    * # - typical prompt when logged in as root or superuser&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 0);"&gt;    * ! - repeat specified command&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 0);"&gt;    * !! - repeat previous command&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 0);"&gt;    * ^^ - repeat previous command with substitution&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 0);"&gt;    * &amp;amp; - run a program in background mode&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 0);"&gt;    * [Tab][Tab] - prints a list of all available commands. This is just an example of autocomplete with no restriction on the first letter.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 0);"&gt;    * x[Tab][Tab] - prints a list of all available completions for a command, where the beginning is ``x''&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 0);"&gt;    * [Alt][Ctrl][F1] - switch to the first virtual text console&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 0);"&gt;    * [Alt][Ctrl][Fn] - switch to the nth virtual text console. Typically, there are six on a Linux PC system.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 0);"&gt;    * [Alt][Ctrl][F7] - switch to the first GUI console, if there is one running. If the graphical console freezes, one can switch to a nongraphical console, kill the process that is giving problems, and switch back to the graphical console using this shortcut.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 0);"&gt;    * [ArrowUp] - scroll through the command history (in bash)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 0);"&gt;    * [Shift][PageUp] - scroll terminal output up. This also works at the login prompt, so you can scroll through your boot messages.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 0);"&gt;    * [Shift][PageDown] - scroll terminal output down&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 0);"&gt;    * [Ctrl][Alt][+] - switch to next X server resolution (if the server is set up for more than one resolution)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 0);"&gt;    * [Ctrl][Alt][-] - change to previous X server resolution&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 0);"&gt;    * [Ctrl][Alt][BkSpc] - kill the current X server. Used when normal exit is not possible.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 0);"&gt;    * [Ctrl][Alt][Del] - shut down the system and reboot&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 0);"&gt;    * [Ctrl]c - kill the current process&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 0);"&gt;    * [Ctrl]d - logout from the current terminal&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 0);"&gt;    * [Ctrl]s - stop transfer to current terminal&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 0);"&gt;    * [Ctrl]q - resume transfer to current terminal. This should be tried if the terminal stops responding.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 0);"&gt;    * [Ctrl]z - send current process to the background&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 0);"&gt;    * reset - restore a terminal to its default settings&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 0);"&gt;    * [Leftmousebutton] - Hold down left mouse button and drag to highlight text. Releasing the button copies the region to the text buffer under X and (if gpm is installed) in console mode.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 0);"&gt;    * [Middlemousebutton] - Copies text from the text buffer and inserts it at the cursor location. With a two-button mouse, click on both buttons simultaneously. It is necessary for three-button emulation to be enabled, either under gpm or in XF86Config. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 153, 0);"&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;E&lt;/span&gt;&lt;span style="color: rgb(102, 102, 204);"&gt;nj&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;oy&lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(255, 153, 0);" class="postbody"&gt;&lt;img src="http://linuxblackmagic.com/images/smiles/icon_wink.gif" alt="Wink" border="0" /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-7523711045321815890?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/7523711045321815890/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=7523711045321815890' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/7523711045321815890'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/7523711045321815890'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2009/04/shorthand-at-linux-command-prompt.html' title='Shorthand at the Linux Command Prompt'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-8842838230061622749</id><published>2009-04-01T16:35:00.000-07:00</published><updated>2009-04-01T16:36:27.656-07:00</updated><title type='text'>How to Set Maximum Emails Per Hour for Particular Domain</title><content type='html'>Its quite well known to all that in server's WHM, there is an option that allows you to set the Maximum amount of emails a domain can send per hour, which is a great way of reducing spam/mass emailing. This feature is located in the Server Configuration option, under Tweak Settings option, under the emails listing. The option looks like as follows:&lt;br /&gt;&lt;br /&gt;&lt;div style="margin: 5px 20px 20px;"&gt;  &lt;div class="smallfont" style="margin-bottom: 2px;"&gt;Code:&lt;/div&gt;  &lt;pre class="alt2" dir="ltr" style="border: 1px inset ; margin: 0px; padding: 6px; overflow: auto; width: 640px; height: 34px; text-align: left; color: rgb(204, 0, 0);"&gt;The maximum each domain can send out per hour (0 is unlimited)&lt;/pre&gt; &lt;/div&gt;Alternatively, you can change the default maximum emails per hour by updating the file via SSH accessing the server.&lt;br /&gt;&lt;br /&gt;&lt;div style="margin: 5px 20px 20px;"&gt;  &lt;div class="smallfont" style="margin-bottom: 2px;"&gt;Code:&lt;/div&gt;  &lt;pre class="alt2" dir="ltr" style="border: 1px inset ; margin: 0px; padding: 6px; overflow: auto; width: 640px; height: 34px; text-align: left; color: rgb(204, 0, 0);"&gt;[root@server ~]#vi /var/cpanel/maxemailsperhour&lt;/pre&gt; &lt;/div&gt;What if you or your clients want to send emails more than the default server side settings for specific domains...&lt;img src="http://www.eukhost.com/forums/images/smilies/36.gif" alt="" title="stuck" class="inlineimg" border="0" /&gt;&lt;br /&gt;&lt;br /&gt;Yes its possible, though its &lt;b&gt;NOT ALLOWED&lt;/b&gt; and never been done on &lt;b&gt;Shared Hosting&lt;/b&gt; and &lt;b&gt;Reseller Hosting&lt;/b&gt;.&lt;br /&gt;&lt;br /&gt;However, it's possible to customize such setting on VPS hosting/Semi-dedicated hosting/Dedicated hosting ...!&lt;br /&gt;&lt;br /&gt;Here we go for the same.... &lt;img src="http://www.eukhost.com/forums/images/smilies/smile.gif" alt="" title="smile" class="inlineimg" border="0" /&gt;&lt;br /&gt;&lt;br /&gt;Make sure you login as root in server, then run the following command which will open a blank text editor, with only the following entered inside of it:&lt;br /&gt;&lt;div style="margin: 5px 20px 20px;"&gt;  &lt;div class="smallfont" style="margin-bottom: 2px;"&gt;Code:&lt;/div&gt;  &lt;pre class="alt2" dir="ltr" style="border: 1px inset ; margin: 0px; padding: 6px; overflow: auto; width: 640px; height: 50px; text-align: left; color: rgb(204, 0, 0);"&gt;[root@server ~]# vi /var/cpanel/maxemails&lt;br /&gt;# If you update this file you must run /scripts/build_maxemails_config&lt;/pre&gt; &lt;/div&gt;Go ahead and type the following (Enter domain name for what you need):domain.com=value (Where it says value, enter the number of maximum emails that particular domain can send) say for example:&lt;br /&gt;&lt;div style="margin: 5px 20px 20px;"&gt;  &lt;div class="smallfont" style="margin-bottom: 2px;"&gt;Code:&lt;/div&gt;  &lt;pre class="alt2" dir="ltr" style="border: 1px inset ; margin: 0px; padding: 6px; overflow: auto; width: 640px; height: 82px; text-align: left; color: rgb(204, 0, 0);"&gt;[root@server ~]# vi /var/cpanel/maxemails&lt;br /&gt;# If you update this file you must run /scripts/build_maxemails_config&lt;br /&gt;emails.com=500&lt;br /&gt;domain.net=1000&lt;/pre&gt; &lt;/div&gt;Now, as per the original document stated, we’re going to have to run a command before the actual changes take effect. So after successfully exiting the text editor, go ahead and type the following:&lt;br /&gt;&lt;div style="margin: 5px 20px 20px;"&gt;  &lt;div class="smallfont" style="margin-bottom: 2px;"&gt;Code:&lt;/div&gt;  &lt;pre class="alt2" dir="ltr" style="border: 1px inset ; margin: 0px; padding: 6px; overflow: auto; width: 640px; height: 34px; text-align: left; color: rgb(204, 0, 0);"&gt;[root@server ~]#/scripts/build_maxemails_config&lt;/pre&gt; &lt;/div&gt;After this command, you should be ready to go! Although it doesn’t appear to do anything, it sure makes those changes happen.&lt;br /&gt;&lt;br /&gt;A file automatically get created under the directory [var/cpanel/maxemailsperdomain/]with the email value you've set for those particular domains.&lt;br /&gt;Just to check, type the following which should return the value that you entered in the previous file.&lt;br /&gt;&lt;div style="margin: 5px 20px 20px;"&gt;  &lt;div class="smallfont" style="margin-bottom: 2px;"&gt;Code:&lt;/div&gt;  &lt;pre class="alt2" dir="ltr" style="border: 1px inset ; margin: 0px; padding: 6px; overflow: auto; width: 640px; height: 50px; text-align: left; color: rgb(204, 0, 0);"&gt;[root@server ~]#cat /var/cpanel/maxemailsperdomain/emails.com&lt;br /&gt;500&lt;/pre&gt; &lt;/div&gt;Congratulations.. You have done it.. !&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;span style="color:Red;"&gt;Important::&lt;/span&gt;&lt;/b&gt; Make sure that you are not setting the number of emails for your domains to a very high value as it might blacklist your server IP address to some email service providers like Yahoo, Hotmail, AOL etc..&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;E&lt;/span&gt;&lt;span style="color: rgb(102, 102, 204);"&gt;nj&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;oy&lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="postbody"&gt;&lt;img src="http://linuxblackmagic.com/images/smiles/icon_wink.gif" alt="Wink" border="0" /&gt;&lt;/span&gt;&lt;!-- / message --&gt;                          &lt;!-- edit note --&gt;         &lt;pre&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-8842838230061622749?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/8842838230061622749/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=8842838230061622749' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/8842838230061622749'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/8842838230061622749'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2009/04/how-to-set-maximum-emails-per-hour-for.html' title='How to Set Maximum Emails Per Hour for Particular Domain'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-5547380607036410167</id><published>2009-04-01T16:31:00.000-07:00</published><updated>2009-04-01T16:33:49.971-07:00</updated><title type='text'>Change Linux timezone</title><content type='html'>Select the method as per your Linux distribution:&lt;br /&gt;If you are using Fedora / RHEL / Cent OS Linux&lt;br /&gt;Type the redhat-config-date command at the command line to start the time and date properties tool.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;# redhat-config-date&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;OR type setup and select time zone configuration (good for remote ssh text based Linux server sessiob)&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;# setup&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Now, just follow on screen instructions to change timezone&lt;br /&gt;&lt;br /&gt;Set timezone using /etc/localtime configuration file [any Linux distro]&lt;br /&gt;&lt;br /&gt;Often /etc/localtime is a symlink to the file localtime or to the correct time zone file in the system time zone directory.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 102, 0);"&gt;Generic procedure to change timezone&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Change directory to /etc&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;# cd /etc&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Create a symlink to file localtime:&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;# ln -sf /usr/share/zoneinfo/EST localtime&lt;/span&gt;&lt;br /&gt;OR some distro use /usr/share/zoneinfo/dirname/zonefile format (Red hat and friends)&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;# ln -sf /usr/share/zoneinfo/EST localtime&lt;/span&gt;&lt;br /&gt;OR if you want to set up it to IST (Asia/Calcutta):&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;# ln -sf /usr/share/zoneinfo/Asia/Calcutta localtime&lt;/span&gt;&lt;br /&gt;Please mote that in above example you need to use directory structure i.e. if you want to set the timezone to Calcutta (India) which is located in the Asia directory you will then have to setup using as above.&lt;br /&gt;&lt;br /&gt;Use date command to verify that your timezone is changed:&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;$ date&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;Output:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Tue Aug 27 14:46:08 EST 2006&lt;br /&gt;&lt;br /&gt;Use of environment variable&lt;br /&gt;You can use TZ environment variable to display date and time according to your timezone:&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;$ export TZ=America/Los_Angeles&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;$ date&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre style="color: rgb(204, 0, 0);"&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;E&lt;/span&gt;&lt;span style="color: rgb(102, 102, 204);"&gt;nj&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;oy&lt;/span&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;:)&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-5547380607036410167?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/5547380607036410167/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=5547380607036410167' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/5547380607036410167'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/5547380607036410167'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2009/04/change-linux-timezone.html' title='Change Linux timezone'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-6985650267228689418</id><published>2009-04-01T16:15:00.000-07:00</published><updated>2009-04-01T16:17:48.751-07:00</updated><title type='text'>Horde Webmail Fatal Error</title><content type='html'>If you are receiving the following error code while Horde webmail login.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;span style="color:Red;"&gt;Error::&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;div style="margin: 5px 20px 20px;"&gt;  &lt;div class="smallfont" style="margin-bottom: 2px;"&gt;Code:&lt;/div&gt;  &lt;pre class="alt2" dir="ltr" style="border: 1px inset ; margin: 0px; padding: 6px; overflow: auto; width: 640px; height: 50px; text-align: left; color: rgb(102, 0, 0);"&gt;Horde "A fatal error has occurred Could not connect to database for SQL&lt;br /&gt;SessionHandler. Details have been logged for the administrator"&lt;/pre&gt; &lt;/div&gt;&lt;b&gt;&lt;span style="color:SeaGreen;"&gt;&lt;span style="color:SeaGreen;"&gt;Solution::&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;NOTE:&lt;/b&gt; You can fix it only if you have a root user privileges which means this will be helpful for VPS , Semi-dedicated Servers and Dedicated servers.&lt;br /&gt;&lt;br /&gt;1. Check the Horde webmail configuration file&lt;br /&gt;&lt;div style="margin: 5px 20px 20px;"&gt;  &lt;div class="smallfont" style="margin-bottom: 2px;"&gt;Code:&lt;/div&gt;  &lt;pre class="alt2" dir="ltr" style="border: 1px inset ; margin: 0px; padding: 6px; overflow: auto; width: 640px; height: 34px; text-align: left; color: rgb(204, 0, 0);"&gt;#vi /usr/local/cpanel/base/horde/config/conf.php&lt;/pre&gt; &lt;/div&gt;2. You can find the following entry in the conf.php&lt;br /&gt;&lt;div style="margin: 5px 20px 20px;"&gt;  &lt;div class="smallfont" style="margin-bottom: 2px;"&gt;Code:&lt;/div&gt;  &lt;pre class="alt2" dir="ltr" style="border: 1px inset ; margin: 0px; padding: 6px; overflow: auto; width: 640px; height: 98px; text-align: left; color: rgb(204, 0, 0);"&gt;$conf['sql']['hostspec'] = 'localhost';&lt;br /&gt;$conf['sql']['username'] = 'horde';&lt;br /&gt;$conf['sql']['password'] = '';&lt;br /&gt;$conf['sql']['protocol'] = 'tcp';&lt;br /&gt;$conf['sql']['database'] = 'horde';&lt;/pre&gt; &lt;/div&gt;3. Try to connect the database horde using the following method&lt;br /&gt;#&lt;span style="color: rgb(0, 0, 0);"&gt;mysql -uhorde -p&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;You should obtain the Error.&lt;br /&gt;&lt;div style="margin: 5px 20px 20px;"&gt;  &lt;div class="smallfont" style="margin-bottom: 2px;"&gt;Code:&lt;/div&gt;  &lt;pre class="alt2" dir="ltr" style="border: 1px inset ; margin: 0px; padding: 6px; overflow: auto; width: 640px; height: 50px; text-align: left; color: rgb(204, 0, 0);"&gt;"ERROR 1045 (28000): Access denied for user&lt;br /&gt;'horde'@'localhost' (using password: YES)"&lt;/pre&gt; &lt;/div&gt;4. Grant the privilege to the database using the mysql command prompt&lt;br /&gt;&lt;div style="margin: 5px 20px 20px;"&gt;  &lt;div class="smallfont" style="margin-bottom: 2px;"&gt;Code:&lt;/div&gt;  &lt;pre class="alt2" dir="ltr" style="border: 1px inset ; margin: 0px; padding: 6px; overflow: auto; width: 640px; height: 34px; text-align: left; color: rgb(204, 0, 0);"&gt;#mysql&gt; grant all privileges on horde.* to horde@localhost identified by '';&lt;/pre&gt; &lt;/div&gt;You can now login into the Horde Webmail now..!!!&lt;br /&gt;&lt;br /&gt;Second solution is that, You can also try checking configuration file /etc/my.cnf and remove skip-innodb if its in there. Restart mysql service to ensure that the error has been fixed and Horde Webmail login works..&lt;br /&gt;&lt;br /&gt;Another solution is to repair the table named "SessionHandler" in Horde Database from mysql command Prompt as follows.&lt;br /&gt;&lt;br /&gt;&lt;div style="margin: 5px 20px 20px;"&gt;  &lt;div class="smallfont" style="margin-bottom: 2px;"&gt;Code:&lt;/div&gt;  &lt;pre class="alt2" dir="ltr" style="border: 1px inset ; margin: 0px; padding: 6px; overflow: auto; width: 640px; height: 66px; text-align: left; color: rgb(204, 0, 0);"&gt;#mysql&lt;br /&gt;#mysql&gt; use horde;&lt;br /&gt;#mysql&gt; repair table horde_sessionhandler;&lt;/pre&gt; &lt;/div&gt;These Fixes must fix your Horde webmail login problem.. &lt;img src="http://www.eukhost.com/forums/images/smilies/cool.gif" alt="" title="Cool" class="inlineimg" border="0" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;E&lt;/span&gt;&lt;span style="color: rgb(102, 102, 204);"&gt;nj&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;oy&lt;/span&gt;&lt;/span&gt;&lt;span class="postbody"&gt;&lt;img src="http://linuxblackmagic.com/images/smiles/icon_wink.gif" alt="Wink" border="0" /&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;&lt;/span&gt;&lt;/span&gt; &lt;span class="post-comment-link"&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-6985650267228689418?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/6985650267228689418/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=6985650267228689418' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/6985650267228689418'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/6985650267228689418'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2009/04/horde-webmail-fatal-error.html' title='Horde Webmail Fatal Error'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-5715822304099640236</id><published>2009-04-01T16:02:00.000-07:00</published><updated>2009-04-01T16:04:22.305-07:00</updated><title type='text'>Stats without login to cpanel</title><content type='html'>Using following method you can access your webalizer stats without login to cPanel&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;# cd /home/&lt;username&gt;/public_html&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt; # ln -s ../tmp/webalizer stats&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt; # chown username.username stats&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt; # cd ../tmp&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt; # chmod 755 ./webalizer&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;It will allow yourdomain.com/stats/ for viewing stats without logging in to cpanel&lt;br /&gt;Its applicable for Webalizers stats only.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;E&lt;/span&gt;&lt;span style="color: rgb(102, 102, 204);"&gt;nj&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;oy&lt;/span&gt;&lt;/span&gt;&lt;span class="postbody"&gt;&lt;img src="http://linuxblackmagic.com/images/smiles/icon_wink.gif" alt="Wink" border="0" /&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-5715822304099640236?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/5715822304099640236/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=5715822304099640236' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/5715822304099640236'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/5715822304099640236'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2009/04/stats-without-login-to-cpanel.html' title='Stats without login to cpanel'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-2751289036171385050</id><published>2009-04-01T15:52:00.000-07:00</published><updated>2009-04-01T15:59:31.306-07:00</updated><title type='text'>How to Check Memory Usage on Linux Servers.</title><content type='html'>&lt;b&gt;Memory&lt;/b&gt; &lt;span style="color: rgb(51, 51, 0);"&gt;&lt;span style="color: rgb(102, 51, 0);"&gt;is one of the most important resource components on a server to ensure that process run smooth and fast. Thus, the availability of physical memory for any server is very important, especially for high load web host server which runs database server such as Oracle or MySQL, which require high memory utilization for smooth running. Linux [CentOS] which is popular on cPanel and Plesk web hosting server, comes with several commands and tools to check memory usage on server&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;b&gt;1. &lt;span style="color: rgb(0, 102, 0);"&gt;meminfo&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;span style="color: rgb(153, 0, 0);"&gt;"/proc/meminfo" contain all your memory usage information when you type: &lt;/span&gt;&lt;br /&gt;&lt;b style="color: rgb(204, 0, 0);"&gt;cat /proc/meminfo&lt;/b&gt;&lt;br /&gt;you will get an out of your server memory info, below is an example of meminfo.&lt;br /&gt;&lt;br /&gt;&lt;img src="http://www.trulymanaged.com/images/memory-2.PNG" alt="" border="0" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;2. &lt;span style="color: rgb(0, 102, 0);"&gt;Using free Command&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;span style="color: rgb(153, 0, 0);"&gt;free displays the total amount of free and used physical and swap memory in the system, as well as the buffers used by the kernel.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0); font-weight: bold;"&gt;free -m   &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(153, 0, 0);"&gt;The command will display information about physical memory in MB.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(204, 0, 0);"&gt;free -m -t&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(153, 0, 0);"&gt;Same with “free -m”, but -t switch will display a line containing the totals of physical memory and swap space.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(204, 0, 0);"&gt;free -m -s 10&lt;/span&gt;&lt;br /&gt;The command will display memory status in megabytes on terminal with continuous polling delay at 10 seconds,You can specify any number for delay.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;img src="http://www.trulymanaged.com/images/memory-1.PNG" alt="" border="0" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;3. &lt;span style="color: rgb(0, 102, 0);"&gt;Using vmstat Command&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(153, 0, 0);"&gt;vmstat reports information about processes, memory, paging, block IO, traps, and cpu activity. The command will display report based on averages since last reboot.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;Syntax of vmstat&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;vmstat -[options] [delay count]&lt;br /&gt;&lt;br /&gt;vmstat 10&lt;br /&gt;The command will pool average system resources usage level for a sampling period of 10 seconds at interval of 10 seconds, except the first result that is averages since the last reboot.&lt;br /&gt;If no delay is specified, only one report is printed with the average values since boot.&lt;br /&gt;&lt;br /&gt;&lt;img src="http://www.trulymanaged.com/images/memory-3.PNG" alt="" border="0" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;4. &lt;span style="color: rgb(0, 102, 0);"&gt;Using top Command&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;Syntax of top&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(204, 0, 0);"&gt;top&lt;/span&gt;&lt;br /&gt;Using top is very simple, Just type "top" at command shell [without ""], it constantly update stats page will be shown.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0); font-weight: bold;"&gt;top -d 2&lt;/span&gt;&lt;br /&gt;Same as "top", but "-d" used to Specifies the delay between screen updates after 2 sec.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;5. &lt;span style="color: rgb(0, 153, 0);"&gt;Using ps Command&lt;/span&gt; &lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;Syntax of ps aux&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(204, 0, 0);"&gt;ps -aux  &lt;/span&gt;&lt;br /&gt;aux is the options for ps command to see every process on the system.&lt;br /&gt;&lt;br /&gt;To see only the memory resources occupied by each category of processes, such as Apache httpd, MySQL mysqld or Java, use the following command:&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;ps aux | awk '{print $4"\t"$11}' | sort | uniq -c | awk '{print $2" "$1" "$3}' | sort -nr&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;E&lt;/span&gt;&lt;span style="color: rgb(102, 102, 204);"&gt;nj&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;oy&lt;/span&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;:)&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-2751289036171385050?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/2751289036171385050/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=2751289036171385050' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/2751289036171385050'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/2751289036171385050'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2009/04/how-to-check-memory-usage-on-linux.html' title='How to Check Memory Usage on Linux Servers.'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-923268501341710243</id><published>2009-04-01T15:27:00.000-07:00</published><updated>2009-04-01T15:38:31.793-07:00</updated><title type='text'>How to change exim default port</title><content type='html'>Well, I think there is no need to tell you that why some time we have to change default port (25) for exim so I directly come to the point instead of bla..bla..blaaaa..&lt;br /&gt;&lt;br /&gt;For cpanel server:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;You can run exim on another port by going to the 'Service Manager' in WebHost Manager and then enabling 'exim on another port' and choosing the port number.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;For another servers:&lt;br /&gt;&lt;br /&gt;Just add this first line to /etc/exim.conf  and both 25 and 26 will work as smtp ports.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt; daemon_smtp_ports = 25 : 26&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt; acl_smtp_rcpt = check_recipient&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt; acl_smtp_data = check_message&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Restart exim. Thats it&lt;span class="postbody"&gt;&lt;img src="http://linuxblackmagic.com/images/smiles/icon_wink.gif" alt="Wink" border="0" /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;E&lt;/span&gt;&lt;span style="color: rgb(102, 102, 204);"&gt;nj&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;oy&lt;/span&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;:)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;&lt;span style="font-family: monospace;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-923268501341710243?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/923268501341710243/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=923268501341710243' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/923268501341710243'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/923268501341710243'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2009/04/how-to-change-exim-default-port.html' title='How to change exim default port'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-387037486696376483</id><published>2009-04-01T15:08:00.001-07:00</published><updated>2009-04-01T15:09:39.682-07:00</updated><title type='text'>Cpanel Icon Missing From WHM List Accounts.</title><content type='html'>&lt;div id="post_message_41158"&gt;        &lt;b&gt;&lt;span style="color:Red;"&gt;Problem&lt;/span&gt; :-&lt;/b&gt;&lt;br /&gt;Cpanel Icon Missing From WHM List Accounts.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;span style="color:Blue;"&gt;Cause &lt;/span&gt;:-&lt;/b&gt;&lt;br /&gt;Following option selected in &lt;span style="font-weight: bold;"&gt;WHM &gt;&gt; Tweak Settings&lt;/span&gt;&lt;br /&gt;&lt;div style="margin: 5px 20px 20px;"&gt;  &lt;div class="smallfont" style="margin-bottom: 2px;"&gt;Quote:&lt;/div&gt;  &lt;table border="0" cellpadding="6" cellspacing="0" width="100%"&gt;  &lt;tbody&gt;&lt;tr&gt;   &lt;td class="alt2" style="border: 1px inset ;"&gt; &lt;span style="color: rgb(204, 0, 0);"&gt;Disable login with root or reseller password into the users’ cPanel interface. Also disable switch account dropdown in themes with switch account feature &lt;/span&gt;&lt;/td&gt;  &lt;/tr&gt;  &lt;/tbody&gt;&lt;/table&gt; &lt;/div&gt;&lt;b&gt;&lt;span style="color:Green;"&gt;Solution&lt;/span&gt; :-&lt;/b&gt;&lt;br /&gt;You need to uncheck the following option in &lt;b&gt;WHM&lt;/b&gt; &gt;&gt; &lt;b&gt;Tweak Settings&lt;/b&gt; under &lt;b&gt;System&lt;/b&gt; tab&lt;br /&gt;&lt;div style="margin: 5px 20px 20px;"&gt;  &lt;div class="smallfont" style="margin-bottom: 2px;"&gt;Quote:&lt;/div&gt;  &lt;table border="0" cellpadding="6" cellspacing="0" width="100%"&gt;  &lt;tbody&gt;&lt;tr&gt;   &lt;td class="alt2" style="border: 1px inset ;"&gt; &lt;span style="color: rgb(204, 0, 0);"&gt;Disable login with root or reseller password into the users’ cPanel interface. Also disable switch account dropdown in themes with switch account feature&lt;/span&gt; &lt;/td&gt;  &lt;/tr&gt;  &lt;/tbody&gt;&lt;/table&gt; &lt;/div&gt;Save the changes, now you will be able to see an Icon of cPanel in WHM List Accounts. &lt;img src="http://www.eukhost.com/forums/images/smilies/smile.gif" alt="" title="smile" class="inlineimg" border="0" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;E&lt;/span&gt;&lt;span style="color: rgb(102, 102, 204);"&gt;nj&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;oy&lt;/span&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;:)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;  &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-387037486696376483?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/387037486696376483/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=387037486696376483' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/387037486696376483'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/387037486696376483'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2009/04/cpanel-icon-missing-from-whm-list.html' title='Cpanel Icon Missing From WHM List Accounts.'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-2563144547979078300</id><published>2009-03-30T19:25:00.000-07:00</published><updated>2009-03-30T19:41:06.291-07:00</updated><title type='text'>Disabling direct root login</title><content type='html'>&lt;span class="postbody"&gt;Inorder to disable direct root login on a linux server, you need to do the following thing:&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="postbody"&gt;1. &lt;span style="font-weight: bold; color: rgb(204, 0, 0);"&gt;vi /etc/ssh/sshd_config&lt;/span&gt; in that file make &lt;br /&gt;   Permitrootlogin no  then save it&lt;br /&gt;&lt;br /&gt;2. Restart sshd service&lt;br /&gt;    &lt;span style="font-weight: bold; color: rgb(204, 0, 0);"&gt;/etc/init.d/sshd restart&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;3. Now create a new user and set password for that user.&lt;br /&gt;&lt;br /&gt;4. Add that user to the wheel group&lt;br /&gt;   &lt;span style="font-weight: bold; color: rgb(204, 0, 0);"&gt;vi /etc/groups&lt;/span&gt;   // add that user to the group of wheel&lt;br /&gt;&lt;br /&gt;5. Now logon to the server using the username and password and then do       &lt;br /&gt;   &lt;span style="font-weight: bold;"&gt;su -&lt;/span&gt;   and provide the root password&lt;br /&gt;&lt;br /&gt;       &lt;br /&gt;&lt;br /&gt;             Inorder to work this properly you should have the following permission settings&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(204, 0, 0);"&gt;chmod 4755 /bin/su&lt;br /&gt;chmod 1700 /etc/passwd&lt;br /&gt;chmod 1700 /etc/shadow&lt;br /&gt;chmod 1755 /etc/groups&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;   If there is anything wrong with this permission, you may get permission denied or incorrect password errors.&lt;br /&gt; &lt;img src="http://linuxblackmagic.com/images/smiles/icon_wink.gif" alt="Wink" border="0" /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;&lt;span style="font-family: monospace;"&gt;&lt;br /&gt;&lt;/span&gt;E&lt;/span&gt;&lt;span style="color: rgb(102, 102, 204);"&gt;nj&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;oy&lt;/span&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;:)&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-2563144547979078300?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/2563144547979078300/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=2563144547979078300' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/2563144547979078300'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/2563144547979078300'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2009/03/disabling-direct-root-login.html' title='Disabling direct root login'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-1020567062267320115</id><published>2009-03-30T18:56:00.000-07:00</published><updated>2009-03-30T19:10:25.313-07:00</updated><title type='text'>RSYNC</title><content type='html'>&lt;span class="postbody"&gt;rsync utility is used for synchronising files one of the major adavantage of rsync is that rsync can preserve permissions and ownership information, copy symbolic links, and generally is designed to intelligently handle your files&lt;br /&gt;&lt;br /&gt;The basic syntax for rsync is simple enough -- just run &lt;br /&gt;&lt;span style="font-weight: bold;"&gt;rsync [options] source destination&lt;/span&gt;&lt;span style="color: red;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;If you want to rsync the contents from /home/mabin/ to /var/www/html/ the command &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;rsync -a /home/mabin /var/www/html&lt;/span&gt;&lt;span style="color: red;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: green;"&gt; &lt;span style="color: rgb(204, 0, 0);"&gt;Whe doing rsync there is a big meaning in the ending '/' because if I rsync /home/mabin/ then only the contents inside the folder mabin will be copied.....but if didn't used the '/' ie /home/mabin then the entire directory will be taken ..that is a directory named mabin will be created at the destination&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;some switches with rsync&lt;br /&gt;-----------------------------&lt;br /&gt;&lt;span style="color: red;"&gt;&lt;span style="font-weight: bold;"&gt;-a&lt;/span&gt; &lt;/span&gt;--&gt; archive option, which actually combines several rsync options. It combines the recursive and copy symlinks options, preserves group and owner, and generally makes rsync suitable for making archive copies. Note that it doesn't preserve hardlinks&lt;br /&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;&lt;span style="font-weight: bold;"&gt;-H &lt;/span&gt;&lt;/span&gt;--&gt; Copies hard link&lt;br /&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;&lt;span style="font-weight: bold;"&gt;-v &lt;/span&gt;&lt;/span&gt;--&gt; verbose mode&lt;br /&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;&lt;span style="font-weight: bold;"&gt;-z&lt;/span&gt;&lt;/span&gt; --&gt; Compress option, will compress the data during transfer&lt;br /&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;&lt;span style="font-weight: bold;"&gt;--delete&lt;/span&gt;&lt;/span&gt; --&gt; For deleting the already transferred data from source (a dangerous option, try to avoid it)&lt;br /&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;&lt;span style="font-weight: bold;"&gt;--exclude=".*/"&lt;/span&gt;&lt;/span&gt; --&gt; To avoid copying hidden files. With this option you can avoid copying any particular file( If you dont want to copy .php files then pot it like this --exclude="*.php/"&lt;br /&gt;&lt;br /&gt;sample command for local copying&lt;br /&gt;----------------------------------------&lt;br /&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;&lt;span style="font-weight: bold;"&gt;rsync -avh /home/mabin/ /var/www/html&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="color: blue;"&gt;Rsync for remote copying&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;------------------------------------------------------------&lt;br /&gt;&lt;span style="color: red;"&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;rsync -avhe ssh /home/user/dir/ &lt;a href="mailto:user@remote.host.com"&gt;user@remote.host.com&lt;/a&gt;:dir/&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;  If you want to know how fast the transfer is going use the --progress option&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;rsync --progress -avhe ssh /home/user/dir/ &lt;a href="mailto:user@remote.host.com"&gt;user@remote.host.com&lt;/a&gt;:dir/&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;pre style="color: rgb(204, 0, 0);"&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;E&lt;/span&gt;&lt;span style="color: rgb(102, 102, 204);"&gt;nj&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;oy&lt;/span&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;:)&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-1020567062267320115?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/1020567062267320115/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=1020567062267320115' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/1020567062267320115'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/1020567062267320115'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2009/03/rsync.html' title='RSYNC'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-1918738732847945326</id><published>2009-03-30T16:04:00.000-07:00</published><updated>2009-03-30T16:07:17.492-07:00</updated><title type='text'>Roundcube installation on cPanel server</title><content type='html'>&lt;p&gt;1-Login to the server as root and run the following:&lt;/p&gt; &lt;pre style="color: rgb(204, 0, 0);"&gt;cd /usr/local/cpanel/base&lt;br /&gt;wget http://dfn.dl.sourceforge.net/sourceforge/roundcubemail/roundcubemail-0.1.1.tar.gz&lt;br /&gt;tar -zxvf roundcubemail-0.1.1.tar.gz&lt;br /&gt;rm -rf roundcubemail-0.1.1.tar.gz&lt;br /&gt;mv -f roundcubemail-0.1.1 roundcube&lt;br /&gt;chown root.root -R roundcube&lt;br /&gt;cd roundcube&lt;br /&gt;chmod -R 777 temp&lt;br /&gt;chmod -R 777 logs&lt;br /&gt;mysql -e “CREATE DATABASE roundcube;” -pDATABASEPASSWORD&lt;br /&gt;mysql -e “use roundcube; source SQL/mysql.initial.sql;” -pDATABASEPASSWORD&lt;br /&gt;cd config&lt;br /&gt;mv db.inc.php.dist db.inc.php&lt;br /&gt;mv main.inc.php.dist main.inc.php&lt;/pre&gt; &lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt;Replace &lt;strong&gt;DATABASEPASSWORD&lt;/strong&gt; with your server MySQL root password&lt;/p&gt; &lt;p&gt;2-Open db.inc.php with Pico&lt;/p&gt; &lt;p style="color: rgb(204, 0, 0);"&gt;pico db.inc.php&lt;/p&gt; &lt;p&gt;Find this line in the file using (Ctrl+w)&lt;/p&gt; &lt;p class="green"&gt;&lt;em&gt;$rcmail_config['db_dsnw'] = ‘mysql://roundcube:pass@localhost/roundcubemail’;&lt;/em&gt;&lt;/p&gt; &lt;p&gt;Replace the line above with the following line:&lt;/p&gt; &lt;p&gt;$rcmail_config['db_dsnw'] = ‘mysql://root:DATABASEPASSWORD@localhost/roundcube’;&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Note&lt;/strong&gt;:Replace &lt;strong&gt;DATABASEPASSWORD&lt;/strong&gt; with MySQL server root password&lt;/p&gt; &lt;p&gt;save and close.&lt;/p&gt; &lt;p&gt;3-Open main.inc.php with pico&lt;/p&gt; &lt;p style="color: rgb(204, 0, 0);"&gt;pico main.inc.php&lt;/p&gt; &lt;p&gt;find the following lines in the file and edit their values as the following:&lt;/p&gt; &lt;p&gt;$rcmail_config['enable_caching'] = FALSE;&lt;br /&gt;$rcmail_config['default_host'] = ‘localhost’;&lt;br /&gt;$rcmail_config['enable_spellcheck'] = FALSE;&lt;br /&gt;Save and close&lt;/p&gt; &lt;p&gt;&lt;em&gt;&lt;/em&gt;&lt;/p&gt; &lt;p&gt;4-There are some changes need to be done in index.php file, instead of telling you what to find, add or remove, I have made a ready to made index.php file for you to use and you are done.&lt;/p&gt; &lt;p&gt;You can get the index.php file by running the following command lines:&lt;/p&gt; &lt;p&gt;&lt;span style="color: rgb(51, 51, 153);"&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;cd /usr/local/cpanel/base/roundcube&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt; wget http://www.2mhostblog.com/rc.1.1.tar&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt; rm -f index.php&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt; tar -xf rc.1.1.tar&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt; rm -f rc.1.1.tar&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;5-Finally, restart your cpanel service&lt;/p&gt; &lt;span style="color: rgb(204, 0, 0);"&gt;service cpanel restart&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;pre style="color: rgb(204, 0, 0);"&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;E&lt;/span&gt;&lt;span style="color: rgb(102, 102, 204);"&gt;nj&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;oy&lt;/span&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;:)&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-1918738732847945326?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/1918738732847945326/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=1918738732847945326' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/1918738732847945326'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/1918738732847945326'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2009/03/roundcube-installation-on-cpanel-server.html' title='Roundcube installation on cPanel server'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-1897252728707193609</id><published>2009-03-30T15:51:00.000-07:00</published><updated>2009-03-30T16:00:50.014-07:00</updated><title type='text'>Installing Subversion Using yum on CentOS 5</title><content type='html'>Is is very simple, you can install it by using yum. But I found most of the time it is not as simple as we assume.&lt;br /&gt;&lt;br /&gt;While attempting to install Subversion via yum today, I received the following error:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;[root@sXXX ~]# yum install subversion&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;Loading “installonlyn” plugin&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;Setting up Install Process&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;Setting up repositories&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;extras 100% |=========================| 1.1 kB 00:00&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;updates 100% |=========================| 951 B 00:00&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;bla..bla..:)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;bla..:)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;bla..:)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;Error: Missing Dependency: perl(URI) &gt;= 1.17 is needed by package subversion&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Steps to resolve this:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 0, 0);"&gt;#wget http://yum.trixbox.org/centos/5/RPMS/perl-URI-1.35-3.noarch.rpm &lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 0, 0);"&gt;#rpm -i perl-URI-1.35-3.noarch.rpm&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 0, 0);"&gt;#yum install subversion&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;That's it.&lt;br /&gt;&lt;br /&gt;&lt;pre style="color: rgb(204, 0, 0);"&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;E&lt;/span&gt;&lt;span style="color: rgb(102, 102, 204);"&gt;nj&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;oy&lt;/span&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;:)&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-1897252728707193609?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/1897252728707193609/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=1897252728707193609' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/1897252728707193609'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/1897252728707193609'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2009/03/installing-subversion-using-yum-on.html' title='Installing Subversion Using yum on CentOS 5'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-2059229910447867348</id><published>2009-02-27T17:28:00.000-08:00</published><updated>2009-02-27T17:31:15.658-08:00</updated><title type='text'>How do I enable innoDB storage engine?</title><content type='html'>You can enable &lt;span class="highlight"&gt;InnoDB&lt;/span&gt; by accessing your &lt;span class="highlight"&gt;server&lt;/span&gt; via SSH as root ( or another account then use su or sudo to gain root access). Once that is done, check /etc/my.cnd for an entry like:&lt;br /&gt;&lt;br /&gt;&lt;pre class="alt2" dir="ltr" style="border: 1px inset ; margin: 0px; padding: 6px; overflow: auto; width: 640px; height: 34px; text-align: left; color: rgb(204, 0, 0);"&gt;skip-inndob&lt;/pre&gt;&lt;br /&gt;If such an entry exists, remove or comment out the entry and restart MySQL.&lt;br /&gt;&lt;br /&gt;If such an entry does not exist, then there are other problems for which we will need more information.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Once &lt;span class="highlight"&gt;InnoDB&lt;/span&gt; is enabled, you can make it the default table type by specifying the following in /etc/my.cnf:&lt;br /&gt;&lt;br /&gt;&lt;pre class="alt2" dir="ltr" style="border: 1px inset ; margin: 0px; padding: 6px; overflow: auto; width: 640px; height: 34px; text-align: left; color: rgb(204, 0, 0);"&gt;default-table-type=innodb&lt;/pre&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(204, 0, 0);"&gt;Enjoy:)&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-2059229910447867348?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/2059229910447867348/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=2059229910447867348' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/2059229910447867348'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/2059229910447867348'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2009/02/how-do-i-enable-innodb-storage-engine.html' title='How do I enable innoDB storage engine?'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-4074333894759208163</id><published>2009-02-27T14:38:00.000-08:00</published><updated>2009-02-27T14:39:33.623-08:00</updated><title type='text'>Setup Your Nameservers on Directadmin</title><content type='html'>To setup your nameservers, simply do the following:&lt;br /&gt;&lt;br /&gt;- Login to your DirectAdmin panel as "admin"&lt;br /&gt;- Go to your IP Management section, and add two new IP addresses&lt;br /&gt;- Once they are added, click the check boxes next to the two IPs that you've just submitted. Assign these IPs to "admin"&lt;br /&gt;- Now go to your Reseller panel, and navigate to your Nameserver section&lt;br /&gt;- On this page, create your two nameservers, generally ns1. and ns2.&lt;br /&gt;- Finally, go back to your Admin panel and go to your Administrator Settings page. Set your nameservers to the ones you have just created and save your changes.&lt;br /&gt;&lt;br /&gt;&lt;pre style="color: rgb(204, 0, 0);"&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;E&lt;/span&gt;&lt;span style="color: rgb(102, 102, 204);"&gt;nj&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;oy&lt;/span&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;:)&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-4074333894759208163?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/4074333894759208163/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=4074333894759208163' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/4074333894759208163'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/4074333894759208163'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2009/02/setup-your-nameservers-on-directadmin.html' title='Setup Your Nameservers on Directadmin'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-4475047413118129575</id><published>2009-02-26T17:36:00.000-08:00</published><updated>2009-02-26T17:38:06.660-08:00</updated><title type='text'>Checking the configuration of named.conf and zone files</title><content type='html'>It is sometimes easy to make changes in named.conf file or in any zone files manually though the control panel has options to modify them. If the changes are being made manually, we should also make sure that the configuration as well as the zone files are not being messed up.&lt;br /&gt;&lt;br /&gt;The bind package has utilities to check the syntax of named.conf and any zone files. We can make use of those binaries to check our modifications done to those files before reloading or restarting named service.&lt;br /&gt;&lt;br /&gt;To check the sytax of zone file /var/named/kb.com.db for the domain kb.com,&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#993300;"&gt;[root@bash ~]# named-checkzone kb.com /var/named/kb.com.db&lt;br /&gt;zone kb.com/IN: loaded serial 2006032401&lt;br /&gt;OK&lt;br /&gt;[root@ bash~]#&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;If everything is correct, it will show the serial number with which the zone file is loaded. Otherwise, it will give error message indicating the line number at which the error occured.&lt;br /&gt;&lt;br /&gt;To check the syntax of named.conf file,&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);" &gt;[root@bash ~]# named-checkconf /etc/named.conf&lt;br /&gt;[root@bash~]#&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;You may also load the configuration of all master zones listed in named.conf at the time of checking the syntax as,&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#993300;"&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;[root@bash ~]# named-checkconf -z /etc/named.conf&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt; zone localdomain/IN: loaded serial 42&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt; zone localhost/IN: loaded serial 42&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt; zone 0.0.127.in-addr.arpa/IN: loaded serial 1997022700&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt; zone 255.in-addr.arpa/IN: loaded serial 42&lt;/span&gt;&lt;/span&gt;&lt;pre style="color: rgb(204, 0, 0);"&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;zone 0.in-addr.arpa/IN: loaded serial 42&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;span style="color:#993300;"&gt;&lt;span style="color: rgb(255, 0, 0);"&gt; zone kb.com/IN: loaded serial 2006032401&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt; [root@bash ~]#&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;The command will show a detailed output in case any error in named.conf file.&lt;br /&gt;&lt;br /&gt;This way we can make sure that we are not editing the configuration file wrongly.&lt;br /&gt;&lt;br /&gt;&lt;pre style="color: rgb(204, 0, 0);"&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;E&lt;/span&gt;&lt;span style="color: rgb(102, 102, 204);"&gt;nj&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;oy&lt;/span&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;:)&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-4475047413118129575?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/4475047413118129575/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=4475047413118129575' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/4475047413118129575'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/4475047413118129575'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2009/02/checking-configuration-of-namedconf-and.html' title='Checking the configuration of named.conf and zone files'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-2288275552763318419</id><published>2009-02-26T17:25:00.000-08:00</published><updated>2009-02-26T17:27:24.322-08:00</updated><title type='text'>Script for deleting all the mails in Qmail</title><content type='html'>create a file with the following statements, say frozen&lt;br /&gt;&lt;pre style="color: rgb(204, 0, 0);"&gt;&lt;span&gt;service qmail stop&lt;br /&gt;find /var/qmail/queue/mess -type f -exec rm {} \;&lt;br /&gt;find /var/qmail/queue/info -type f -exec rm {} \;&lt;br /&gt;find /var/qmail/queue/local -type f -exec rm {} \;&lt;br /&gt;find /var/qmail/queue/intd -type f -exec rm {} \;&lt;br /&gt;find /var/qmail/queue/todo -type f -exec rm {} \;&lt;br /&gt;find /var/qmail/queue/remote -type f -exec rm {} \;&lt;br /&gt;service qmail start&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;You may also include the directories like /var/qmail/queue/mess/bounce... etc.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt; 2. Give executable permission to this file&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#993300;"&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;chmod 755 frozen&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;3. Execute the script&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;sh frozen&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;E&lt;/span&gt;&lt;span style="color: rgb(102, 102, 204);"&gt;nj&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;oy&lt;/span&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;:)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-2288275552763318419?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/2288275552763318419/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=2288275552763318419' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/2288275552763318419'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/2288275552763318419'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2009/02/script-for-deleting-all-mails-in-qmail.html' title='Script for deleting all the mails in Qmail'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-1687223990057434195</id><published>2009-02-26T17:23:00.001-08:00</published><updated>2009-02-26T17:24:44.292-08:00</updated><title type='text'>Qmail error 'qmail: alert: cannot start: unable to open mutex'</title><content type='html'>If an error "qmail: alert: cannot start: unable to open mutex"  is encountered while  starting qmail.&lt;br /&gt;&lt;br /&gt;Proceed with the following steps to fixing the error:-&lt;br /&gt;&lt;br /&gt; 1. Check the result of tail -f /var/log/messages as well as tail -f /var/log/maillog&lt;br /&gt;&lt;br /&gt;If you can't trace the error from log files, please run the binary from /var/qmail/bin.&lt;br /&gt;&lt;br /&gt;&lt;em style="color: rgb(204, 0, 0);"&gt; [root@serv ~]#cd /var/qmail/bin&lt;br /&gt;[root@serv ~]#./qmail-send&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;2. If the error is something like "alert: cannot start: unable to open mutex"&lt;br /&gt;&lt;br /&gt;&lt;em style="color: rgb(204, 0, 0);"&gt; [root@serv ~]# touch /var/qmail/queue/lock/sendmutex&lt;br /&gt;[root@serv ~]# chown qmails:qmail /var/qmail/queue/lock/sendmutex&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;3.Restart qmail using the command&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;  &lt;/span&gt;&lt;em style="color: rgb(204, 0, 0);"&gt;[root@serv ~]# /etc/rc.d/init.d/qmail start&lt;br /&gt;&lt;br /&gt;&lt;/em&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;E&lt;/span&gt;&lt;span style="color: rgb(102, 102, 204);"&gt;nj&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;oy&lt;/span&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;:)&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-1687223990057434195?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/1687223990057434195/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=1687223990057434195' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/1687223990057434195'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/1687223990057434195'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2009/02/qmail-error-qmail-alert-cannot-start.html' title='Qmail error &apos;qmail: alert: cannot start: unable to open mutex&apos;'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-2436731300615233824</id><published>2009-02-26T17:20:00.000-08:00</published><updated>2009-02-26T17:23:12.512-08:00</updated><title type='text'>IMAP Error (Connection dropped by IMAP server)</title><content type='html'>&lt;p&gt;To troubleshoot the IMAP error(Inbox lock errors) while accessing mailbox via any webmail clients(Horde, SquirrelMail, NeoMail, Round Cube etc.): &lt;/p&gt; &lt;p&gt;The error will be shown as below,&lt;/p&gt;&lt;pre&gt;&lt;span style="color:#993300;"&gt;Connection dropped by IMAP server&lt;br /&gt;&lt;br /&gt;ERROR: Connection dropped by IMAP server.&lt;br /&gt;Query: SELECT "INBOX"&lt;br /&gt;Reason Given: Unable to open this mailbox.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;The error usually occurs when there is inbox.lock file in the mailbox.&lt;br /&gt;Here the inbox gets locked and hence the mailbox can't be accessed and&lt;br /&gt;you will get the above said error.&lt;br /&gt;&lt;br /&gt;&lt;span&gt;&lt;span style="color:#993300;"&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;1. Remove the "inbox.lock" file from the particular mailbox.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;Eventhough the "inbox.lock" file is deleted, it will be created when&lt;br /&gt;the mailbox is accessed again. Hence after removing the file, we need&lt;br /&gt;to copy the inbox to a new file name so as to fix the issue which can&lt;br /&gt;be done as follows,&lt;br /&gt;&lt;/pre&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;2. cat inbox &gt; inbox.new&lt;/span&gt;&lt;span style="font-family: monospace; color: rgb(204, 0, 0);"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;3. rm inbox&lt;/span&gt;&lt;span style="font-family: monospace; color: rgb(204, 0, 0);"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;4. mv inbox.new inbox&lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;&lt;span style="font-family: monospace;"&gt;&lt;br /&gt;&lt;/span&gt;5. Then fix ownership and permissions.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;This fixes the issue.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;E&lt;/span&gt;&lt;span style="color: rgb(102, 102, 204);"&gt;nj&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;oy&lt;/span&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;:)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-2436731300615233824?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/2436731300615233824/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=2436731300615233824' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/2436731300615233824'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/2436731300615233824'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2009/02/imap-error-connection-dropped-by-imap.html' title='IMAP Error (Connection dropped by IMAP server)'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-7038451722265416214</id><published>2009-02-26T17:17:00.000-08:00</published><updated>2009-02-26T17:19:45.338-08:00</updated><title type='text'>Spamd Failing</title><content type='html'>If you find the "spamd" failing error  on an exim restart.&lt;br /&gt;&lt;br /&gt;&lt;p style="color: rgb(0, 51, 0);"&gt;root@server [~]# /etc/init.d/exim restart&lt;/p&gt; &lt;p style="color: rgb(0, 51, 0);"&gt; Shutting down exim:                                        [  OK  ]&lt;/p&gt; &lt;p style="color: rgb(0, 51, 0);"&gt; Shutting down antirelayd:                                  [  OK  ]&lt;br /&gt;&lt;/p&gt; &lt;p style="color: rgb(0, 51, 0);"&gt;&lt;span style="font-weight: bold;"&gt;Shutting down spamd:                                      [ FAILED  ] &lt;/span&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="color: rgb(0, 51, 0);"&gt;Starting exim-26:                                          [  OK  ]&lt;/p&gt; &lt;p style="color: rgb(0, 51, 0);"&gt; Starting exim:                                             [  OK  ]&lt;/p&gt; &lt;p style="color: rgb(0, 51, 0);"&gt; Starting exim-smtps:                                       [  OK  ] &lt;span style="color: rgb(0, 51, 0);" &gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="color: rgb(0, 51, 0);"&gt;&lt;span style="color: rgb(0, 51, 0);" &gt;Starting antirelayd:                                       [  OK  ]&lt;/span&gt;&lt;/p&gt;&lt;p style="color: rgb(0, 51, 0);"&gt;&lt;span style="color: rgb(51, 0, 0);"&gt;Then use he following steps&lt;/span&gt;&lt;/p&gt;&lt;div style="color: rgb(0, 0, 0);" class="box"&gt; &lt;p&gt;When disabling "spamd", the Cpanel create a file named "/etc/spamdisable" which may not get deleted on enabling the "spamd" feature again. Check the presence of the above said file. &lt;/p&gt; &lt;p&gt;The issue may also arise due to unavailability of the perl module "Mail::SpamAssassin" by installing the the same and on restarting the exim, the issue will be fixed.&lt;br /&gt;&lt;/p&gt;  &lt;p&gt;# &lt;span style="color: rgb(204, 0, 0);"&gt;/scripts/perlinstaller --force Mail::SpamAssassin&lt;/span&gt;    &lt;br /&gt;&lt;/p&gt;&lt;p&gt;#&lt;span style="color: rgb(204, 0, 0);"&gt;/etc/init.d/exim restart&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;E&lt;/span&gt;&lt;span style="color: rgb(102, 102, 204);"&gt;nj&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;oy&lt;/span&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;:)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt; &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-7038451722265416214?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/7038451722265416214/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=7038451722265416214' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/7038451722265416214'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/7038451722265416214'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2009/02/spamd-failing.html' title='Spamd Failing'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-107315154260110345</id><published>2009-02-26T17:15:00.001-08:00</published><updated>2009-02-26T17:15:51.972-08:00</updated><title type='text'>The recipient cannot be verified. Please check all recipients of this 550 message to verify they are valid</title><content type='html'>If you are receiving the following error;&lt;br /&gt;&lt;br /&gt;PERM_FAILURE: SMTP Error (state 13): 550-"The recipient cannot be verified. Please check all recipients of this&lt;br /&gt;550 message to verify they are valid."&lt;br /&gt;&lt;br /&gt;SOLUTION:&lt;br /&gt;&lt;br /&gt;First you need to check the corresponding Domain name in the file '/etc/valiases'.&lt;br /&gt;&lt;br /&gt;root@f ~] &lt;span style="color: rgb(204, 0, 0);"&gt;cat /etc/valiases/domainname&lt;/span&gt;&lt;br /&gt;*: username@domainname&lt;br /&gt;&lt;br /&gt;Here 'username@domainname' indicates an added email account.&lt;br /&gt;&lt;br /&gt;You need to change the username only instead of  giving  'username@domainname'.  That is;&lt;br /&gt;&lt;br /&gt;root@f ~] &lt;span style="color: rgb(204, 0, 0);"&gt;cat /etc/valiases/domainname&lt;/span&gt;&lt;br /&gt;*: username&lt;br /&gt;&lt;br /&gt;Here the entry username (without the domain name) indicates the default account.&lt;br /&gt;&lt;br /&gt;Then Restart the exim mail service.&lt;br /&gt;&lt;br /&gt;root@f ~] &lt;span style="color: rgb(204, 0, 0);"&gt;/etc/init.d/exim restart&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;E&lt;/span&gt;&lt;span style="color: rgb(102, 102, 204);"&gt;nj&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;oy&lt;/span&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;:)&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-107315154260110345?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/107315154260110345/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=107315154260110345' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/107315154260110345'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/107315154260110345'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2009/02/recipient-cannot-be-verified-please.html' title='The recipient cannot be verified. Please check all recipients of this 550 message to verify they are valid'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-2187848798364055331</id><published>2009-02-26T17:13:00.000-08:00</published><updated>2009-02-26T17:14:24.940-08:00</updated><title type='text'>Configure exim to listen on additional ports.</title><content type='html'>Exim is a popular Message Transfer Agent (MTA) used on Unix systems. By default Exim will be listening on port 25. To make Exim listening on other additional port, say 26, add the following line to /etc/exim.conf.&lt;br /&gt;&lt;br /&gt;&lt;strong style="color: rgb(204, 0, 0);"&gt;daemon_smtp_ports = 25:198:200&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;After this restart Exim using the following commands.&lt;br /&gt;&lt;strong style="color: rgb(204, 0, 0);"&gt;&lt;br /&gt;service exim restart&lt;/strong&gt;&lt;br /&gt;&lt;em&gt;or&lt;/em&gt;&lt;br /&gt;&lt;strong style="color: rgb(204, 0, 0);"&gt;/etc/init.d/exim restart&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt; This will make Exim to listen on ports 25 as well as 26.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;E&lt;/span&gt;&lt;span style="color: rgb(102, 102, 204);"&gt;nj&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;oy&lt;/span&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;:)&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-2187848798364055331?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/2187848798364055331/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=2187848798364055331' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/2187848798364055331'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/2187848798364055331'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2009/02/configure-exim-to-listen-on-additional.html' title='Configure exim to listen on additional ports.'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-6268841433694063404</id><published>2009-02-26T17:12:00.000-08:00</published><updated>2009-02-26T17:13:03.043-08:00</updated><title type='text'>Mail Error message: Error 550 – “The recipient cannot be verified”:</title><content type='html'>&lt;span style="color:#000000;"&gt;On servers running cPanel, some times it is found that mail sent to valid users is bounced back by the mail server.&lt;br /&gt;The bounce back messages will be similar to the following.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color:#000000;"&gt;-----------------------&lt;br /&gt;&lt;span style="color: rgb(51, 51, 0);" &gt;PERM_FAILURE: SMTP Error (state 9): 550-"The recipient cannot be verified.&lt;br /&gt;Please check all recipients of this550 message to verify they are valid.&lt;/span&gt;&lt;br /&gt;-----------------------&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#000000;"&gt;If the email account does indeed exist, then it is need to run the following commands to correct the issue.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#ff6600;"&gt; &lt;div style="color: rgb(204, 0, 0);" class="box"&gt;/scripts/updateuserdomains&lt;br /&gt;/scripts/mailperm &lt;/div&gt; &lt;span&gt;&lt;span&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Also check the /etc/localdomains file and verify that the domain name is present. Also verify that the DNS line in the&lt;br /&gt;/var/cpanel/user/username contains the domain as well.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;E&lt;/span&gt;&lt;span style="color: rgb(102, 102, 204);"&gt;nj&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;oy&lt;/span&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;:)&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-6268841433694063404?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/6268841433694063404/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=6268841433694063404' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/6268841433694063404'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/6268841433694063404'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2009/02/mail-error-message-error-550-recipient.html' title='Mail Error message: Error 550 – “The recipient cannot be verified”:'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-6833016870304682257</id><published>2009-02-26T17:01:00.000-08:00</published><updated>2009-02-26T17:02:07.287-08:00</updated><title type='text'>Configuring a Cpanel Counter</title><content type='html'>A counter counts the number of visitors on your site. If you refresh the page counter will get increased by one.&lt;br /&gt;&lt;br /&gt;Follow the steps given below to configure a Cpanel counter.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;1.  Go to counter option in your cpanel. Cpanel &gt;&gt; CGI center &gt;&gt; counters.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt; 2.  Click on counter radio button.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt; 3.  Edit/Reset a counter&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;      Counter name:-&gt; generally it is account username. It creates file with .dat extension on server.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;      New Count:-&gt; Enter number from where you want to setup counter generally start from 0.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;      If you want to reset counter you have to edit both features and click on “select commit changes”. You are also able to view &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;      counters preview through option preview.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt; 4.  Click on 'Make HTML', this will display a line.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt; 5.  On server go to following path&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;      # cd /var/cpanel/Counters&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;      Check file is created with the name countername.dat. Changes file permission to 777.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt; 6.  # vi countername.dat&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;      Add the line which is created by clicking 'Make HTML' in cpanel to  countername.dat file.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;E&lt;/span&gt;&lt;span style="color: rgb(102, 102, 204);"&gt;nj&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;oy&lt;/span&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;:)&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-6833016870304682257?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/6833016870304682257/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=6833016870304682257' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/6833016870304682257'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/6833016870304682257'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2009/02/configuring-cpanel-counter.html' title='Configuring a Cpanel Counter'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-4319411371372006376</id><published>2009-02-26T16:58:00.001-08:00</published><updated>2009-02-26T16:58:58.222-08:00</updated><title type='text'>Enable quota in the server</title><content type='html'>If quotas are not enabled for the partition, the following error will occur while doing a quotacheck in the server. In case of Cpanel server, /scripts/initquotas will throw the following error.&lt;br /&gt;&lt;br /&gt;&lt;div style="color: rgb(51, 51, 0);" class="box"&gt;&lt;em&gt;/scripts/initquotas&lt;br /&gt;Quotas are now on&lt;br /&gt;Updating Quota Files......&lt;br /&gt;        quotacheck: Can't find filesystem to check or filesystem not mounted with quota option.&lt;br /&gt;        quotacheck: Can't find filesystem to check or filesystem not mounted with quota option.&lt;br /&gt;....Done&lt;/em&gt;   &lt;/div&gt;&lt;br /&gt;You need  to follow the steps given below:&lt;br /&gt;&lt;br /&gt;&lt;div style="color: rgb(204, 0, 0);" class="box"&gt;&lt;strong&gt;$ touch /quota.user /quota.group&lt;br /&gt;$ chmod 600 /quota.*&lt;br /&gt;$ mount -o remount /&lt;br /&gt;$ quotaoff -a&lt;br /&gt;$ vi /etc/fstab&lt;br /&gt; ( open 'fstab' file and add usrquota,grpquota to the partition where you want to have quota on. That is, for example, add the entry like:&lt;br /&gt;/dev/ubd0 / ext3 defaults,noatime,usrquota,grpquota 1 0 )&lt;br /&gt;$ quotaon -a&lt;/strong&gt;     &lt;/div&gt;&lt;br /&gt;Then you can execute the script successfully without any errors. You can run a quotacheck in the server. In Cpanel server, you can run&lt;br /&gt;initquotas without any errors.&lt;br /&gt;&lt;pre style="font-weight: bold; color: rgb(204, 0, 0);"&gt;Enjoy:)&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-4319411371372006376?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/4319411371372006376/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=4319411371372006376' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/4319411371372006376'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/4319411371372006376'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2009/02/enable-quota-in-server.html' title='Enable quota in the server'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-7765160077622357150</id><published>2009-02-26T16:45:00.000-08:00</published><updated>2009-02-26T16:48:43.138-08:00</updated><title type='text'>Round Cube Installation</title><content type='html'>Remove the previous traces of Roundcube in the server.&lt;br /&gt;&lt;br /&gt;====================&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;cd /usr/local/cpanel/base&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt; rm -rf roundcube*&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt; mysql&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt; mysql&gt;drop database roundcube;&lt;/span&gt;&lt;br /&gt;====================&lt;br /&gt;&lt;br /&gt;Before starting the installation, you need to know the root password of Mysql&lt;br /&gt;&lt;br /&gt;====================&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;cd /usr/local/cpanel/base&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt; wget http://easynews.dl.sourceforge.net/sourceforge/roundcubemail/roundcubemail-0.1beta2.1.tar.gz&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt; tar -zxvf roundcubemail-0.1beta2.1.tar.gz&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt; mv -f roundcubemail-0.1beta2 roundcube&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt; cd roundcube&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt; chmod -R 777 temp&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt; chmod -R 777 logs&lt;/span&gt;&lt;br /&gt;====================&lt;br /&gt;&lt;br /&gt;Create the database. Find mysql root password from /root/.my.cnf.&lt;br /&gt;Login as user, root.&lt;br /&gt;&lt;br /&gt;====================&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;mysql -u root -p&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt; Password:&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt; mysql&gt;CREATE DATABASE roundcube;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt; mysql&gt;use roundcube;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt; mysql&gt;source SQL/mysql.initial.sql;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt; mysql&gt;quit&lt;/span&gt;&lt;br /&gt;====================&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Add the configuration:&lt;br /&gt;&lt;br /&gt;====================&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;cd config&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt; mv db.inc.php.dist db.inc.php&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt; mv main.inc.php.dist main.inc.php&lt;/span&gt;&lt;br /&gt;====================&lt;br /&gt;&lt;br /&gt;Edit the configuration files&lt;br /&gt;&lt;br /&gt;====================&lt;br /&gt;using your text editor edit db.inc.php&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;Find:&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt; &lt;span style="color: rgb(102, 102, 0);"&gt;$rcmail_config[’db_dsnw’] = ‘mysql://roundcube:pass@localhost/roundcubemail’;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt; Replace with:&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt; &lt;span style="color: rgb(51, 51, 0);"&gt;$rcmail_config[’db_dsnw’] = ‘mysql://root:rootpass@localhost/roundcube’;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt; #vi main.inc.php&lt;/span&gt;&lt;br /&gt;====================&lt;br /&gt;&lt;br /&gt;Replace the corresponding root password&lt;br /&gt;&lt;br /&gt;====================&lt;br /&gt;Find:&lt;br /&gt;&lt;span style="color: rgb(102, 102, 0);"&gt;$rcmail_config[’default_host’] = ”;&lt;/span&gt;&lt;br /&gt;Replace with:&lt;br /&gt;&lt;span style="color: rgb(51, 51, 0);"&gt;$rcmail_config[’default_host’] = ‘localhost’;&lt;/span&gt;&lt;br /&gt;====================&lt;br /&gt;&lt;br /&gt;Configure cPanel to show roundcube in the theme. X theme(default) only!!&lt;br /&gt;&lt;br /&gt;====================&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;cd /usr/local/cpanel/base/roundcube/skins/default/images/&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt; cp roundcube_logo.png /usr/local/cpanel/base/frontend/x/images/roundcube_logo.png&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt; cp roundcube_logo.png /usr/local/cpanel/base/webmail/x/images/roundcube_logo.png&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt; wget http://www.yourserverguide.com/Files/HGpatch-roundcube-1.0BETA2.1&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt; patch -p0 &lt;&gt;&lt;br /&gt;====================&lt;br /&gt;&lt;br /&gt;If you receive a message stating: Reversed (or previously applied) patch detected! Assume -R? Please press N for No as this is because you previously installed roundcube&lt;br /&gt;&lt;br /&gt;This will auto do all the necessary changes to roundcube and the X theme. Once the patch is executed you may now access roundcube via http://yourdomain/webmail&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;E&lt;/span&gt;&lt;span style="color: rgb(102, 102, 204);"&gt;nj&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;oy&lt;/span&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;:)&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-7765160077622357150?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/7765160077622357150/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=7765160077622357150' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/7765160077622357150'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/7765160077622357150'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2009/02/round-cube-installation.html' title='Round Cube Installation'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-8477587990753172072</id><published>2009-02-26T16:44:00.000-08:00</published><updated>2009-02-26T16:45:09.433-08:00</updated><title type='text'>Rvsitebuilder installation in Cpanel</title><content type='html'>1. If the server has RVSkin installed, update RVSkin to v6.75 up. (Skip this step if you don't have it).&lt;br /&gt;&lt;br /&gt;      perl /root/rvadmin/auto_rvskin.pl&lt;br /&gt;&lt;br /&gt;2. After getting the license confirmation, SSH to the cPanel server as root, download the installer using the command below:&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#993300;"&gt;      &lt;span style="color: rgb(204, 0, 0);"&gt;cd /usr/local/cpanel/whostmgr/docroot/cgi/&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;      rm -f rvsitebuilderinstaller.tar&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;      wget http://download.rvglobalsoft.com/rvsitebuilderinstaller.tar&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;      tar -xvf rvsitebuilderinstaller.tar&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;      chmod 755 addon_rvsitebuilder.cgi&lt;/span&gt;&lt;/span&gt;   &lt;br /&gt;&lt;br /&gt;3. Open WHM as root user, at the bottom left menu under Plugins section, you can find RVSiteBuilder Installer menu.&lt;br /&gt;&lt;br /&gt;4. Click RVSiteBuilder Installer to begin the installation process.&lt;br /&gt;&lt;br /&gt;5. After complete the installation, you will be sent to RVSiteBuilder Manager automatically.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;E&lt;/span&gt;&lt;span style="color: rgb(102, 102, 204);"&gt;nj&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;oy&lt;/span&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;:)&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-8477587990753172072?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/8477587990753172072/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=8477587990753172072' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/8477587990753172072'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/8477587990753172072'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2009/02/rvsitebuilder-installation-in-cpanel.html' title='Rvsitebuilder installation in Cpanel'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-1776926999779130774</id><published>2009-02-26T16:42:00.000-08:00</published><updated>2009-02-26T16:44:15.066-08:00</updated><title type='text'>Upgrade Perl to 5.8.8 (Cpanel 11.4.2)</title><content type='html'>The cpanel 11 requires perl version  5.8.8. To upgrade the perl version in the server you can use following steps:-&lt;br /&gt;&lt;br /&gt;1. Download perl 5.8.8 using following link:-&lt;br /&gt;&lt;br /&gt;&lt;em&gt;&lt;strong&gt;    &lt;span style="color: rgb(204, 0, 0);"&gt;[root@serv ~]# wget http://layer1.cpanel.net/perl588installer.tar.gz&lt;/span&gt;&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;2. Untar the tar package using following command&lt;br /&gt;&lt;br /&gt;   &lt;em style="color: rgb(204, 0, 0);"&gt;&lt;strong&gt; [root@serv ~]#&lt;/strong&gt;&lt;/em&gt;&lt;span style="color: rgb(204, 0, 0);"&gt; &lt;/span&gt;&lt;em style="color: rgb(204, 0, 0);"&gt;&lt;strong&gt;tar -vzxf perl588installer.tar.gz&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;3. Then Install&lt;br /&gt;&lt;br /&gt;    &lt;em&gt;&lt;strong&gt; &lt;span style="color: rgb(204, 0, 0);"&gt;[root@serv ~]#&lt;/span&gt;&lt;/strong&gt;&lt;/em&gt;&lt;span style="color: rgb(204, 0, 0);"&gt; &lt;/span&gt;&lt;em style="color: rgb(204, 0, 0);"&gt;&lt;strong&gt;cd perl588installer&lt;br /&gt;   &lt;/strong&gt;&lt;/em&gt;&lt;span style="color: rgb(204, 0, 0);"&gt; &lt;/span&gt;&lt;em style="color: rgb(204, 0, 0);"&gt;&lt;strong&gt; [root@serv ~]#&lt;/strong&gt;&lt;/em&gt;&lt;em&gt;&lt;strong&gt;&lt;span style="color: rgb(204, 0, 0);"&gt; ./install&lt;/span&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;Once this has completed, execute the following to ensure that all modules&lt;br /&gt;required by cPanel are installed, and restart cPanel:&lt;br /&gt;&lt;br /&gt;&lt;em&gt;&lt;strong&gt; &lt;/strong&gt;&lt;/em&gt; &lt;em&gt;&lt;strong&gt; &lt;span style="color: rgb(204, 0, 0);"&gt;[root@serv ~]#&lt;/span&gt;&lt;/strong&gt;&lt;/em&gt;&lt;em style="color: rgb(204, 0, 0);"&gt;&lt;strong&gt; /usr/local/cpanel/bin/checkperlmodules&lt;br /&gt; &lt;/strong&gt;&lt;/em&gt;&lt;span style="color: rgb(204, 0, 0);"&gt; &lt;/span&gt;&lt;em style="color: rgb(204, 0, 0);"&gt;&lt;strong&gt; [root@serv ~]#&lt;/strong&gt;&lt;/em&gt;&lt;em style="color: rgb(204, 0, 0);"&gt;&lt;strong&gt; /usr/local/cpanel/startup&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;4. Check and confirm the perl version using the command:&lt;br /&gt;&lt;br /&gt; &lt;em&gt;&lt;strong&gt; &lt;span style="color: rgb(204, 0, 0);"&gt;[root@serv ~]# &lt;/span&gt;&lt;/strong&gt;&lt;/em&gt;&lt;strong style="color: rgb(204, 0, 0);"&gt;&lt;em&gt;perl -v&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: normal; color: rgb(0, 0, 0);"&gt;&lt;/span&gt;&lt;/em&gt;&lt;/strong&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;E&lt;/span&gt;&lt;span style="color: rgb(102, 102, 204);"&gt;nj&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;oy&lt;/span&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;:)&lt;/span&gt;&lt;/span&gt;&lt;strong style="color: rgb(204, 0, 0);"&gt;&lt;em&gt;&lt;span style="font-weight: normal; color: rgb(0, 0, 0);"&gt;&lt;/span&gt;&lt;br /&gt;&lt;/em&gt;&lt;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-1776926999779130774?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/1776926999779130774/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=1776926999779130774' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/1776926999779130774'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/1776926999779130774'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2009/02/upgrade-perl-to-588-cpanel-1142.html' title='Upgrade Perl to 5.8.8 (Cpanel 11.4.2)'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-7525652874724655623</id><published>2009-02-26T16:40:00.000-08:00</published><updated>2009-02-26T16:42:28.711-08:00</updated><title type='text'>Creating a Ruby On Rails application in Cpanel</title><content type='html'>Ruby On Rails icon is there in cpanel theme from cpanel 11 onwards.&lt;br /&gt;You can create a Ruby On Rails application in cpanel by following steps given below.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;1. Login to cpanel&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt; 2. Click on the Ruby On Rails Icon in cpanel.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt; 3. Fill in the "App Name" box with the application name you want to use.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt; 4. Check the box for "Load on boot'.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt; 5. Application Path will be automatically filled in as public_html/application_name.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;You can create the application in this location itself. But, if you are installing this inside public_html, the configuration files will be public and everyone can access it. In order to avoid this, change the permission of the configuration files to 600. The main configuration file in which mysql passwords are stored is database.yml(Path: path_to_application/config/database.yml).&lt;br /&gt;&lt;br /&gt;Or, you can install the application outside the public_html directory(in the home directory itself). Then you should set redirect to this application through apache to  the mongrel port from the cpanel &gt;&gt; Ruby On rails&gt;&gt;Redirects. Mongrel is the default webserver for RoR applications, which will be installed in the server when we install ruby using using /scripts/installruby.&lt;br /&gt;&lt;br /&gt;6. Select the environment. The default environment in which the application will be created is 'production'.&lt;br /&gt;&lt;br /&gt;7. Click "Create".&lt;br /&gt;&lt;br /&gt;Application will be created in the s&lt;span style="font-weight: bold;"&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;&lt;/span&gt;&lt;span style="color: rgb(102, 102, 204);"&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;&lt;/span&gt;&lt;/span&gt;pecified path. All the newly created application will be using a port(&gt;12000).&lt;br /&gt;&lt;br /&gt;If the application name is test and  installation directory /home/username/public_html/test, then you can access the application using http://domainname/test/public/ (Use '/' at the end which is the good method).&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;E&lt;/span&gt;&lt;span style="color: rgb(102, 102, 204);"&gt;nj&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;oy&lt;/span&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;:)&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-7525652874724655623?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/7525652874724655623/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=7525652874724655623' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/7525652874724655623'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/7525652874724655623'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2009/02/creating-ruby-on-rails-application-in.html' title='Creating a Ruby On Rails application in Cpanel'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-5415875355028509535</id><published>2009-02-26T16:39:00.000-08:00</published><updated>2009-02-26T16:40:06.859-08:00</updated><title type='text'>disable the the stats services in a cpanel</title><content type='html'>You can disable Analog or Awstats or Webalizer stats in a cpanel server via backend by editing the file "&lt;span style="color:#ff0000;"&gt;/var/cpanel/cpanel.config&lt;/span&gt;".&lt;br /&gt;&lt;br /&gt;# Check for the variables &lt;span style="color:#ff0000;"&gt;skipanalog&lt;/span&gt;, &lt;span style="color:#ff0000;"&gt;skipawstats&lt;/span&gt;, &lt;span style="color:#ff0000;"&gt;skipwebalizer&lt;/span&gt; in the file and change the values  &lt;br /&gt;  of the variables to one. Now the variables should look like as follows:&lt;br /&gt;&lt;br /&gt;   &lt;span style="color:#ff0000;"&gt;skipanalog=1&lt;br /&gt;   skipawstats=1&lt;br /&gt;   skipwebalizer=1&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;# Save the changes and restart the cpanel service in the server.&lt;br /&gt;   &lt;br /&gt;&lt;span style="color:#ff0000;"&gt;      /etc/init.d/cpanel restart&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;# Now the all the three stats will be disabled server wide.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;E&lt;/span&gt;&lt;span style="color: rgb(102, 102, 204);"&gt;nj&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;oy&lt;/span&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;:)&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-5415875355028509535?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/5415875355028509535/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=5415875355028509535' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/5415875355028509535'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/5415875355028509535'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2009/02/disable-the-stats-services-in-cpanel.html' title='disable the the stats services in a cpanel'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-1687868818090876115</id><published>2009-02-26T15:53:00.000-08:00</published><updated>2009-02-26T16:00:17.114-08:00</updated><title type='text'>Memcached + PHP Memcache Extension Installation</title><content type='html'>Reciently at work as well as in my own personal developement I have found a lot of emphasis on caching technologies. Be this for keeping heavy database queries to a minimum or because you wish to keep heavily served files out of the disk I/O. In this post (my first post!!) I will demonstrate how to install and configure memcached on a linux (CentOS to be specific) box. As well how to install the memcache extension into PHP.&lt;br /&gt;&lt;br /&gt;&lt;strong style="color: rgb(0, 51, 0);"&gt;Installing Memcached&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Make sure before you start tying to install memcache that you have gcc (# yum install gcc) and libevent-devel (# yum install libevent-devel) installed.&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&lt;/code&gt;&lt;code style="color: rgb(204, 0, 0);"&gt;[root@nitrogen ~]# wget http://www.danga.com/memcached/dist/memcached-1.2.6.tar.gz&lt;br /&gt;[root@nitrogen ~]# tar -zxvf memcached-1.2.6.tar.gz&lt;br /&gt;[root@nitrogen ~]# cd memcached-1.2.6&lt;br /&gt;[root@nitrogen memcached-1.2.6]# ./configure&lt;br /&gt;[root@nitrogen memcached-1.2.6]# make&lt;br /&gt;[root@nitrogen memcached-1.2.6]# make install&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Now if you are lazy like me and don’t want to have to remember what the memcached flags are every time you start it I would recommend using an init.d script. I recommend using the one located at &lt;a href="http://www.dev411.com/wiki/Memcached_startup_files_for_Red_Hat_%28RHEL%29"&gt;http://www.dev411.com/wiki/Memcached_startup_files_for_Red_Hat_(RHEL)&lt;/a&gt;. To install the init.d script on your server you need to place the start-memcached perl script in /usr/local/bin/start-memcached. Make sure you have given this file chmod 755 and is chown root:root. Then you must place the memcached-init into /etc/init.d/memcached, make sure this script has the same permissions as the previous file. Finally create the configuration file /etc/memcached.conf, you can place any options that you want ran by the memcached binary in this file. I use the following in my file.&lt;br /&gt;&lt;br /&gt;&lt;code style="color: rgb(204, 0, 0);"&gt;# /etc/memcached.conf&lt;/code&gt;&lt;span style="color: rgb(204, 0, 0);font-family:monospace;" &gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;# user to run memcached as&lt;/span&gt;&lt;code style="color: rgb(204, 0, 0);"&gt;&lt;br /&gt;-u apache&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;# we want to run memcached as a daemon&lt;br /&gt;-d&lt;/p&gt; &lt;p&gt;# amount of RAM we want to dedicate to memcached in MB&lt;br /&gt;-m 512&lt;/p&gt; &lt;p&gt;# interface to listen to for memcached connections on&lt;br /&gt;-l 127.0.0.1&lt;/p&gt;  &lt;code&gt;# port to listen for memcached connections on&lt;br /&gt;-p 11211&lt;br /&gt;&lt;/code&gt;&lt;strong style="color: rgb(0, 51, 0);"&gt;Starting Memcached&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Now you should be able to start and stop memcached quickly by using the following commands.&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;[root@nitrogen ~]# /sbin/service memcached start&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt; [root@nitrogen ~]# /sbin/service memcached stop&lt;/span&gt;&lt;br /&gt;&lt;/code&gt;&lt;/p&gt; &lt;p&gt;If you did not install the init.d script then you can start memcached with the following command.&lt;br /&gt;&lt;code&gt;&lt;br /&gt;[root@nitrogen ~]# &lt;span style="color: rgb(204, 0, 0);"&gt;memcached -d -u apache -m 512 -l 127.0.0.1 -p 11211&lt;/span&gt;&lt;br /&gt;&lt;/code&gt;&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Installing the Memcache PHP extension&lt;/strong&gt;&lt;/p&gt; Installing the memcache php module from source is fairly strait forward, it is just like installing any other php module. Please note that you must have zlib-devel and php-devel packages installed.&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;[root@nitrogen ~]# wget http://pecl.php.net/get/memcache&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt; [root@nitrogen ~]# tar -zxvf memcache-3.0.2.tgz&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt; [root@nitrogen ~]# cd memcache-3.0.2&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt; [root@nitrogen memcache-3.0.2]# phpize&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt; [root@nitrogen memcache-3.0.2]# ./configure&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt; [root@nitrogen memcache-3.0.2]# make&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt; [root@nitrogen memcache-3.0.2]# make install&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Now we need to tell php to include our memcache extension when it starts up.We do this by putting the following configuration data in /usr/local/lib/php.ini (or whatever the path is)&lt;br /&gt;&lt;br /&gt;extension=memcache.so&lt;br /&gt;&lt;br /&gt;You will be able to verify that the memcache php extension has been installed by typing #&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt; php -m&lt;/span&gt; and looking for memcache in the php extension list.&lt;br /&gt;&lt;br /&gt;Source link : http://www.wolflabs.org/2008/12/07/memcached-php-memcache-extension-installation/&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;&lt;br /&gt;E&lt;/span&gt;&lt;span style="color: rgb(102, 102, 204);"&gt;nj&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;oy&lt;/span&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;:)&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-1687868818090876115?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/1687868818090876115/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=1687868818090876115' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/1687868818090876115'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/1687868818090876115'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2009/02/memcached-php-memcache-extension.html' title='Memcached + PHP Memcache Extension Installation'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-8250109626721021841</id><published>2009-02-26T15:48:00.000-08:00</published><updated>2009-02-26T15:49:36.030-08:00</updated><title type='text'>Spamd child process causing high server load</title><content type='html'>&lt;p&gt;Sometimes, spamd child process for a particular user can cause high server load. This is a bug with spamassassin :&lt;/p&gt;  &lt;p&gt;To fix the issue, apply the patch mentioned in the bug.&lt;/p&gt; &lt;p&gt;For &lt;a href="http://www.crucialp.com/blog/tag/cpanel/" class="st_tag internal_tag" rel="tag" title="Posts tagged with cpanel"&gt;cPanel&lt;/a&gt; servers, run the following scripts:&lt;/p&gt; &lt;p style="color: rgb(204, 0, 0);"&gt;/scripts/autorepair spamd_dbm_fix&lt;br /&gt;/etc/init.d/&lt;a href="http://www.crucialp.com/blog/tag/exim/" class="st_tag internal_tag" rel="tag" title="Posts tagged with exim"&gt;exim&lt;/a&gt; restart&lt;/p&gt;&lt;p style="color: rgb(204, 0, 0);"&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;E&lt;/span&gt;&lt;span style="color: rgb(102, 102, 204);"&gt;nj&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;oy&lt;/span&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;:)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="color: rgb(204, 0, 0);"&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-8250109626721021841?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/8250109626721021841/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=8250109626721021841' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/8250109626721021841'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/8250109626721021841'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2009/02/spamd-child-process-causing-high-server.html' title='Spamd child process causing high server load'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-6458843493392583256</id><published>2009-02-26T15:36:00.000-08:00</published><updated>2009-02-26T15:41:14.789-08:00</updated><title type='text'>squirrelmail problem (451 Temporary local problem)</title><content type='html'>Read this entire post before trying anything....&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Try editing your /etc/localdomains to your liking. In mine, I included every actual and parked domain on the server, as well as the hostname for the server.&lt;br /&gt;&lt;br /&gt;Then try removing the file /etc/remotedomains:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;rm /etc/remotedomains&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Then put an empty remotedomains back:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;touch /etc/remotedomains&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;You should now have a good localdomains, and an empty remotedomains.&lt;br /&gt;&lt;br /&gt;Try running /scripts/mailperm now... when I did this, it left the localdomains file alone. I'm guessing that the contents of the remotedomains file may have a bearing on the contents of the localdomains file.&lt;br /&gt;&lt;br /&gt;Do this at your own risk, though... I don't know what other affects this could have. I just saw in the script that it looked at the remotedomains file. I also noticed there are two options available, neither of which I tried:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;/scripts/mailperm --skiplocaldomains&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt; /scripts/mailperm --skipserverperm&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;If you still get the same problem then do the following steps:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Uninstall the older,&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;rpm -e clamd-xxxxx&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt; rpm -e clamav-devel-xxxxxxx&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt; rpm -e clamav-0.xxxxxxxx&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt; rpm -e clamav-db-xxxxxxxxxx&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;I got the clamav and clamd RPM from&lt;br /&gt;&lt;a href="http://3es.atomicrocketturtle.com/atomic/atomic/9/RPMS/" target="_blank"&gt;http://3es.atomicrocketturtle.com/atomic/atomic/9/RPMS/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;and Install the newer:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;rpm -Uvh clamav-db-0.xxxxx&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt; rpm -Uvh clamav-0.xxxx&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt; rpm -Uvh clamd-0.xxxx&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt; rpm -Uvh clamav-devel-0.xxxxx&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This two lines is very important.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;mv /usr/local/bin/clamdscan /usr/local/bin/clamdscan.orig&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt; ln -s /usr/local/bin/clamscan /usr/local/bin/clamdscan&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;If this does not work try to do this:&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;mv /usr/bin/clamdscan /usr/local/bin/clamdscan.orig&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt; ln -s /usr/bin/clamscan /usr/local/bin/clamdscan   &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Your issue should be FIX now.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;E&lt;/span&gt;&lt;span style="color: rgb(102, 102, 204);"&gt;nj&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;oy&lt;/span&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;:)&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-6458843493392583256?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/6458843493392583256/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=6458843493392583256' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/6458843493392583256'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/6458843493392583256'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2009/02/squirrelmail-problem-451-temporary.html' title='squirrelmail problem (451 Temporary local problem)'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-2438518640555542838</id><published>2009-02-26T15:11:00.000-08:00</published><updated>2009-02-26T15:14:49.201-08:00</updated><title type='text'>Add IPs on plan server (No Control Panel)</title><content type='html'>Simply Follow the commands:&lt;br /&gt;&lt;br /&gt;/sbin/ifconfig eth0:1 (X.X.IP.X)&lt;br /&gt;/sbin/ifconfig eth0:2   (X.X.IP.X)&lt;br /&gt;&lt;br /&gt;add the ips then bring up the interface by using following commands:&lt;br /&gt;&lt;br /&gt;ifconfig eth0:1 (X.X.IP.X) netmask 255.0.0.0 up&lt;br /&gt;ifconfig eth0:2 (X.X.IP.X) netmask 255.0.0.0 up&lt;br /&gt;&lt;br /&gt;That's it&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;&lt;br /&gt;E&lt;/span&gt;&lt;span style="color: rgb(102, 102, 204);"&gt;nj&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;oy&lt;/span&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;:)&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-2438518640555542838?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/2438518640555542838/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=2438518640555542838' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/2438518640555542838'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/2438518640555542838'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2009/02/add-ips-on-plan-server-no-control-panel.html' title='Add IPs on plan server (No Control Panel)'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-6174509903933884433</id><published>2009-02-26T15:09:00.000-08:00</published><updated>2009-02-26T15:11:27.271-08:00</updated><title type='text'>Adding Secondary IP's to Debian server</title><content type='html'>debian:~#&lt;span style="color: rgb(204, 0, 0);"&gt; cat /etc/network/interfaces&lt;/span&gt;&lt;br /&gt;# This file describes the network interfaces available on your system&lt;br /&gt;# and how to activate them. For more information, see interfaces(5).&lt;br /&gt;&lt;br /&gt;# The loopback network interface&lt;br /&gt;auto lo&lt;br /&gt;iface lo inet loopback&lt;br /&gt;&lt;br /&gt;# The primary network interface&lt;br /&gt;auto eth0&lt;br /&gt;iface eth0 inet static&lt;br /&gt;address 72.232.34.250&lt;br /&gt;gateway 72.232.34.249&lt;br /&gt;netmask 255.255.255.248&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;To add the other IP's to a Debian server edit the file add the IP'&lt;br /&gt;the file will look like below :&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;nano -w /etc/network/interfaces&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;# The primary network interface&lt;br /&gt;auto eth0&lt;br /&gt;iface eth0 inet static&lt;br /&gt;address 72.232.34.250&lt;br /&gt;gateway 72.232.34.249&lt;br /&gt;netmask 255.255.255.248&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;auto eth0:0&lt;br /&gt;iface eth0:0 inet static&lt;br /&gt;address 72.232.34.251&lt;br /&gt;gateway 72.232.34.249&lt;br /&gt;netmask 255.255.255.248&lt;br /&gt;&lt;br /&gt;auto eth0:1&lt;br /&gt;iface eth0:1 inet static&lt;br /&gt;address 72.232.34.252&lt;br /&gt;gateway 72.232.34.249&lt;br /&gt;netmask 255.255.255.248&lt;br /&gt;&lt;br /&gt;&lt;p style="color: rgb(51, 0, 0);"&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;E&lt;/span&gt;&lt;span style="color: rgb(102, 102, 204);"&gt;nj&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;oy&lt;/span&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;:)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-6174509903933884433?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/6174509903933884433/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=6174509903933884433' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/6174509903933884433'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/6174509903933884433'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2009/02/adding-secondary-ips-to-debian-server.html' title='Adding Secondary IP&apos;s to Debian server'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-6362755892359058542</id><published>2009-02-26T15:05:00.000-08:00</published><updated>2009-02-26T15:07:39.060-08:00</updated><title type='text'>DirectAdmin Liicense Issue</title><content type='html'>Error says - Liicense expired&lt;br /&gt;Solution:&lt;br /&gt;Steps to try and resolve this problem.&lt;br /&gt;&lt;br /&gt;Verify IP information bound to the host matches the data in&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;/usr/local/directadmin/scripts/setup.txt&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Confirm the date is correct.&lt;br /&gt;# date&lt;br /&gt;Sun Jan 4 03:14:22 CST 2004&lt;br /&gt;&lt;br /&gt;If not then set the date with 'rdate' or 'ntp'&lt;br /&gt;# rdate -s time.nist.gov&lt;br /&gt;&lt;br /&gt;Verify date is now correct.&lt;br /&gt;# date&lt;br /&gt;Thu Feb 3 17:44:23 CST 2005&lt;br /&gt;Check and see if DA is now accessable.&lt;br /&gt;&lt;br /&gt;If that does not work try the following.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;cd /usr/local/directadmin/scripts&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;./getLicense.sh 123 1234&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;service directadmin restart&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Where 123 and 1234 are your Client ID and License ID, respectively. If there are errrors extracting the update.tar.gz file, then run:&lt;br /&gt;head -n 1 /usr/local/directadmin/conf/license.key&lt;br /&gt;&lt;br /&gt;to search for an error. If there is an readable error inside the file, double check the IP you are using matches the IP in the license on our system. Also check that it's active in our clients section. Failing that, you'll need to contact support@layeredtech.com to get your license activated or updated.&lt;br /&gt;&lt;p style="color: rgb(51, 0, 0);"&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;&lt;/span&gt;&lt;/span&gt;./getLicense.sh 11461 36802&lt;/p&gt;&lt;p style="color: rgb(51, 0, 0);"&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;E&lt;/span&gt;&lt;span style="color: rgb(102, 102, 204);"&gt;nj&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;oy&lt;/span&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;:)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-6362755892359058542?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/6362755892359058542/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=6362755892359058542' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/6362755892359058542'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/6362755892359058542'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2009/02/directadmin-liicense-issue.html' title='DirectAdmin Liicense Issue'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-7136564358656206527</id><published>2009-02-25T18:09:00.000-08:00</published><updated>2009-02-25T18:18:44.357-08:00</updated><title type='text'>Scanning softwares - rkhunter,rootkit,</title><content type='html'>&lt;span style="color: rgb(0, 0, 102);"&gt;&lt;span style="font-weight: bold;"&gt;rkhunter&lt;/span&gt;&lt;/span&gt;:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 51, 0);"&gt;Rootkit Hunter scanner: is scanning tool to ensure you for about 99.9%* you're clean of nasty tools. This tool scans for rootkits, backdoors and local exploits by running tests like:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;MD5 hash compare&lt;br /&gt;- Look for default files used by rootkits&lt;br /&gt;- Wrong file permissions for binaries&lt;br /&gt;- Look for suspected strings in LKM and KLD modules&lt;br /&gt;- Look for hidden files&lt;br /&gt;- Optional scan within plaintext and binary files&lt;br /&gt;&lt;br /&gt;Rootkit Hunter is released as GPL licensed project and free for everyone to use.&lt;br /&gt;&lt;br /&gt;* No, not really 99.9%.. It's just another security layer&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 51, 0); font-weight: bold;"&gt;Installing rkhunter&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;    &lt;span style="color: rgb(204, 0, 0);"&gt;# wget http://jaist.dl.sourceforge.net/sourceforge/rkhunter/rkhunter-1.3.0.tar.gz&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;    # tar xvzf rkhunter-1.3.0.tar.gz&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;    # cd rkhunter-1.3.0&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;    # ./install.sh --layout default --install&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;    # rkhunter --propupd&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;    # rkhunter --check&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 0, 102);"&gt;chkrootkit&lt;/span&gt;:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 51, 0);"&gt;chkrootkit: shell script that checks system binaries for rootkit modification.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The following tests are made:&lt;br /&gt;aliens asp bindshell lkm rexedcs sniffer wted w55808 scalper slapper z2 amd basename biff chfn chsh cron date du dirname echo egrep env find fingerd gpm grep hdparm su ifconfig inetd inetdconf init identd killall ldsopreload login ls lsof mail mingetty netstat named passwd pidof pop2 pop3 ps pstree rpcinfo rlogind rshd slogin sendmail sshd syslogd tar tcpd tcpdump top telnetd timed traceroute vdir w write&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 51, 0);"&gt;Installing&lt;/span&gt;&lt;span style="color: rgb(0, 51, 0);"&gt; &lt;/span&gt;CHKROOTKIT&lt;br /&gt;&lt;br /&gt;1. Login to your server as root. (SSH)&lt;br /&gt;&lt;br /&gt;2. Down load the chkrootkit.&lt;br /&gt;Type: &lt;span style="color: rgb(204, 0, 0);"&gt;wget ftp://ftp.pangeia.com.br/pub/seg/pac/chkrootkit.tar.gz&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;3. Unpack the chkrootkit you just downloaded.&lt;br /&gt;Type: &lt;span style="color: rgb(204, 0, 0);"&gt;tar xvzf chkrootkit.tar.gz&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;4. Change to new directory&lt;br /&gt;Type: &lt;span style="color: rgb(204, 0, 0);"&gt;cd chkrootkit*&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;5. Compile chkrootkit&lt;br /&gt;Type: &lt;span style="color: rgb(204, 0, 0);"&gt;make sense&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;6. Run chkrootkit&lt;br /&gt;Type: &lt;span style="color: rgb(204, 0, 0);"&gt;./chkrootkit&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;If it says "Checking `bindshell'... INFECTED (PORTS: 465)"This is normal and it is NOT really a virus.&lt;br /&gt;&lt;br /&gt;&lt;p style="color: rgb(51, 0, 0);"&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;E&lt;/span&gt;&lt;span style="color: rgb(102, 102, 204);"&gt;nj&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;oy&lt;/span&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;:)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 51, 0);"&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-7136564358656206527?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/7136564358656206527/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=7136564358656206527' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/7136564358656206527'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/7136564358656206527'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2009/02/scanning-softwares-rkhunterrootkit.html' title='Scanning softwares - rkhunter,rootkit,'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-5082060406991583899</id><published>2009-02-25T18:00:00.000-08:00</published><updated>2009-02-25T18:08:27.910-08:00</updated><title type='text'>Enable mod_rewrite</title><content type='html'>&lt;ol&gt;&lt;li&gt;Find the httpd.conf file (usually you will find it in a folder called conf, config or something along those lines)&lt;/li&gt;&lt;li&gt;Inside the httpd.conf find uncomment  line &lt;i style="font-weight: bold; color: rgb(204, 0, 0);"&gt;LoadModule rewrite_module modules/mod_rewrite.so&lt;/i&gt; (remove the pound '#' sign from in front of the line)&lt;/li&gt;&lt;li&gt;Also find the line &lt;i style="font-weight: bold; color: rgb(204, 0, 0);"&gt;ClearModuleList&lt;/i&gt; is uncommented then find and make sure that the line &lt;i style="font-weight: bold; color: rgb(204, 0, 0);"&gt;AddModule mod_rewrite.c&lt;/i&gt; is not commented out.&lt;/li&gt;&lt;/ol&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;Check to see if mod_rewrite is enabled&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;p&gt;There are several ways to check if its working, I will try to show you the simplest method, Create a .htaccess file (a text file named .htaccess) with the following code in it&lt;/p&gt; &lt;pre style="font-weight: bold; color: rgb(204, 0, 0);"&gt;Options +FollowSymLinks&lt;br /&gt;RewriteEngine On&lt;/pre&gt; &lt;p&gt;Save the file to a subdirectory of your main site something like this&lt;/p&gt; &lt;i&gt; /rewrite-testfolder/.htaccess&lt;/i&gt; &lt;p&gt;Now attempt to browse to the subdirectory (http://localhost/rewrite-testfolder/). One of two things could happen&lt;/p&gt; &lt;p&gt; - &lt;b&gt; No errors&lt;/b&gt; Congrats mod_rewrite engine is now enabled. &lt;/p&gt;&lt;p&gt; - &lt;b&gt;500, Internal Server Error&lt;/b&gt; If you get this message then mod_rewrite was not installed/enabled  on your computer. &lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="color: rgb(51, 0, 0);"&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;E&lt;/span&gt;&lt;span style="color: rgb(102, 102, 204);"&gt;nj&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;oy&lt;/span&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;:)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-5082060406991583899?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/5082060406991583899/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=5082060406991583899' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/5082060406991583899'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/5082060406991583899'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2009/02/find-httpd.html' title='Enable mod_rewrite'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-2942448331637156541</id><published>2009-02-24T18:00:00.000-08:00</published><updated>2009-02-25T18:09:29.893-08:00</updated><title type='text'>Step by step installation - Eaccelerator</title><content type='html'>&lt;span style="color: rgb(102, 0, 0);"&gt;&lt;span style="font-weight: bold; color: rgb(0, 0, 0);"&gt;Eaccelerator&lt;/span&gt;&lt;span style="color: rgb(51, 51, 0);"&gt; &lt;/span&gt;&lt;span style="color: rgb(51, 51, 0);"&gt;is a PHP accelerator/encoder/caching utility that is based off of the old mmcache (which is no longer being maintained). What Eaccelerator does is it caches your PHP scripts so that the database is no longer being queried everytime someone needs a script. This is&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;&lt;span style="color: rgb(51, 51, 0);"&gt; particularly useful for large forums, but pretty much anyone can benefit from it. Since these scripts are cached, you’ll notice a decrease in memory use and server load.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;strong&gt;Install instructions:&lt;br /&gt;&lt;/strong&gt;1.Login as root&lt;br /&gt;2.Download Eaccelerator&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Lets get the source file first.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;wget http://bart.eaccelerator.net/source/0.9.5.2/eaccelerator-0.9.5.2.zip&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Extract and move into the directory&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;unzip eaccelerator-0.9.5.2.zip&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;cd eaccelerator-0.9.5.2&lt;/span&gt;"&lt;br /&gt;&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt;&lt;br /&gt;# need to find where PHP is installed. For most, it’s usually either “/usr/bin” or “/usr/local”, but it may be something else. you can find using "which php" command.&lt;/p&gt;&lt;p style="font-weight: bold;"&gt;Create configuration files&lt;/p&gt;&lt;p style="color: rgb(204, 0, 0);"&gt;phpize &lt;/p&gt;&lt;p&gt;# If you are getting &lt;span style="font-weight: bold;"&gt;phpize: command not found&lt;/span&gt; , Then you need to &lt;span style="font-weight: bold;"&gt;install php-devel&lt;/span&gt;.&lt;/p&gt; &lt;p style="color: rgb(204, 0, 0);"&gt;&lt;em&gt;yum install php-devel&lt;br /&gt;&lt;/em&gt;&lt;/p&gt;&lt;p style="color: rgb(0, 0, 0);"&gt;and then follow the steps&lt;/p&gt;&lt;p style="color: rgb(204, 0, 0);"&gt;phpize&lt;br /&gt;./configure –enable-eaccelerator=shared –with-php-config=/usr/bin/php-config&lt;br /&gt;make&lt;br /&gt;make install&lt;/p&gt;&lt;p&gt;Take note of where the shared lib was installed (&lt;span style="font-weight: bold;"&gt;last line of output of the the above command&lt;/span&gt;)&lt;/p&gt; &lt;p style="color: rgb(204, 0, 0);"&gt;cp eaccelerator.ini  /etc/php.d&lt;/p&gt; &lt;p&gt;Edit the above (copied) file, locate this line:&lt;br /&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;zend_extension_ts=”/usr/lib/php4/eaccelerator.so” &lt;/span&gt;&lt;/p&gt; &lt;p&gt;and replace it with ( whatever path you have noted )&lt;/p&gt; &lt;p style="color: rgb(204, 0, 0);"&gt;zend_extension=”/usr/lib/php/modules/eaccelerator.so”&lt;/p&gt;&lt;p style="color: rgb(51, 0, 0);"&gt;Now all that’s left is to create a tmp dir for eaccelerator’s cache (/tmp/eaccelerator is the default, but you can change it in the above file), and restart apache.&lt;/p&gt;&lt;p style="color: rgb(204, 0, 0);"&gt;mkdir /tmp/eaccelerator&lt;br /&gt;chown apache /tmp/eaccelerator&lt;br /&gt;chgrp apache /tmp/eaccelerator&lt;br /&gt;chmod 644 /tmp/eaccelerator&lt;br /&gt;/sbin/service httpd restart&lt;/p&gt;&lt;p style="color: rgb(51, 0, 0);"&gt;Test by knocking up a phpinfo.php page  or give php -v command via shell you should note.&lt;/p&gt;&lt;p style="color: rgb(51, 0, 0);"&gt;********&lt;/p&gt;&lt;p style="color: rgb(51, 0, 0);"&gt;PHP 5.0.4 (cli) (built: Nov  8 2005 08:27:12)&lt;br /&gt;Copyright (c) 1997-2004 The PHP Group&lt;br /&gt;Zend Engine v2.0.4-dev, Copyright (c) 1998-2004 Zend Technologies&lt;br /&gt;   with eAccelerator v0.9.5.3, Copyright (c) 2004-2006 eAccelerator, by eAccelerator&lt;/p&gt;&lt;p style="color: rgb(51, 0, 0);"&gt;********&lt;/p&gt;&lt;p style="color: rgb(51, 0, 0);"&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;E&lt;/span&gt;&lt;span style="color: rgb(102, 102, 204);"&gt;nj&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;oy&lt;/span&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;:)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="color: rgb(204, 0, 0);"&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-2942448331637156541?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/2942448331637156541/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=2942448331637156541' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/2942448331637156541'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/2942448331637156541'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2009/02/step-by-step-installation-eaccelerator.html' title='Step by step installation - Eaccelerator'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-5343295790753122027</id><published>2009-02-23T15:10:00.000-08:00</published><updated>2009-02-23T15:12:24.777-08:00</updated><title type='text'>Upgrade PHP to 5.2.x Using Yum</title><content type='html'>&lt;p&gt;&lt;span&gt;To upgrade to PHP 5.2.x on CentOS/RHEL/:&lt;/span&gt; &lt;/p&gt;&lt;p&gt;Step 1) Set up the atomic channel: &lt;/p&gt; &lt;p style="font-weight: bold; color: rgb(204, 0, 0);"&gt;&lt;span&gt;wget -q -O - &lt;/span&gt;&lt;a href="http://www.atomicorp.com/installers/atomic.sh" title="http://www.atomicorp.com/installers/atomic.sh" rel="nofollow"&gt;http://www.atomicorp.com/installers/atomic.sh&lt;/a&gt;&lt;span&gt; | sh&lt;/span&gt; &lt;/p&gt;&lt;p&gt;&lt;span&gt;Step 2) Upgrade to PHP 5.2.x:&lt;/span&gt; &lt;/p&gt; &lt;pre style="font-weight: bold; color: rgb(204, 0, 0);"&gt;&lt;span&gt;yum update&lt;/span&gt;&lt;/pre&gt; &lt;p&gt;&lt;span&gt;Step 3) Replace the PHP 4 php.ini with PHP 5.2.x’s (if applicable):&lt;/span&gt; &lt;/p&gt; &lt;pre style="font-weight: bold; color: rgb(204, 0, 0);"&gt;&lt;span&gt;mv /etc/php.ini.rpmnew /etc/php.ini&lt;/span&gt;&lt;/pre&gt; &lt;p&gt;&lt;span&gt;Step 4) Replace the php.conf with the PHP 5.2.x php.conf (if applicable):&lt;/span&gt; &lt;/p&gt; &lt;pre style="font-weight: bold; color: rgb(204, 0, 0);"&gt;&lt;span&gt;mv /etc/httpd/conf.d/php.conf.rpmnew /etc/httpd/conf.d/php.conf&lt;/span&gt;&lt;/pre&gt; &lt;p&gt;&lt;span&gt;Step 5) Restart the webserver&lt;/span&gt; &lt;/p&gt; &lt;pre&gt;&lt;span&gt;&lt;span&gt;&lt;span style="font-weight: bold; color: rgb(204, 0, 0);"&gt;service httpd restart&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;En&lt;/span&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;jo&lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;y:)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-5343295790753122027?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/5343295790753122027/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=5343295790753122027' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/5343295790753122027'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/5343295790753122027'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2009/02/upgrade-php-to-52x-using-yum.html' title='Upgrade PHP to 5.2.x Using Yum'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-7572856422618523926</id><published>2009-02-23T15:05:00.000-08:00</published><updated>2009-02-23T15:08:09.807-08:00</updated><title type='text'>How to upgrade Apache version to 2.0.61 on plesk server ?</title><content type='html'>&lt;p&gt;&lt;span&gt;Here are the steps &gt;&gt; &lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span&gt;1. Make a copy of your current httpd.conf incase you need to roll-back&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;cp /usr/local/apache/conf/httpd.conf /usr/local/apache/conf/httpd.conf_back&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span&gt;2. Download The Apache Tar.Gz File&lt;/span&gt;&lt;/p&gt; &lt;p style="color: rgb(204, 0, 0);"&gt;&lt;span&gt;wget http://www.apache.org/dist/httpd/httpd-2.0.61.tar.gz&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span&gt;3.Extract The File To Your Server&lt;/span&gt;&lt;/p&gt; &lt;p style="color: rgb(204, 0, 0);"&gt;&lt;span&gt;tar -zxvf httpd-2.0.61.tar.gz&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span&gt;4.Move Into The Extracted Folder&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;&lt;span&gt;cd httpd&lt;/span&gt; &lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span&gt;5. If you want the default apache configuration then run the Configuration File i.e &lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;./configure&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-weight: bold;"&gt;&lt;span&gt;Note : &lt;span style="font-weight: bold;"&gt;but if you want your current updated apache configuration then make sure to&lt;/span&gt; create the phpinfo.php file and copy the available &lt;span&gt;Configure Command&lt;/span&gt; as it is and run the full command instead of &lt;span&gt;./configure&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span&gt;6.Run The Make File&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;make&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span&gt;7.Run The Install Make File&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;make install&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span&gt;Start Apache&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;/etc/init.d/httpd restart&lt;/span&gt;&lt;/p&gt; &lt;span&gt;and thats done!!&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;En&lt;/span&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;jo&lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;y:)&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-7572856422618523926?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/7572856422618523926/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=7572856422618523926' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/7572856422618523926'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/7572856422618523926'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2009/02/how-to-upgrade-apache-version-to-2061.html' title='How to upgrade Apache version to 2.0.61 on plesk server ?'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-1245850281749092120</id><published>2009-02-23T15:01:00.000-08:00</published><updated>2009-02-23T15:03:16.015-08:00</updated><title type='text'>Ioncube Installation On Linux Plesk Server</title><content type='html'>&lt;p&gt; &lt;b&gt;1)&lt;/b&gt; Download the tar.gz file which is compatible with your server from “http://downloads.ioncube.com/”&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;wget &lt;/span&gt;&lt;a style="color: rgb(204, 0, 0);" rel="nofollow" href="http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.tar.gz" target="_blank"&gt;http://downloads2.ioncube.com/loader…lin_x86.tar.gz&lt;/a&gt;&lt;/p&gt; &lt;p&gt;&lt;b&gt;2)&lt;/b&gt; Untar the downloaded file.&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;tar -zxf ioncube_loaders_lin_x86.tar.gz&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;b&gt;3)&lt;/b&gt; Move the untared file to /usr/lib/php/modules&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;mv ioncube /usr/lib/php/modules&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;b&gt;4)&lt;/b&gt;&lt;span style="color: rgb(204, 0, 0);"&gt; chown -R root:root /usr/lib/php/modules/ioncube&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;b&gt;5)&lt;/b&gt; &lt;span style="color: rgb(204, 0, 0);"&gt;vi /etc/php.ini&lt;/span&gt;&lt;br /&gt;Add the following line before any other zend_extension &lt;/p&gt; &lt;div style="margin: 5px 20px 20px;"&gt; &lt;div class="smallfont" style="margin-bottom: 2px;"&gt;Quote:&lt;/div&gt; &lt;table border="0" cellpadding="6" cellspacing="0" width="100%"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td class="alt2" style="border: 1px inset ;"&gt; &lt;p&gt;    &lt;span style="color: rgb(204, 0, 0);"&gt;zend_extension=/usr/lib/php/modules/ioncube/ioncube_loader_lin_5.1.so&lt;/span&gt;&lt;/p&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;/div&gt; &lt;p&gt;It would go between these two entries&lt;/p&gt; &lt;div style="margin: 5px 20px 20px;"&gt; &lt;div class="smallfont" style="margin-bottom: 2px;"&gt;Quote:&lt;/div&gt; &lt;table border="0" cellpadding="6" cellspacing="0" width="100%"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td class="alt2" style="border: 1px inset ;"&gt; &lt;p&gt;    &lt;span style="color: rgb(204, 0, 0);"&gt;zend_optimizer.version=3.3.0&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so&lt;/span&gt;&lt;/p&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;/div&gt; &lt;p&gt;Save changes, then:&lt;br /&gt;&lt;b&gt;6)&lt;/b&gt; &lt;span style="color: rgb(204, 0, 0);"&gt;/etc/init.d/httpd restart&lt;/span&gt;&lt;/p&gt; &lt;p&gt;Now Ioncube Installed on the server, verified output &lt;/p&gt;  &lt;div class="smallfont" style="margin-bottom: 2px;"&gt;Quote:&lt;/div&gt;     &lt;p&gt;    [root@VPS server ~]# &lt;span style="color: rgb(204, 0, 0);"&gt;php -v&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 102, 0);"&gt;PHP 5.1.6 (cli) (built: Sep 20 2007 10:16:10)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 102, 0);"&gt;Copyright (c) 1997-2006 The PHP Group&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 102, 0);"&gt;Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies&lt;/span&gt;&lt;br /&gt;    &lt;b style="color: rgb(102, 102, 0);"&gt;with the ionCube PHP Loader v3.1.32, Copyright (c) 2002-2007, by ionCube Ltd.&lt;/b&gt;&lt;span style="color: rgb(102, 102, 0);"&gt;, and&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 102, 0);"&gt;    with Zend Extension Manager v1.2.2, Copyright (c) 2003-2007, by Zend Technologies&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 102, 0);"&gt;    with Zend Optimizer v3.3.0, Copyright (c) 1998-2007, by Zend Technologies&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;En&lt;/span&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;jo&lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;y:)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-1245850281749092120?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/1245850281749092120/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=1245850281749092120' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/1245850281749092120'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/1245850281749092120'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2009/02/ioncube-installation-on-linux-plesk.html' title='Ioncube Installation On Linux Plesk Server'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8852963114515422266.post-5605882095521753116</id><published>2009-02-23T14:29:00.000-08:00</published><updated>2009-02-23T14:59:58.056-08:00</updated><title type='text'>How to run PHP 4 and 5 on Cpanel</title><content type='html'>This information is helpful for &lt;span style="font-weight: bold; font-style: italic;"&gt;hosting&lt;/span&gt; companies that want to run PHP 4 &amp;amp; 5 on the same &lt;span style="font-weight: bold; font-style: italic;"&gt;cPanel&lt;/span&gt; server. After this, &lt;span style="font-weight: bold; font-style: italic;"&gt;Hosting&lt;/span&gt; costumers / &lt;a href="http://sysadmingear.blogspot.com/search/label/cpanel"&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;cPanel&lt;/span&gt;&lt;/a&gt; users should choose what version of &lt;span style="font-weight: bold; font-style: italic;"&gt;PHP&lt;/span&gt; will they use on theirs scripts.&lt;br /&gt;&lt;br /&gt;You should consider some implications on your server performance, but webhosts are using because they don't need two server to run the different &lt;span style="font-weight: bold;"&gt;PHP&lt;/span&gt; versions for different costumers.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;How to run PHP 4 and 5 on the same &lt;a href="http://sysadmingear.blogspot.com/search/label/cpanel"&gt;Cpanel&lt;/a&gt; server&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;1. Login to you &lt;span style="font-weight: bold; font-style: italic;"&gt;cPanel&lt;/span&gt; server as root using ssh&lt;br /&gt;&lt;br /&gt;2. Check the compiler and remove and re-create cpphpbuild directory&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;# /scripts/checkccompiler&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;         # rm -rf /home/cpphpbuild&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;         # mkdir /home/cpphpbuild&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;         # cd /home/cpphpbuild&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;3. Download PHP5 and extract it&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;# wget http://us2.php.net/get/php-5.2.4.tar.gz/from/this/mirror&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;         # tar zfx php-5.2.4.tar.gz&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;         # cd php-5.2.4&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;4. Download, build and install php5.gen.cpanel&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;echo “#define HAVE_SENDMAIL 1″ &gt;&gt; /home/cpphpbuild/php-5.2.4/main/php_config.h&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;         # wget http://www.elix.us/tutorials/php5.gen.cpanel&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;         # chmod 700 php5.gen.cpanel&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;         # ./php5.gen.cpanel&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;# make&lt;/span&gt;&lt;br /&gt; &lt;br /&gt;If you get following error:&lt;br /&gt;&lt;span style="color: rgb(153, 153, 0);"&gt;Got this error:&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(153, 153, 0);"&gt;gcc: /usr/lib/mysql/libmysqlclient.so: No such file or directory&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(153, 153, 0);"&gt;make: *** [sapi/cgi/php-cgi] Error 1&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Then try this:&lt;span style="color: rgb(153, 153, 0);"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;# cd /usr/lib&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;cp libmysqlclient.* /usr/lib/mysql/&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;And then try again &lt;span style="color: rgb(204, 0, 0);"&gt;#make&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;# &lt;span style="color: rgb(204, 0, 0);"&gt;make install&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;5. Now you should move the files and finish the configuration&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;# cp -f /usr/local/php5/bin/php5 /usr/local/cpanel/cgi-sys/php5&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt; # chown root:wheel /usr/local/cpanel/cgi-sys/php5 # cp -p /home/cpphpbuild/php-5.2.4/php.ini-recommended /usr/local/php5/lib/php.ini&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;         # chown root.root /usr/local/php5/lib/php.ini&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;         # chmod 644 /usr/local/php5/lib/php.ini&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;         # echo “cgi.fix_pathinfo = 1 ; needed for CGI/FastCGI mode” &gt;&gt; /usr/local/php5/lib/php.ini&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Configure httpd.conf file, save and exit.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;# nano /usr/local/apache/conf/httpd.conf&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Scroll down (better use the built-in search) to the "&lt;ifmodule c=""&gt;"&lt;br /&gt;There we should to add index.php5 after index.jp, but before index.php4. Result would looks like this:&lt;br /&gt;&lt;br /&gt;&lt;/ifmodule&gt;&lt;ifmodule c=""&gt;&lt;span style="color: rgb(153, 153, 0);"&gt;DirectoryIndex index.html index.wml index.cgi index.shtml index.jsp index.js index.jp &lt;span style="color: rgb(204, 0, 0);"&gt;index.php5&lt;/span&gt; iindex.php4 index.php3 index.php index.phtml ndex.htm default.htm default.html home.htm&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/ifmodule&gt;&lt;span class="mediumtext"&gt;This to allow index.php5 as index file.&lt;br /&gt;&lt;/span&gt;&lt;span class="mediumtext"&gt;Continue editing. Find the "AddType application/x-httpd-php .phtml" and after it add this:&lt;br /&gt;&lt;/span&gt;&lt;span class="mediumtext"&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;Action application/x-httpd-php5 "/cgi-sys/php5"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt; AddHandler application/x-httpd-php5 .php5&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="mediumtext"&gt;This is the directives for Apache to use own php5 for files with extensions .php5&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="mediumtext"&gt;Check if we could find this line "&lt;span style="color: rgb(204, 0, 0);"&gt;ScriptAlias /cgi-sys/ /usr/local/cpanel/cgi-sys/&lt;/span&gt;"&lt;br /&gt;If not - add it or our directive will not work. By default cPanel add this line. Just to warn you.&lt;br /&gt;&lt;br /&gt;Save the file and quit.&lt;br /&gt;&lt;br /&gt;Verify that you not broke the Apache config by running:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;service httpd configtest&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="mediumtext"&gt;You SHOULD to get "Syntax OK" at the end and possible some minor warnings about "NameVirtualHost directive" - it is OK.&lt;br /&gt;Warning: if you get ERROR - DO NOT RESTART APACHE AND LOCATE THE ISSUE. Otherwise Apache will not start at all!&lt;br /&gt;&lt;br /&gt;When you make sure it is OK restart the Apache:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;service httpd stop&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt; service httpd startssl&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Check that Apache come ok:&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="mediumtext"&gt;lynx --dump http://localhost/whm-server-status;&lt;br /&gt;&lt;br /&gt;It will show you the Apache status.&lt;br /&gt;&lt;br /&gt;Well, I should congratulate you - you have done it!&lt;br /&gt;&lt;br /&gt;Now create php files with the name "phpinfo.php" and "phpinfo.php5" and add the following code to the file&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;If you have done successfully, both files should show proper version.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;En&lt;/span&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;jo&lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;y:)&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8852963114515422266-5605882095521753116?l=manageyourservers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manageyourservers.blogspot.com/feeds/5605882095521753116/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8852963114515422266&amp;postID=5605882095521753116' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/5605882095521753116'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8852963114515422266/posts/default/5605882095521753116'/><link rel='alternate' type='text/html' href='http://manageyourservers.blogspot.com/2009/02/how-to-run-php-4-and-5-on-cpanel.html' title='How to run PHP 4 and 5 on Cpanel'/><author><name>Mayur's BLOG</name><uri>http://www.blogger.com/profile/16572663304122769442</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
