May 23rd in Linux/Unix by pbu .

Domain with WWW not resolving problem!

i had a wierd problem with my bind dns server which will not resolve the domain name with www. it works perfectly well, when i type http://domain.com without www in the browser it gets resolves to my IP address.

My zone file looks like this

$ttl 38400
domain.com. …

May 19th in Linux/Unix by pbu .

bind /etc/named.conf missing

i was trying to install bind dns server with my centos 5 and i couldnt locate the /etc/named.conf

i tried installing using

yum install bind-chroot bind*and looks like there is often a problem with bind installed through yum. when i tried to restart the named daemon i am getting failed.

Locating //etc/named.conf: [FAILED]

This …

May 18th in Linux/Unix by pbu .

Install LAMP Server for Centos/RHEL

Linux + Apache + MySQL + PHP/Perl together commonly known as LAMP Server.

* Apache Web Server 2.0
* MySQL Database Serve 5.0
* PHP Scripting Language 5.0
* phpMyAdmin – Web based MySQL Administration Tool
* Webmin – A free web based hosting control panel

Goal

To setup a LAMP server on a fresh VPS/Dedicated server …

May 17th in Linux/Unix by pbu .

Perl modules CPAN error memory allocation

i was trying to install some perl modules to ispconfig and i kept on getting the error with memory allocation problem

perl -MCPAN -e shell
install HTML::Parser
install DB_File
install Net::DNS (when prompted to enable tests, choose “no”)
install Digest::SHA1

Going to read /root/.cpan/sources/authors/01mailrc.txt.gz
Could not pipe[/bin/gzip --decompress --stdout /root/.cpan/sources/authors/01mailrc.txt.gz |]: Cannot allocate memory at /usr/lib/perl5/5.8.8/CPAN.pm line …

May 17th in Linux/Unix by pbu .

Best Server Control Panels for Linux Hosting Servers

Server control panels (web based control panel software) ones for linux can easily help you to easily deploy a server managing hundreds of users and offers management of server resources on the fly. Just get a VPS/Dedicated server install a server control panel and you are good to go with …

May 16th in Linux/Unix by pbu .

Fix: Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’

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

if you are new to installing mysql server you might probably face this error quite often if you type mysql in the shell prompt.

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

To fix:

First start the …

May 15th in Linux/Unix by pbu .

Install ModSecurity for Redhat/Centos

How to Install Mod_Security & Mod_Evasive

ModSecurity is a free open source web application firewall which can help you to guard against LFI (local file inclusion attacks) and SQL injection vulnerabilities. ModEvasive offers protection against DOS (denial of service attacks)

For Redhat/Centos with Cpanel

Just go to Cpanel WHM > Plugins …

May 4th in Linux/Unix, PHP Scripts by pbu .

Implementing Secure File Upload in PHP

Most PHP scripts and content management system scripts (CMS scripts) require writable permission 777 (rwxrwzrwz) to be set for certain folders for uploading photos and videos. Many security experts warn that setting 777 permission means that anybody can upload any content to your server, install malicious code, run unwanted programs …

May 4th in Linux/Unix by pbu .

Easy Install FFmpeg in Linux

How to Install FFmpeg on Linux Server

FFmpeg is so important if you are planning to run a video website with streaming with conversion of video files to different video formats. This tutorial is intended for Centos/Redhat versions of Linux where any novice user can install ffmpeg without compiling the …

January 24th in General, Internet, Linux/Unix, PHP Scripts by pbu .

Webmasterpals.com – New Social Network for Webmasters

Two months ago i gave a thought on targeting the niche social network. Since i myself is a webmaster, a thought of setting up a social network for webmasters ran through my mind. I initially bought dzoic script, since mysite required a specific and fast loading script, i made my …