Blog

Linux-server-services

Understanding Linux server services

Some common web related services running on a Linux server are, but not limited to, include: httpd (Apache), mysqld (MySQL), vsftpd (Very Secure FTP), named (BIND), iptables (packet filtering ruleset), sshd (Secure Shell), network (network related services) and various others. Usually these services are started at boot time. To check what services are installed on the server, you can use the chkconfig tool. For example: [root@server ~]# chkconfig –list sshd                  0:off    1:off    2:on    3:on    4:on    5:on    6:off webmin           [...]

Read more...
Brute-Force-Prevention-On-Linux-Server

Brute Force Prevention On Linux Server

How to install Fail2Ban Fail2Ban is a great utility to use to help prevent a server from being brute forced attacked on SSH. Fail2Ban works with Iptables to block a culprit IP for a certain amount of time. The actual setup and configuring can be done in under 10 minutes. Installation 1.To install fail2ban you will need to have root access (login with user and “su –“ to root). Type the following to begin the install process. yum –enablerepo=dag install fail2ban Yum will install [...]

Read more...
bridge-network-and-how-to-setup-it-on-Debian

What is bridge network and how to setup it on Debian.

How to setup Bridge Network on Debian. Network bridging describes the action taken by network equipment to allow two or more communication networks, or two or more network segments,  to create an aggregate network. Bridging is distinct from routing which allows the networks to communicate independently as separate networks.A network bridge is a network device that connects multiple network segments. In the OSI model bridging acts in the first two layers, below the network layer. Below are the few simple steps [...]

Read more...
Install-two-php-version-on-plesk

How to Install two php version on plesk

1. SSH to your Parallels Plesk Panel (PP) server as root, download the PHP source, unpack it, and configure it # cd /usr/local/src # mkdir php540 # cd php540 # wget http://www.php.net/get/php-5.4.0.tar.gz/from/at2.php.net/mirror # tar xzvf php-5.4.0.tar.gz # cd php-5.4.0 Note: You HAVE TO USE THE PREFIX SWITCH in order for your new PHP to be installed inside a single directory. For example: # ./configure '--with-libdir=lib64' '--cache-file=../config.cache' '--prefix=/usr/local/php540-cgi' '--with-config-file-path=/usr/local/php540-cgi/etc' '--disable-debug' '--with-pic' '--disable-rpath' '--enable-fastcgi' '--with-bz2' '--with-curl' '--with-freetype-dir=/usr/local/php540-cgi' '--with-png-dir=/usr/local/php540-cgi' '--enable-gd-native-ttf' '--without-gdbm' '--with-gettext' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr/local/php540-cgi' '--with-openssl' '--with-pspell' '--with-pcre-regex' '--with-zlib' '--enable-exif' [...]

Read more...
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...