Archive for December 28th, 2011

Upgrading OpenSSH on CentOS 5

1) First, download the OpenSSH source tarball from the vendor and unpack it. You can find the tarballs at http://www.openssh.com/portable.html wget http://mirror.mcs.anl.gov/openssh/portable/openssh-5.8p1.tar.gz tar -xvzf openssh-5.8p1.tar.gz 2)Copy the spec file and tarball: cp ./openssh-5.8p1/contrib/redhat/openssh.spec /usr/src/redhat/SPECS/ cp openssh-5.8p1.tar.gz /usr/src/redhat/SOURCES/ 3)Do a little magic: cd /usr/src/redhat/SPECS perl -i.bak -pe ‘s/^(%define no_(gnome|x11)_askpass)\s+0$/$1 1/’ openssh.spec 4) build your RPM: rpmbuild […]

How to disable Core file generation?

How to disable Core file generation Solution :– first of all delete the core files which are present on the server or under any account then vi /etc/init.d/httpd and below the “ulimit -n 16384? you need to put ulimit -c 0 And Command to delete core files find ./ -name “core.*” -exec rm -f {} […]

How to install RVSiteBuilder?

1)After got the license confirmation, SSH to your cPanel server as root and run command /scripts/makecpphp 2) Download the installer using the command below: cd /usr/local/cpanel/whostmgr/docroot/cgi/ rm -rf /usr/local/cpanel/whostmgr/docroot/cgi/rvsitebuilderinstaller/ rm -f rvsitebuilderinstaller.tar wget http://download.rvglobalsoft.com/rvsitebuilderinstaller.tar tar -xvf rvsitebuilderinstaller.tar chmod 755 addon_rvsitebuilder.cgi rm -f rvsitebuilderinstaller.tar 3)Open root WHM, at the bottom left menu under Plugins section, you […]

Virus Detected; File not Uploaded! (Clamd is not configured properly.)

clamd issue Solution :– 1) Go to WHM, > cPanel > Mange Plugins > uninstall clamavconnector. That should fix the issue. If this not solve the problem then 2.Make sure you have a clamd init file: /etc/init.d/clamd chown root:root /etc/init.d/clamd chmod +x /etc/init.d/clamd chkconfig clamd on service clamd restart

How to install ffmpeg, ffmpeg-PHP, Mplayer, Mencoder, flv2tool, LAME MP3 Encoder, and Libog from source

This article shows how to install ffmpeg, ffmpeg-PHP, Mplayer, Mencoder, flv2tool, LAME MP3 Encoder, and Libog from source. It should work on most systems, however may need some tweaking from system to sytem. cd /usr/local/src Download source tarballs: wget http://rubyforge.org/frs/download.php/9225/flvtool2_1.0.5_rc6.tgz wget http://easynews.dl.sourceforge.net/sourceforge/lame/lame-3.97.tar.gz wget http://superb-west.dl.sourceforge.net/sourceforge/ffmpeg-php/ffmpeg-php-0.5.0.tbz2 wget http://downloads.xiph.org/releases/ogg/libogg-1.1.3.tar.gz wget http://downloads.xiph.org/releases/vorbis/libvorbis-1.1.2.tar.gz wget http://www4.mplayerhq.hu/MPlayer/releases/codecs/essential-20061022.tar.bz2 Extract the tarballs: tar zxvf […]

Webmail : Server replied: 110 Can’t open SMTP stream.

I’m getting an error on a couple of my servers when trying to send email from webmail. Connection timed out Server replied: 110 Can’t open SMTP stream. Solution :– I found the config for cpanel’s SM: /usr/local/cpanel/base/3rdparty/squirrelmail/config/config.php I just changed: $useSendmail = false; to: $useSendmail = true; thats all

Unable to login to horde

Unable to login to horde Solution :– Kindly try following steps: 1. Login to shell of the server using root login details and open the file ” /usr/local/cpanel/3rdparty/etc/horde/php.ini ” using vi or any other editor 2. Search for [Session] and change the following From:- session.save_handler = sqlite session.save_path =/var/cpanel/userhomes/cpanedmin/sessions/phpsess.sdb To:- session.save_handler = files session.save_path = […]

Portflood Rule

You need to login to server as root and open csf file & add below rule. —— PORTFLOOD = “26;tcp;20;300” —— This rule blocks IPs that connect to port 26 via TCP more than 20 times within 300 seconds for 300 seconds. Most of the packets are to port 26, so this should stop the […]

Python Installation

1) Download and extract Python: cd /usr/local/src wget http://apache.dataphone.se/httpd/modpython/mod_python-3.3.1.tgz tar zxvf mod_python-.3.3.1tgz 2) Configure & install Python cd mod_python-3.3.1 ./configure –with-apxs=/usr/local/apache/bin/apxs (check where your apxs is by typing: locate apxs) make make install 3) Configure Apache pico -w /usr/local/apache/conf/httpd.conf Locate your LoadModule – section by pressing CTRL-W and typing “LoadModule”. Add the following line under […]

Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly.

Sometimes if you login in to PHPMYADMIN, you can see the error as follows. Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly. Solution :- 1) Check permissions of /tmp. It should be 755. Change it to 1777. 2) Open file /usr/local/cpanel/3rdparty/etc/phpmyadmin/php.ini […]