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)

solution:
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: 8.8.8.8
Secondary server: 8.8.4.4

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.

OpenDNS

Primary server:  208.67.222.222
Secondary server:  208.67.220.220

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:198.153.192.50
Secondary server:  198.153.194.50

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 198.153.192.50 and 198.153.194.50 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: 8.26.56.26
Secondary server:  8.20.247.20

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: 156.154.70.1
Secondary server:  156.154.71.1

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

ScrubIT

Primary server: 67.138.54.100
Secondary server: 207.225.209.66

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: 4.2.2.1
Secondary server: 4.2.2.6

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” / “gtei.net”).

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

 php-common-5.1.6-15.el5.i386
 php-cli-5.1.6-15.el5.i386
 php-5.1.6-15.el5.i386
 php-pdo-5.1.6-15.el5.i386
 php-bcmath-5.1.6-15.el5.i386
 php-ldap-5.1.6-15.el5.i386
 php-devel-5.1.6-15.el5.i386
 php-gd-5.1.6-15.el5.i386
 php-xml-5.1.6-15.el5.i386
 php-mbstring-5.1.6-15.el5.i386
 php-mysql-5.1.6-15.el5.i386
 php-dba-5.1.6-15.el5.i386

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

Contact Form 7 Secret Mail Tag

[_remote_ip]
This tag will be replaced by the sender’s client IP address.

[_url]

This tag will be replaced by the URL of the contact form.

[_date]

This tag will be replaced by the date of the submission.

[_time]

This tag will be replaced by the time of the submission.

[_post_id]

This tag will be replaced by the ID of the post which contains the contact form.

[_post_name]

This tag will be replaced by the name (slug) of the post which contains the contact form.

[_post_title]

This tag will be replaced by the title of the post which contains the contact form.

[_post_url]

This tag will be replaced by the permalink of the post which contains the contact form.

[_post_author]

This tag will be replaced by the author name of the post which contains the contact form.

[_post_author_email]
This tag will be replaced by the author email of the post which contains the contact form.