Chkrootkit Installation Guide
chkrootkit (Check Rootkit) is a common Unix based program intented to help system administrators check their system for [...]
How to close Open DNS
This tutorial describes how to close an Open DNS server. An Open DNS server allows anyone to use [...]
Ioncube Installation Guide
This article describes how to install ionCube loader extension in PHP. ionCube provides tools for PHP source code [...]
How to disable Telnet
Telnet is a xinetd managed service which listens on port 23. You can login to your account on [...]
Email alert on root login
Do you wish to be notified by email whenever someone login to the server as root? The tip [...]
Run CGI scripts anywhere in the server + Plesk
Server wide : cd /etc/httpd/conf/ cp -p httpd.conf httpd.conf.bak vi httpd.conf uncomment AddHandler cgi-script .cgi service httpd restart [...]
Stop Open Relay of Exim
Telnet to yourmailserver at port 25 and issue all the following commands: -------------------------------------------------------- telnet hostname/ip 25 helo client.server.com [...]
Installation of Java + Apache Ant
cd /opt mkdir java cd java wget http://javadl.sun.com/webapps/download/AutoDL?BundleId=29210 or wget http://javadl.sun.com/webapps/download/AutoDL?BundleId=29214 mv jre-6u13* jre-6u13-linux-i586.bin chmod 755 jre-6u13-linux-i586.bin ./jre-6u13-linux-i586.bin [...]
No space left on device: mod_rewrite: could not create rewrite_log_lock
If you are getting "No space left on device: mod_rewrite: could not create rewrite_log_lock" while restarting apache, then [...]
Awstats outside cpanel
Download the Awstats.zip from http://totalchoicehosting.com/downloads/Awstats_Access.zip and unzip Go to the stats subdirectory and edit the config.php file Upload [...]
Freebsd – google apps mail problem
vi /etc/mail/virtusertable @domainname.com %1@google.smtp then make make restart /etc/rc.d/sendmail restart
FFMPEG Yum installation
1. Install RPMForge: http://packages.sw.be/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.i386.rpm 2. That'll give you access to a repo to install ffmpeg 3. Then yum [...]
How to find PHP injection through logs
URL Injection -- attempt to inject / load files onto the server via PHP/CGI vulnerabilities Sample log report [...]
Suphp
Reference from https://support.apthost.com/ What is suPHP is: On most Apache servers, PHP runs as an Apache module. This [...]
Invalid tgz file : Cpanel PEAR Installer problem
The problem is caused by differences in the way PHP 5.2.x parses code, and can be fixed by [...]
Drop DDOS attack
1. Find.. to which IP address in the server is targeted by the ddos attack netstat -plan | [...]
Script to find how many mails sent from an account
grep xxx@xxx.com /var/log/exim_mainlog | grep "<=" | awk {'print $3'} | wc -l
Google apps
Create account for your domain in google Apps **************************************** First of all, create an account for your domain [...]
About VPS
1.1. What is VPS? A virtual private server or virtual dedicated server (VPS or VDS)is a server run [...]
Iframe removal script
find /home/zzz/public_html/ ( -name "*.php" -o -name "*.html" -o -iname "*.htm" ) -exec grep -l "xxx" {} ; [...]
Change port no. of ftp
vi /etc/pure-ftpd.conf under # Bind 127.0.0.1, 21 Bind *,123
Hotlink prevention
RewriteEngine On RewriteCond %{HTTP_REFERER} !^http://(.+.)?mysite.com/ [NC] RewriteCond %{HTTP_REFERER} !^$ RewriteRule .*.(jpe?g|gif|bmp|png)$ - [F]
Exim : retry time not reached for any host after a long failure period
The issue is because of the corrupted exim db files. Goto /var/spool/exim/db and delete files: retry , retry.lockfile [...]
FFMPEG installation
DOWNLOAD MODULES wget www3.mplayerhq.hu/MPlayer/releases/codecs/essential-20061022.tar.bz2 wget rubyforge.org/frs/download.php/9225/flvtool2_1.0.5_rc6.tgz wget easynews.dl.sourceforge.net/sourceforge/lame/lame-3.97.tar.gz wget superb-west.dl.sourceforge.net/sourceforge/ffmpeg-php/ffmpeg-php-0.5.1.tbz2 wget downloads.xiph.org/releases/ogg/libogg-1.1.3.tar.gz wget downloads.xiph.org/releases/vorbis/libvorbis-1.1.2.tar.gz EXTRACT MODULES tar zxvf [...]
easy apache – Premature end of script headers error
Error : BEGIN failed--compilation aborted at /var/cpanel/perl/easy/Cpanel/Easy/Utils/BackGround.pm line 12. Compilation failed in require at (eval 18) line 3....propagated [...]