Recompile Perl in Cpanel servers
To check what is the perl version on your system, use: perl -v This is perl, v5.8.7 built [...]
Redirect Loop in Cpanel servers
It seems the issue is in the .htaccess file creation: it looks like this: Code: RewriteEngine on RewriteCond [...]
HELO ends with a dot – spamassasign problem
If you need to get rid of this problem, please edit the file /etc/mail/spamassassin/local.cf score FH_HELO_ENDS_DOT 0.0 restart [...]
How to disable IPv6
Both Red Hat Enterprise Linux 4 and 5 enable Internet Protocol Version 6 (IPv6) by default. Some users [...]
DNS Terms you need to know
During my beginning years of System Administration, I was pretty much confused by the terms 'primary nameserver', 'secondary [...]
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" {} ; [...]