Category Archives: Linux System Admin

mySQL ERROR 2002

ERROR: ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (2)

You need to install the server package:

sudo yum install mysql-server

After installation, you have to start the service:

sudo service mysqld start

and dont forget to secure install

sudo /usr/bin/mysql_secure_installation

Available Free DNS

list of free DNS that you can use,

Google Public DNS

Primary server:
Secondary server:

Google operates the world’s largest public DNS service. Launched in December 2009, it supports many billions of DNS queries per day, much of the volume generated from clients outside the U.S. The company developed this service as one of its corporate initiatives to make the Internet more accessible and easier for everyone to use, making it a logical choice for users worldwide.


Primary server:
Secondary server:

The oldest of all services on this list, OpenDNS also supports billions of DNS queries per day. In addition to its basic name resolution service, OpenDNS Home Solutions provides free Web site filtering of adult content (called FamilyShield) and URL spell correction with accompanying installed software. The company also sells various security products to businesses. Those looking for an alternative to Google products and a service that works well outside the U.S. also tend to like OpenDNS.

Norton DNS for Home
Primary server:
Secondary server:

Security software company Symantec began offering its free Norton DNS in 2010. The package works similarly to OpenDNS FamilyShield. Utility programs that automatically configure the DNS server addresses and and set up basic content filtering exist for Windows, Mac OS X and Android. Those already using OpenDNS or Google Public DNS but dissatisfied with those service can try Norton DNS to see how it compares.

Comodo Secure DNS

Primary server:
Secondary server:

In addition to its free DNS service, Comodo is known for the Antivirus package it sells along with other software products.

DNS Advantage

Primary server:
Secondary server:

A company called Neustar manages both the free DNS Advantage service as well as the commercial (not free) UltraDNS system.


Primary server:
Secondary server:

Designed to automatically block pornographic and other undesirable Web sites, ScrubIT made its debut in 2007 and received mixed reviews for its aggressive filtering policy.

Verizon / Level 3 CommunicationsU.S Internet provider

Primary server:
Secondary server:

Verizon maintains public DNS servers that can be used by both subscribers and non-subscribers. Verizon’s servers (sometimes identified as “Level 3 Communications” or as “Genuity” / “”).

how to upgrade PHP 5.1 To 5.2 centos

This guide describes how to upgrade the standard PHP 5.1.x packages in CentOS 5.x 32-bit to the current development versions 5.2.x. These instructions were created using CentOS 5.3 32-bit and with the following PHP packages installed:

# rpm -qa |grep php


As long as you’re using the standard PHP packages on your CentOS server you won’t need to do anything extra. If you’re using extra PHP packages that aren’t part of the standard CentOS repositories (like php-mcrypt) you’ll have to remove them or find updated versions of them.

Add the development repositories
Continue reading