Writing Codes in Your WordPress Posts


While publishing tutorials you might have struggled to add blocks around “Codes” that you wish to share with your audience. Some people use plugins, but with a simple trick you can publish your codes with blocks without installing any plugin.

For an instance you can use following code in your posts; just make sure to use text editor instead of visual editor:

<Pre><PRE STYLE=”font-family:monospace;
border:red 2px solid;
background-color:#000000; “>
bodHOST Bandwidth on Demand

read more

Posted in WordPress | Tagged | Comments Off

Increase swap file partition on eNlight (or plane Linux Server)


While increasing Swap File on the Server, first you need to check there should be enough free space (larger than new swap size) available on the partition.

Follow the below steps:

Step 1:- #dd if=/dev/zero of=/swapfile bs=1024 count=1572864

This command is for creating the free space for file /swapfile to 1.5 GB

Please note that count is the block size calculated as (1024 * 1.5)

Step 2:- #mkswap /swapfile

Step 3:- #chown root:root /swapfile

Step 4:- #chmod 0600 /swapfile1

Step 5:- #swapon /swapfile1

Step 6:- #vi /etc/fstab

Enter this at the end of file "/swapfile1 swap swap defaults 0 0"

Step 7:- # mount -a or

Step 8:- free -m (check swap file size for your confirmation)

Step 9:- This has been done Cheers !!!

read more

Posted in FAQ | Tagged , | Comments Off

How to install old and new version of PHP on cPanel server?


PHP 5.2 has become outdated and 5.3 officially mentioned as “End of Life” status, but many applications and custom scripts still work on these two platforms. So here is the guide for people who wish to use PHP 5.2 or 5.3 along with PHP 5.4 or 5.5 on a cPanel server and make use of both the versions at the same time.

Let’s assume the latest version of PHP 5.4 is installed on your server by default, but for some reason you need to install older version; follow the below steps to install old version of PHP.

1. Download and untar the older version of PHP that you wish to install. Here we assume that you are willing to install 5.3:

# mkdir /usr/local/buildphp53
# cd /usr/local/buildphp53
# wget http://museum.php.net/php5/php-5.3.9.tar.gz
# tar --strip-components=1 -zxvf php-5.3.*

2. Configure and install PHP

#./configure --prefix=/usr/local/php53 --enable-cgi --enable-bcmath
 --enable-calendar --with-mysql=/usr/bin -with-libdir=lib64 --with-gd
 --enable-mbstring (you can add more modules per your wish)
# make
# make install

3. Now add the PHP 5.3 handlers to Apache

# pico /usr/local/apache/conf/includes/pre_virtualhost_global.conf

Add the following:

Action application/x-httpd-php53 /cgi-sys/php53
AddType application/x-httpd-php53 .php53

read more

Posted in FAQ | Tagged , | Comments Off

Round Robin DNS

Round Robin DNS (1)

If you are unaware about this term, then it belongs to – domain pointing to two servers. Why we are discussing this today, because I have seen many people on public forums who wish to host their website on two servers.

Well, to host one domain on two servers you can use Round Robin DNS method. The concept is pretty simple. Just add additional “A” record (IP address) in DNS for your domain name which points to other server.

For example, if your website “yourdomain.com” hosted on two different servers, on one server the domain has the IP address and on another server the domain users IP address, then make sure the nameservers of your domain “yourdomain.com” has two “A” records; one for each IP address (FYI, by default there is only one “A” record, as your site only exists on one IP address by default).

read more

Posted in Load Balanced Servers | Tagged , , | Comments Off

W3C. There are many things behind these 3 characters



W3C. Behind these three characters there are lots of things which cover key organizations on the web. But what do you know about this group? Test your knowledge here:

1 – The acronym W3C stands for Wide Web Consortium

2 – W3C group established in 1994

3 – American University, MIT was founded the W3C, though W3C is not an American consortium

4 – Coordinate with web developments is the main role of W3C.

5 – More than 200 web standards maintained by W3C.

6 – In 2014, W3C announced that they are working on online payment standards for the websites.

read more

Posted in Other Related Resources | Tagged | Comments Off