Archive for the ‘Centos’ Category:
Cannot reattach screen session
Some time you get error when you try to reattach with your screen session after you disconnected. So here are some tricks.
To see existing screen sessions
# screen -list
Installing screen on CentOS 5.x
Screen … It let you have multiple virtual windows in one physical terminal session, and very necessary to use if you are compiling remotely and your internet connection is not reliable.
1) Download latest RPM
http://www.rpmfind.net/linux/rpm2html/search.php?query=screen
php 5.3 is now available in cpanel’s easyapache
Cpanel has released php 5.3 in easyapache but there are several features which are missing in php 5.3.
Like php 5.3 does not support Zend. However PHP 5.3.1 introduces namespaces, late static binding, decreased memory usage (YMMV), several new extensions, and improved MySQL support. Be sure to check your scripts for compatibility before going live with PHP 5.3.1 on a production server. Some scripts will be affected by some of the changes, so testing is extremely important.
More information can be found at
Enableing passive mode in FTP server with CSF firewall
Passive mode is always very important for ftp servers, if you are running csf firewall and cannot connect to ftp server then it means that range of passive ports is blocked in firewall. Here are simple steps
1) Add Passive Port range 30000-350000 to your Pureftp or Proftp configuration file
i) For Pure FTP
wireshark on Centos5.x, installation and running
Installation of wireshark is very easy on centos
yum install wireshark
Run a capture
tethereal -i eth1 -w ~/mycapture.pcap
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.7.1-bin.tar.gz tar zxvf apache-ant-1.7.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
