October 3rd in Internet, Linux/Unix by pbu .

Colocation vs Dedicated Hosting – Whats the difference?

I have been long time confused about this simple two types of hosting and atlast i understood the difference between colocation and dedicated hosting.

Colocation

You have to buy server equipment and the co-location service provider gives you all internet facilities in their location like internet connection, safety of your equipment, surveillence and more.. Further the software and administration your responsibility. Simply put take your server hardware equipment from your home/office to your co-location providers office and fit it there. It …

October 2nd in General, PHP Scripts, vBulletin by pbu .

How to Fight Spam in Vbulletin

Until recently i have encountered a sudden new attacks of spam registrations and many many spam threads posted in my forum. I just cant figure out how as I have already enabled captcha in registration page and enabled email confirmation. Despite this somehow spammers managed to bypass the registration and managed to post spam threads.

Fighting spam involves great amount of work. Just make sure you do the following settings in your vbulletin forum.

1. Enable captcha and Email Confirmation forum …

October 1st in Design, Wordpress by pbu .

Remove text wrap around image in wordpress

i have often seen images inside wordpress posts floating and text content would wrap around it. It wont be a nice sight seeing images stacked either to left or right.

Normally if you float: left all the text would wrap around image. But to remove the text flowing around image you have to specify float: none so that the image would stand alone and text would flow belo.

img {
float: none;
padding: 5px;
}

Try it! as float: left and clear: both didnt work …

September 29th in Linux/Unix by pbu .

Sample DNS Zone File for BIND

Sample Zone file for a domain with 2 nameservers ns1.example.com and ns2.example.com for BIND9. You can use this template to define your own nameservers. Just do changes on the domain name and IP addresses.

Be sure to include the below statement in your named.conf
I am assuming that you are running Bind9 or later version in your VPS or dedicated server.

zone “example.com” {
type master;
file “example.com.db”;
}

$TTL 14400
$ORIGIN example.com.

; Specify the primary nameserver ns1.example.com in SOA
@ 14400 IN SOA ns1.example.com. webmaster.example.com. (

September 29th in Internet, Linux/Unix by pbu .

Fast Website Loading with OpenDNS – Alternative to ISPs DNS Servers

When you type a website name in the browser where often the sites dont load fast. You will see in the status bar of the browser “looking up website.com”, which often means the DNS server (resolves hostnames to IP address) is slow causing such a long time to connect to website in your home PC.

If your ISPs DNS server is down which often causes “connection timed out” or host unreachable and this problem may be for for hours until …

September 28th in Linux/Unix by pbu .

how to create new user for phpmyadmin login

PHPMyAdmin and MySQL server complement each other very well. In most situations you have installed mysql server and phpmyadmin.

By default the mysql root password is blank and this is a big security issue and you have change the mysql password as soon as possible. If that is not done anybody could login with phpmyadmin with username root and password blank. You also must avoid to login phpmyadmin with mysql root password. Instead you must create a new user (to …

September 28th in Linux/Unix by pbu .

How to Fix: PHPMyAdmin 403 Forbidden Error

If you have installed phpMyAdmin in your linux server (centos/RHEL/debian), and tried to access phpMyAdmin in most cases you will get this 403 forbidden error. I have seen this issue very often if you are installing phpmyadmin using yum or by apt-get. By default phpmyadmin installed path is /usr/share/phpmyadmin and the apache configuration file is located in /etc/httpd/conf.d/phpmyadmin.conf.

Forbidden
You don’t have permission to access /phpmyadmin/ on this server.

To fix:

nano /etc/httpd/conf.d/phpmyadmin.conf

Remove or comment the first two lines in bold.

#Order Allow,Deny

September 23rd in Linux/Unix by pbu .

Disable anonymous FTP login in cPanel

I have been looking at server logs and there have been a number of connections from different IPs logging in my server. By default anonymous FTP is enabled in cpanel.

Sep 22 19:47:08 server pure-ftpd: (?@x.x.x.x) [INFO] New connection from x.x.x.x
Sep 22 19:47:11 server pure-ftpd: (?@x.x.x.x) [INFO] Anonymous user logged in the virtual FTP: xx.xx.xx.xx
Sep 22 19:47:12 server pure-ftpd: (ftp@x.x.x.x) [INFO] Can’t change directory to /public/: No such file or directory
Sep 22 19:47:12 server pure-ftpd: (ftp@x.x.x.x) [INFO] Can’t change directory to …

September 19th in Money & Finance by pbu .

Paypal view limits missing?

I have been noticing this since this september 2008 and the “view limits” option is missing most PP accounts. Earlier there used to be a cap of $2500 monthly withdrawal limit and this option is missing or entirely disappeard and nowhere to be found for most verified indian paypal accounts.

I wonder how many people have noticed this. I would appreciate if anybody give a feedback if you come across this.

September 19th in Linux/Unix by pbu .

Install Apache Mod_Substitute

I came across interesting module for apache which does automatic search and replacement operations using regular expressions and decided to experiment on it. For information about this module documented in apache website

NOTE: This module is only available in Apache 2.2.7 and later

I was running Centos 5 and unable to load this module in httpd. Here is how i did it. The mod_substitute.so does not come preinstalled under modules so you have to copy the source of mod_substitute.c from the …