IPTables Firewall Configuration in RHEL5

May 19, 2012   Linux   Author: 
Firewall are two types hardware firewall and software firewall. The important work of firewall is to monitor and control the incoming and outgoing packets. IPtables is an important firewall in linux. TCP wrapper and SELinux is also a firewall. Package: iptables Service: iptables Operations There are 3 operations iptables can do Accept Allow the packet Drop Drop the packet and don't send error message to sender. Reject Drop the packet and send error message to sender.   Options i  - incoming interface O  - outgoing interface A  - append (e

Web Server Configuration in Redhat

May 18, 2012   Linux   Author: 
Web server is a computer, which deliver web pages. Every web server will have atleast one static IP address and one domain name. When we request a website, for example (www.abc.com), this domain stored in a web server and web server have a static IP. Static IP of web server is stored in DNS, so our browser goes to web server by help of  DNS record to fetch the webpage. Here we are going to see how to configuration of web server in RHEL5 Before going to configure web server, make sure that following are done correctly Hostname Domainname IP address DNS configuration Package:

How To: Install WordPress in Hostgator

May 11, 2012   How To:   Author: 
How To: Install Wordpress in Hostgator
Wordpress is a open source CMS software for website. Wordpress available as two type one is directly provided by wordpress.org and another one is  installing wordpress in self hosted linux server.   1) Go to your control panel, under software and services. There are two options available Quick install and Fantastico De Luxe. Both of the options are same, go Quick Install   2) Based on hosting provider, open source software will be available. Because some hosting provider won't provide wordpress, Hostgator providing more than 50 software. Under Blog software, click

How To: Delete Google Web History

May 10, 2012   How To:   Author: 
How To: Delete Google Web History
  Google keep stored all our search history details, Even this feature is helpful some people may dislike this. Google also offers deleting web search history and pause our search history that has to be stored. Google stores our search history in our google account, if we are not logged in while searching in google search then it will not be stored. Google web history works only, when we are logged in. 1. Login into your google account   2. After login into google, Click Account on top right corner in www.google.com   3.Go to Account overview and click o

HowTo: Create & Use FTP Account in Cpanel

May 9, 2012   How To:   Author: 
HowTo: Create & Use FTP Account in Cpanel
Uploading, managing the files through control panel is hard way, because we can't able to upload more than one file through control panel. For easy accessing of files in the server, a protocol called FTP (File Transfer Protocol) is used. By FTP file transfer the following are possible More than one file can be uploaded simultaneously Drag and drop method will ease our file uploading To create FTP account, Click on FTP Accounts, which is under Files section   Under Add FTP Account section, provide all details i.e., Login, password, Directory and quota for FTP user.

What is the difference between include() and require() in php

May 7, 2012   php   Author: 
include() and require() function does the same process of calling a php or html or js file. When the included file (i.e., calling a file) is missing in its actual directory, then require() function will returns FATAL ERROR and include() function will return WARNING. Read:  what is the use of include() and require() in php include_once() function will include a file only when that file is not included before. This function is the recommended for including files, because including a file more than once will arise ERROR require_once() function performs the same operation performed by

what is difference between mysql_fetch_array(), mysql_fetch_row(), mysql_fetch_assoc() and mysql_fetch_object() in php

May 6, 2012   php   Author: 
what is difference between mysql_fetch_array(), mysql_fetch_row(), mysql_fetch_assoc() and mysql_fetch_object() in php
Many of the php programming newbies get confused about mysql_fetch_array(), mysql_fetch_row(), mysql_fetch_assoc() and mysql_fetch_object() functions, but all of these functions performs a similar process. Let us create a table "tb" for clear example with three fields "id", "username" and "password" Table:  tb Insert a new row into the table with values 1 for id, tobby for username and tobby78$2 for password   db.php [code type=php] <?php $query=mysql_connect("localhost","root",""); mysql_select_db("tobby",$query); ?> [/code]   mysql_fetch

what is the use of include() and require() in php

May 4, 2012   php   Author: 
include() and require() are used to call the php files, this functions are used when a file is needed by more than one or two php files   For including file, code reuse For example: index.php [code type=html] <html> <head> <title>Tobbynews</title> </head> <body> <?php echo “welcome”; ?> </body> </html> [/code] This html codes are used in almost all php files, so we have to include this code in separate file and call that files where we wanted [code type=html] <html> <head> &l

LVM Configuration in RHEL5

April 28, 2012   Linux   Author: 
partition, which has been created is fixed in size. LVM (Logical Volume Manager) configuration is used to extend the partition. Create partition #fdisk -l #fdisk /dev/sda :n  // n means new partition creation :l   // l means logical partition +500M :t  ( toggle 't' convert one partition to another) LVM conversion code:  8e  // for linux LVM :w  // save #partprobe | sync   creating physical volume, PV- Physical Volume Here sda8 is the partition, which is create by above step #pvcreate /dev/sda8   Creating volume group, VG - Volume Group #

Multiple DNS Configuration in Redhat

April 27, 2012   Linux   Author: 
Multiple DNS Configuration in Redhat
Multiple DNS ( Domain Name Server) means configuring a DNS server for more than one IP, which are belongs to different network classes. Example: DNS Configuration for CLASS B and CLASS C IP address #vim named.conf options { listen-on port 53 { 127.0.0.1; 192.168. 1.254; 172.16.0.254; }; listen-on-v6 port 53 { : : 1; }; directory "/var/named"; dump.file statistics-file memstatistics file query-source port 53; query-source-v6 port 53; allow-query { localhost; 192.168.1.0/24; 172.16.0.0./16}; allow-transfer { localhost; 192.168.1.254; 172.16.0.254};