Blog

your-server-is-under-DDOS-Attack

How to find your server is under DDOS Attack

Here is a command line to run on your server if you think your server is under DDOS attack.  The commands given below prints out list of open connections on your server and sorts them by connection amount. RedHat: netstat -ntu | awk ‘{print $5}’ | cut -d: -f1 | sort | uniq -c | sort -n BSD: netstat -na |awk ‘{print $5}’ |cut -d “.” -f1,2,3,4 |sort |uniq -c |sort -n You can also check for connections by running the following command. netstat -plan [...]

Read more...
Install-MariaDB-in-cPanel-WHM

How to Install MariaDB in cPanel/WHM

Installation Steps for installing MariaDB on Cpanel server. Easy steps. Step 1: Backup existing MySQL data Make sure to save all existing data just in case there are any issues. cp -Rf /var/lib/mysql /var/lib/mysql-old mv /etc/my.cnf /etc/my.cnf-old Step 2: Disable the targets so cPanel no longer handles MySQL updates The following will mark the versions of MySQL we distribute as uninstalled so they are no longer maintained by cPanel/WHM /scripts/update_local_rpm_versions –edit target_settings.MySQL50 uninstalled /scripts/update_local_rpm_versions –edit target_settings.MySQL51 uninstalled /scripts/update_local_rpm_versions –edit target_settings.MySQL55 uninstalled Step 3: Remove existing MySQL RPM’s so theres [...]

Read more...
WordPress-Blog-Brute-Force-Flood-Underway

WordPress Blog Brute Force Flood Underway !!

Recently we have seen on-going global attack on WordPress installations across every web host in existence. This attack is well organized and specially targets the file wp-login.php. Some of the ramifications of this attacks  are 1) Sites are loading extremely slow. 2) Unable to login to WordPress Admin Panel. 3) Website could even intermittently go down for undisclosed periods of time. So what needs to bed one. Here are some tips we will let you know to protect your WordPress blog. 1) Make sure [...]

Read more...
Disable-Reverse-Lookups-In-QMail

Disable Reverse Lookups In QMail

Open /etc/xinetd.d/smtp_psa with your favourite text editor (vi, nano etc) Find the line that starts with server_args and add “-Rt0” after the equals sign like so: BEFORE: server_args = /usr/sbin/rblsmtpd -r sbl-xbl.spamhaus.org /var/qmail/bin/relaylock /var/qmail/bin/qmail-smtpd /var/qmail/bin/smtp_auth /var/qmail/bin/true /var/qmail/bin/cmd5checkpw /var/qmail/bin/true AFTER: server_args = -Rt0 /usr/sbin/rblsmtpd -r sbl-xbl.spamhaus.org /var/qmail/bin/relaylock /var/qmail/bin/qmail-smtpd /var/qmail/bin/smtp_auth /var/qmail/bin/true /var/qmail/bin/cmd5checkpw /var/qmail/bin/true Then save the file and issue: service xinetd restart; service qmail restart as root to restart qmail and apply the changes. Make sure nothing else is modified apart from this as qmail will start to break horribly. Cheers.

Read more...
Important-Factors-To-Consider-Choosing-The-Right-Dedicated-Server

Important Factors To Consider Choosing The Right Dedicated Server

Its quite often seen that choosing the right dedicated server for webhosting is confusing specially for those people who had just put their first step in webhosting biz. Many times we’ve seen them coming on our live chats and asking for what server they should choose ? What operating system ? What should be the hardware configuration ? My site is having huge traffic, Who is the best provider in Industry ? What control panel will be better ? [...]

Read more...
How To Install Grsecurity On CentOS 6.0

How To Install Grsecurity On CentOS 6.0?

Ideal way to install Grsecurity on 32 bit CentOS is :  Just follow the steps given below. Fetch the sources: Download kernel from kernel.org #wget http://www.kernel.org/pub/linux/kernel/v2.6/longterm/v2.6.32/linux-2.6.32.51.tar.gz Downlaod latest Grsecurity patch from below URL : #wget http://grsecurity.net/stable/grsecurity-2.2.2-2.6.32.51-201201021326.patch Extract: tar xjf linux-2.6.32.51.tar.gz Patch the kernel: #cd linux-2.6.32.51 #patch -p1 < ../grsecurity-2.2.2-2.6.32.51-201201021326.patch Now start making the kernel : # make clean && make mrproper Edit your kernel as per your need : # make menuconfig Compile your kernel and install it: # make bzImage # make modules # make modules_install Make sure it’s working ok with the help of following command [...]

Read more...
Install-SSL-On-Parallels-Plesk-Panel-10-And-Plesk-11

Install SSL On Parallels Plesk Panel 10 And Plesk 11

Log in to Parallels Plesk Panel as admin. If necessary, switch to Service Provider view From the Hosting Services menu, click Domains. Next to the domain name you want to use, click Open in Control Panel. Go to the Websites & Domains tab, and then click Secure Your Site with SSL Certificates. Under Certificate name, click the certificate you want to use. Next to the Certificate field, click Browse. Locate your signed CRT file, e.g., 24x7servermanagement.com.crt, and then click Open. Next to the CA certificate field, click [...]

Read more...
Install-AWStats-On-DirectAdmin

Install AWStats On DirectAdmin

You Can Install AWstats On DirectAdmin Using The Following Steps cd /usr/local/directadmin/custombuild nano options.conf change “awstats=no” to “awstats=yes” ./build update ./build awstats nano /usr/local/directadmin/conf/directadmin.conf change “”awstats=0” “awstats=1” cd /usr/local/directadmin/scripts ./awstats.sh echo ‘action=tally&value=all’ >> /usr/local/directadmin/data/task.queue /usr/local/directadmin/dataskq d /etc/init.d/directadmin restart   —————- Regards, Arun Pingale Level-3 Systems Administrator http://24×7servermanagement.com/ Email: Arun@24×7servermanagement.net

Read more...
How-To-Update-Apache-To-Latest-Version-On-DirectAdmin-Server

How To Update Apache To Latest Version On DirectAdmin Server?

Here are the steps to update Apache to latest version for direct-admin server First check current version of apache: / usr/sbin/httpd -v CustomBuild – current If you’re using custombuild (as most new boxes are), run the following cd /usr/local/directadmin/custombuild ./build update ./build apache ./build php n ./build rewrite_confs CustomApache – end-of-life If you are using customapache with the 1.3 version of apache to the most recent, run the following: cd /usr/local/directadmin/customapache ./build clean ./build update ./build apache_mod_ssl If you’re using apache 2.x, use “./build apache_2” isntead of apache_mod_ssl. This should update both the configure options and the [...]

Read more...
Upgrading-MySQL-On-DirectAdmin-Server

Upgrading MySQL From 5.5.29 To 5.5.30 On DirectAdmin Server

Upgrading MySQL From 5.5.29 To 5.5.30 On Direct Admin Server I am not sure if the following error gets fixed by doing a MySQL upgrade to the latest version, But it did worked for us So you can give a try. [ERROR] /usr/sbin/mysqld: Sort aborted: Server shutdown in progress Problem appears with sites not being able to access database and some times later it starts working. TO fix the problem Just follow the simple steps provided below to upgrade mysql. Login into the [...]

Read more...