Month: May 2008
-
Accidentally deleted /etc/named.conf in Cpanel
i was into a mess by accidentally deleting /etc/named.conf in my dedicated server running centos 5. Sooner i did that all my sites went down. I was in a terrible situation. For those of you who did that i am documenting here how to restore the file! Go to Cpanel WHM > Configuration file rolleback…
-
Basic Linux Server Security Tutorial – How to Secure Linux Servers?
This tutorial guide covers only basic linux server security tips intended for linux learners. I am writing this guide assuming that you are running Centos 5 or later versions. Install Firewall (APF or CSF Firewall with BFD) ModSecurity (Web application firewall) ModEvasive (Prevent DDOS attacks) Harden SSH server Fix Open DNS Recursion Install RKhunter…
-
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…
-

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…
-
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 > Enable Mod_Security >…
-
India Travel – Tips for using Credit Cards in India for Foreigners
India is a land of rich culture and diversity since ages. Although India is not as developed as EU and North America, people in India is people are so kind to foreigners and are welcome everywhere. Before Travelling to India 1. Always take a VISA or Mastercard with you. VISA or Mastercard is accepted in…
-
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 and could potentially misuse your…
-
Easy Install FFmpeg in Linux
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 source which is a more traditional way of installing the FFmpeg…
