Archive for August, 2009:
Installing ImageMagick in Cpanel
You can install by running one command only
#/scripts/installimagemagick
You can check whether imagemagick is installed or not using
#/scripts/checkimagemagick
If this installation does not work, then you can uninstall it and install it manually
Installing yum in CentOS 5.3
Download rpms
wget http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/elfutils-0.137-3.el5.i386.rpm wget http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/elfutils-libs-0.137-3.el5.i386.rpm wget http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/elfutils-libelf-0.137-3.el5.i386.rpm wget http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/expat-1.95.8-8.2.1.i386.rpm wget http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/gmp-4.1.4-10.el5.i386.rpm wget http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/libxml2-2.6.26-2.1.2.7.i386.rpm wget http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/libxml2-python-2.6.26-2.1.2.7.i386.rpm wget http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/m2crypto-0.16-6.el5.3.i386.rpm wget http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/python-2.4.3-24.el5.i386.rpm wget http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/python-elementtree-1.2.6-5.i386.rpm wget http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/python-iniparse-0.2.3-4.el5.noarch.rpm wget http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/python-sqlite-1.1.7-1.2.1.i386.rpm wget http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/python-urlgrabber-3.1.0-5.el5.noarch.rpm wget http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/readline-5.1-1.1.i386.rpm wget http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/rpm-4.4.2.3-9.el5.i386.rpm wget http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/rpm-libs-4.4.2.3-9.el5.i386.rpm wget http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/rpm-python-4.4.2.3-9.el5.i386.rpm wget http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/sqlite-3.3.6-2.i386.rpm wget http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/yum-3.2.19-18.el5.centos.noarch.rpm wget http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/yum-fastestmirror-1.1.16-13.el5.centos.noarch.rpm wget http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/yum-metadata-parser-1.1.2-2.el5.i386.rpm
Then run
More »
Installing RED5 server in CentOS 5.x
1) Install java
yum -y install java-1.6.0-openjdk java-1.6.0-openjdk-devel
2) Install ant (apache project)
cd /usr/src wget http://opensource.become.com/apache/ant/binaries/apache-ant-1.8.1-bin.tar.gz tar zxvf apache-ant-1.8.1-bin.tar.gz mv apache-ant-1.7.1/ /usr/local/ant
3) Export veriables for Java and ant
More »
How to mount second hard drive in CentOS 5.x
I was trying to mount second drive in my server which was connected via usb, so I thought to post it here as well
Run
# fsdisk -l
to see the list of drives in server..
second drive will most probably will be sdb
1) Make its partition
# fdisk /dev/sdb
press n
press p
press w
How to create tar archive
Since I started working with cPanel server I always needed to create archives from directories.
For example backing up a user’s home directory.
How can you do this? It’s not difficult at all. For exemple to backup a user home directory you would have to run:
tar -pczf rchive.tar.gz /home/USERNAME
Customize your default apache page in cpanel
You just have to login to your server via ssh.
Navigate to /usr/local/apache/htdocs
# cd /usr/local/apache/htdocs
And finaly edit the file index.html
More »
How to add new RBLs to cpanel Exim
More then a year ago, cPanel added a future to the Exim Configuration Editor for everyone to easily select from two RBLs (spamhaus.org and spamcop.net) that can be used to filter most of the SPAM that a server receives. While this has been great for most of us (enabling a RBL is a simple as selecting a check box in WHM and pressing the Save button), there are a few admins that would have liked to add additional RBLs to the list that Exim uses to filter SPAM emails. RBLs like dnsbl.njabl.org, list.dsbl.org, dul.dnsbl.sorbs.net, etc. are all considered useful by many, but not included by default.
The question is how can such a RBL be added to Exim ?
Well it’s not that hard !
First you will have to login to your server using ssh.
After a successful login:
- Change directory to /usr/local/cpanel/etc/exim/acls/ACL_RBL_BLOCK
More »
How to enable Passive ftp in Pure FTPD
For users that are behind a firewall it might be required that you enable passive ftp in your ftp server and client.
While enabling passive ftp in your ftp client is simple, doing so in your ftp server configuration files might be a bit tricky if you don’t know what you are doing.
This tutorial will cover Pure-FTPd, the ftp server used on most cPanel powered servers.