<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Servers and Unix World</title>
	<atom:link href="http://www.expertslogin.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.expertslogin.com</link>
	<description>Linux/Solaris/Unix Technical Knowledge Base</description>
	<lastBuildDate>Sat, 19 May 2012 19:24:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>How To Use Linux Grep Command To Find Strings</title>
		<link>http://www.expertslogin.com/linux-administration/linux-grep-command-find-strings/</link>
		<comments>http://www.expertslogin.com/linux-administration/linux-grep-command-find-strings/#comments</comments>
		<pubDate>Sun, 06 May 2012 19:25:35 +0000</pubDate>
		<dc:creator>ZACH</dc:creator>
				<category><![CDATA[Linux Administration]]></category>
		<category><![CDATA[grep for multiple strings]]></category>
		<category><![CDATA[grep multiple strings]]></category>
		<category><![CDATA[grep search for string]]></category>
		<category><![CDATA[grep string]]></category>
		<category><![CDATA[linux grep examples]]></category>

		<guid isPermaLink="false">http://www.expertslogin.com/?p=1548</guid>
		<description><![CDATA[Linux and UNIX-like systems, all system configuration information is stored and manipulated in plain text form. The grep tool allows to search of text, such as a file or output of the command, for a term or pattern matching regular expressions. Grep is used to search text for patterns specified by the user. It is [...]]]></description>
			<content:encoded><![CDATA[<p>Linux and UNIX-like systems, all system configuration information is stored and manipulated in plain text form.  The grep tool allows to search of text, such as a file or output of the command, for a term or pattern matching regular expressions. Grep is used to search text for patterns specified by the user. It is one of the most useful and powerful  commands on Linux and UNIX like operating system. When grep finds match in a line, it copies in to the screen that is stdout. Using grep command you can replace the string in given file. Grep provides a number of additional options that, if specified , force the program to output the context for each match.</p>
<p>Syntax:-<br />
grep [ option(s) ]  pattern [file(s) ]</p>
<p><strong>Example:-1</strong></p>
<p>The basic usage of grep command is to search for a specific string in the specified file as shown below.</p>
<blockquote><p>[root@localhost ~]# grep root /etc/passwd<br />
root:x:0:0:root:/root:/bin/bash<br />
operator:x:11:0:operator:/root:/sbin/nologin</p></blockquote>
<p>Above example grep searches the /etc/passwd file for root string and redirected to stdout.</p>
<p>Options<br />
-i 	This is also a basic usage of the grep. This searches for the given string/pattern case insensitively. So it matches all the words such as “hal”, “HAL” and “The” case insensitively as shown below.	</p>
<p>Even you can use Line and,  anchors, character classes, wild cards, </p>
<blockquote><p>[root@localhost ~]# grep -i HAL /etc/passwd<br />
halt:x:7:0:halt:/sbin:/sbin/halt<br />
haldaemon:x:68:68:HAL daemon:/:/sbin/nologin</p></blockquote>
<p><strong>Example: 2</strong> Searching string in a given file</p>
<blockquote><p>[root@localhost ~]# grep &#8220;root&#8221; /etc/passwd<br />
root:x:0:0:root:/root:/bin/bash<br />
operator:x:11:0:operator:/root:/sbin/nologin</p></blockquote>
<p><strong>Example: 3</strong> Searching string in a multiple files.</p>
<blockquote><p>[root@localhost ~]# grep &#8220;root&#8221; /etc/passwd /etc/group<br />
/etc/passwd:root:x:0:0:root:/root:/bin/bash<br />
/etc/passwd:operator:x:11:0:operator:/root:/sbin/nologin<br />
/etc/group:root:x:0:root<br />
/etc/group:bin:x:1:root,bin,daemon<br />
/etc/group:daemon:x:2:root,bin,daemon<br />
/etc/group:sys:x:3:root,bin,adm<br />
/etc/group:adm:x:4:root,adm,daemon<br />
/etc/group:disk:x:6:root<br />
/etc/group:wheel:x:10:root</p></blockquote>
<p><strong>Example: 4</strong> Regular Expressions in files</p>
<p>? The preceding item is optional and matched at most once.<br />
•	* The preceding item will be matched zero or more times.<br />
•	+ The preceding item will be matched one or more times.<br />
•	{n} The preceding item is matched exactly n times.<br />
•	{n,} The preceding item is matched n or more times.<br />
•	{,m} The preceding item is matched at most m times.<br />
•	{n,m} The preceding item is matched at least n times, but not more than m times.</p>
<blockquote><p>[root@localhost ~]# grep &#8221; *oot&#8221; /etc/passwd<br />
root:x:0:0:root:/root:/bin/bash<br />
operator:x:11:0:operator:/root:/sbin/nologin</p></blockquote>
<p><strong>Example: 5</strong> Searching full word using grep –w</p>
<blockquote><p>[root@localhost ~]# grep -iw &#8220;samba&#8221; /etc/samba/smb.conf<br />
# This is the main Samba configuration file. You should read the<br />
# here. Samba has a huge number of configurable options (perhaps too<br />
# For a step to step guide on installing, configuring and using samba,<br />
# read the Samba-HOWTO-Collection. This may be obtained from:</p></blockquote>
<p><strong>Example : 6</strong></p>
<p>-A option which displays the N lines after the string match.</p>
<blockquote><p>[root@localhost ~]# grep -A 2 &#8220;root&#8221; /etc/passwd<br />
root:x:0:0:root:/root:/bin/bash<br />
bin:x:1:1:bin:/bin:/sbin/nologin<br />
daemon:x:2:2:daemon:/sbin:/sbin/nologin</p>
<p>operator:x:11:0:operator:/root:/sbin/nologin<br />
games:x:12:100:games:/usr/games:/sbin/nologin<br />
gopher:x:13:30:gopher:/var/gopher:/sbin/nologin
</p></blockquote>
<p><strong>Example: 6</strong> -B option which displays the N lines before the string match.</p>
<blockquote><p>[root@localhost ~]# grep -B 2 &#8220;root&#8221; /etc/passwd<br />
root:x:0:0:root:/root:/bin/bash<br />
&#8211;<br />
news:x:9:13:news:/etc/news:<br />
uucp:x:10:14:uucp:/var/spool/uucp:/sbin/nologin<br />
operator:x:11:0:operator:/root:/sbin/nologin</p></blockquote>
<p><strong>Example: 7</strong> -E option can be used search multiple strings</p>
<blockquote><p>[root@localhost ~]# ls | grep -E “li|ovo”<br />
linux24<br />
ovo8_linux24.sh<br />
[root@localhost ~]#</p></blockquote>
<p>Or we can use</p>
<blockquote><p>[root@localhost ~]# ls | grep ‘li\|ovo’<br />
linux24<br />
ovo8_linux24.sh<br />
[root@localhost ~]#</p></blockquote>
<p><strong>Example: 8</strong> Below grep command will search string in all files except syslog.log</p>
<blockquote><p>[root@localhost ~]#grep -r string * | grep -v ‘/\syslog.log/’</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.expertslogin.com/linux-administration/linux-grep-command-find-strings/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Learn Linux NFS Mount Options in Detail</title>
		<link>http://www.expertslogin.com/linux-administration/learn-linux-nfs-mount-options-detail/</link>
		<comments>http://www.expertslogin.com/linux-administration/learn-linux-nfs-mount-options-detail/#comments</comments>
		<pubDate>Tue, 24 Apr 2012 22:19:23 +0000</pubDate>
		<dc:creator>ZACH</dc:creator>
				<category><![CDATA[Linux Administration]]></category>
		<category><![CDATA[featured]]></category>
		<category><![CDATA[full-image]]></category>
		<category><![CDATA[linux nfs]]></category>
		<category><![CDATA[linux nfs mount]]></category>
		<category><![CDATA[mount nfs]]></category>
		<category><![CDATA[mount nfs linux]]></category>
		<category><![CDATA[nfs in linux]]></category>
		<category><![CDATA[nfs mount command]]></category>

		<guid isPermaLink="false">http://www.expertslogin.com/?p=1413</guid>
		<description><![CDATA[About NFS (Network File System) And Options to Mount NFS is a client and server architecture based protocol, developed by Sun Microsystems. The main purpose of this protocol is sharing file/file system over network. In general, files/file system sharing between two UNIX machines. User on client computer access remote file system over a network in [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_1424" class="wp-caption alignleft" style="width: 266px"><a href="http://www.expertslogin.com/wp-content/uploads/2012/04/NFS_Linux.png"><img src="http://www.expertslogin.com/wp-content/uploads/2012/04/NFS_Linux.png" alt="" title="NFS_Linux" width="256" height="256" class="size-full wp-image-1424" /></a><p class="wp-caption-text">NFS Linux</p></div>
<h3>About NFS (Network File System) And Options to Mount</h3>
<p>NFS is a client and server architecture based protocol, developed by Sun Microsystems. The main purpose of this protocol is sharing file/file system over network.  In general, files/file system sharing between two UNIX machines. User on client computer access remote file system over a network in manner similar to how local storage accessed.</p>
<p>	Here we will discuss, how to access NFS share (exports) from the client.</p>
<p>Assuming that HOST A (NFS Server) running NFS service (rpc.mountd, nfsd, rpc.rquotad). Also you can confirm by executing following command on NFS Server.</p>
<blockquote><p> [root@localhost ~]# service nfs status<br />
rpc.mountd (pid 2919) is running&#8230;<br />
nfsd (pid 2916 2915 2914 2913 2910 2909 2908 2907) is running&#8230;<br />
rpc.rquotad (pid 2903) is running&#8230;<br />
[root@localhost ~]#</p></blockquote>
<p>Now login to the HOST B (NFS Client) execute following command, to find out shared directories in the NFS Server.</p>
<blockquote><p>[root@localhost ~]# showmount -e 192.168.1.4<br />
Export list for 192.168.1.4:<br />
/mnt/array1/RHEL5   192.168.1.0/255.255.255.0<br />
/mnt/array1/RHEL632 192.168.1.0/255.255.255.0<br />
[root@localhost ~]#</p></blockquote>
<p>While entering showmount command, you have to specify IP/Hostname (FQDN) of the NFS Server. After getting exported file system information, you can access by the mount command.</p>
<blockquote><p>[root@localhost ~]# mount -t nfs 192.168.1.4:/mnt/array1/RHEL5 /data/</p></blockquote>
<p>Before mounting remote file system, first create mount point, here I have created /data directory and mounted remote file system.</p>
<p><strong>Syntax:</strong></p>
<p>#mount  -t vfstype [-o options]  NFS Servername:/exporteddirectory   /mount point<br />
or<br />
#mount -t nfs -o options host:/remote/export /local/directory</p>
<p><strong>Options:</strong></p>
<p>-t	- Option specifies type of the file system that is NFS.<br />
-o 	intr—this option is used in non reliable network, or network having more network congestion. NFS request will be interrupted when server is not reachable.</p>
<p><strong>Example:</strong></p>
<blockquote><p>[root@localhost ~]#  mount -t nfs -o intr 192.168.1.4:/mnt/array1/RHEL5 /data/<br />
[root@localhost ~]# mount | grep -i intr<br />
192.168.1.4:/mnt/array1/RHEL5 on /data type nfs (rw,intr,addr=192.168.1.4)</p></blockquote>
<p>	Hard – if hard option is specified during nfs mount, user cannot terminate the process waiting for NFS  communication to resume.</p>
<p><strong>Example:</strong></p>
<blockquote><p>[root@localhost ~]#  mount -t nfs -o hard 192.168.1.4:/mnt/array1/RHEL5 /data/<br />
[root@localhost ~]# mount | grep -i hard<br />
192.168.1.4:/mnt/array1/RHEL5 on /data type nfs (rw,hard,addr=192.168.1.4)</p></blockquote>
<p>	Soft- if soft option is specified during nfs mount, user will get error alert when NFS server is not reachable. </p>
<p><strong>Example:</strong></p>
<blockquote><p>[root@localhost ~]#  mount -t nfs -o soft 192.168.1.4:/mnt/array1/RHEL5 /data/<br />
[root@localhost ~]# mount | grep -i soft<br />
192.168.1.4:/mnt/array1/RHEL5 on /data type nfs (rw,soft,addr=192.168.1.4)<br />
[root@localhost ~]#</p></blockquote>
<p>	Nfsvers=value&#8211; if this  option is specified during nfs mount  NFS client uses particular NFS protocol version to communicate.</p>
<p><strong>Example:</strong></p>
<blockquote><p>[root@localhost ~]#  mount -t nfs -o nfsvers=3 192.168.1.4:/mnt/array1/RHEL5 /data/<br />
[root@localhost ~]# mount | grep -i nfsvers<br />
192.168.1.4:/mnt/array1/RHEL5 on /data type nfs (rw,nfsvers=3,addr=192.168.1.4)</p></blockquote>
<p>	Tcp or UDP:   As said above, NFS is client and server architecture based protocol and it can be used transport layer as TCP and UDP both depend upon the application requirement.</p>
<p><strong>Example: TCP</strong></p>
<blockquote><p>[root@localhost ~]#  mount -t nfs -o tcp 192.168.1.4:/mnt/array1/RHEL5 /data/<br />
[root@localhost ~]# mount | grep -i tcp<br />
192.168.1.4:/mnt/array1/RHEL5 on /data type nfs (rw,tcp,addr=192.168.1.4)</p></blockquote>
<p><strong>Example: UDP</strong></p>
<blockquote><p>[root@localhost ~]#  mount -t nfs -o udp 192.168.1.4:/mnt/array1/RHEL5 /data/<br />
[root@localhost ~]# mount | grep -i udp<br />
192.168.1.4:/mnt/array1/RHEL5 on /data type nfs (rw,udp,addr=192.168.1.4)</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.expertslogin.com/linux-administration/learn-linux-nfs-mount-options-detail/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Configure Iscsi Storage on Redhat Linux</title>
		<link>http://www.expertslogin.com/linux-administration/configure-iscsi-storage-redhat-linux/</link>
		<comments>http://www.expertslogin.com/linux-administration/configure-iscsi-storage-redhat-linux/#comments</comments>
		<pubDate>Wed, 11 Apr 2012 19:28:09 +0000</pubDate>
		<dc:creator>ZACH</dc:creator>
				<category><![CDATA[Linux Administration]]></category>
		<category><![CDATA[iscsitarget]]></category>
		<category><![CDATA[linux iscsi]]></category>
		<category><![CDATA[linux iscsi server]]></category>
		<category><![CDATA[open-iscsi]]></category>

		<guid isPermaLink="false">http://www.expertslogin.com/?p=1391</guid>
		<description><![CDATA[Here I am trying to explain Equallogic Lun configuration on Redhat Linux 5 version. Linux Iscsi Storage Lun Mapping is much simpler on Equallogic Storage Array. Free Open Isci tool is used as the iscsi initiator. Once installed you can use iscsiadm command to configure the Lun. Dell recommends to configure iscsi on redhat 5 [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_1605" class="wp-caption alignleft" style="width: 310px"><a href="http://www.expertslogin.com/wp-content/uploads/2012/04/Iscsi-Storage-Network.jpg"><img src="http://www.expertslogin.com/wp-content/uploads/2012/04/Iscsi-Storage-Network-300x258.jpg" alt="" title="Iscsi Storage Network" width="300" height="258" class="size-medium wp-image-1605" /></a><p class="wp-caption-text">Iscsi Storage Network</p></div>
<p>Here I am trying to explain Equallogic Lun configuration on Redhat Linux 5 version. Linux Iscsi Storage Lun Mapping is much simpler on Equallogic Storage Array. Free Open Isci tool is used as the iscsi initiator. Once installed you can use iscsiadm command to configure the Lun. Dell recommends to configure iscsi on redhat 5 or above version. </p>
<p>First you should create volumes on the storage group interface manager and then needs to maps those Luns to server. You need to mention either iscsi initiator name or IP address to map the Lun to the server(host). If you need any authentication you can use chap. Now you can move to Linux host for further iscsi configuration.</p>
<p><strong>Show current installed redhat version and update</strong></p>
<blockquote><p>[root@BobTestBox ~]# cat /etc/redhat-release<br />
Red Hat Enterprise Linux Server release 5.7 (Tikanga)</p></blockquote>
<p><strong>Display Architecture </strong></p>
<blockquote><p>[root@BobTestBox ~]# getconf LONG_BIT<br />
64</p></blockquote>
<p><strong>Check isci initiator installed or not (You need iscsi-initiator-utils-6.2.0.742-0.6.el5 or greater)</strong></p>
<blockquote><p>[root@BobTestBox ~]# rpm -qa | grep -i iscsi<br />
iscsi-initiator-utils-6.2.0.872-10.el5</p></blockquote>
<p><strong>Display interfaces and IP address details</strong></p>
<blockquote><p>[root@BobTestBox ~]# ifconfig -a | more<br />
eth0      Link encap:Ethernet  HWaddr 00:50:56:AB:00:E7<br />
          inet addr:172.28.*.*  Bcast:172.28.12.255  Mask:255.255.255.0<br />
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1<br />
          RX packets:2503 errors:0 dropped:0 overruns:0 frame:0<br />
          TX packets:838 errors:0 dropped:0 overruns:0 carrier:0<br />
          collisions:0 txqueuelen:1000<br />
          RX bytes:196784 (192.1 KiB)  TX bytes:98212 (95.9 KiB)</p>
<p>eth1      Link encap:Ethernet  HWaddr 00:50:56:AB:00:E8<br />
          inet addr:172.28.*.*  Bcast:172.28.40.255  Mask:255.255.255.0<br />
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1<br />
          RX packets:4237 errors:0 dropped:0 overruns:0 frame:0<br />
          TX packets:3807 errors:0 dropped:0 overruns:0 carrier:0<br />
          collisions:0 txqueuelen:1000<br />
          RX bytes:966177 (943.5 KiB)  TX bytes:359247 (350.8 KiB)</p>
<p>eth2      Link encap:Ethernet  HWaddr 00:50:56:AB:01:00<br />
          inet addr:172.28.*.*  Bcast:172.28.40.255  Mask:255.255.255.0<br />
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1<br />
          RX packets:4387 errors:0 dropped:0 overruns:0 frame:0<br />
          TX packets:3960 errors:0 dropped:0 overruns:0 carrier:0<br />
          collisions:0 txqueuelen:1000<br />
          RX bytes:894415 (873.4 KiB)  TX bytes:384013 (375.0 KiB)</p>
<p>lo        Link encap:Local Loopback<br />
          inet addr:127.0.0.1  Mask:255.0.0.0<br />
         UP LOOPBACK RUNNING  MTU:16436  Metric:1<br />
          RX packets:10 errors:0 dropped:0 overruns:0 frame:0<br />
          TX packets:10 errors:0 dropped:0 overruns:0 carrier:0<br />
          collisions:0 txqueuelen:0<br />
          RX bytes:660 (660.0 b)  TX bytes:660 (660.0 b)</p></blockquote>
<p><strong>Creating the interface files for MPIO</strong></p>
<blockquote><p>[root@BobTestBox ~]# iscsiadm -m iface -I eth1 -o new<br />
New interface eth1 added</p>
<p>[root@BobTestBox ~]# iscsiadm -m iface -I eth2 -o new<br />
New interface eth2 added</p></blockquote>
<p><strong>Updating  the interface name for each port</strong></p>
<blockquote><p>[root@BobTestBox ~]# iscsiadm -m iface -I eth1  -o update -n iface.net_ifacename -v eth1<br />
eth1 updated.</p>
<p>[root@BobTestBox ~]# iscsiadm -m iface -I eth2  -o update -n iface.net_ifacename -v eth2<br />
eth2 updated.</p>
<p>[root@BobTestBox ~]# cat /var/lib/iscsi/ifaces/eth1<br />
# BEGIN RECORD 2.0-872<br />
iface.iscsi_ifacename = eth1<br />
iface.net_ifacename = eth1<br />
iface.transport_name = tcp<br />
# END RECORD<br />
[root@localhost ~]# cat /var/lib/iscsi/ifaces/eth2<br />
# BEGIN RECORD 2.0-872<br />
iface.iscsi_ifacename = eth2<br />
iface.net_ifacename = eth2<br />
iface.transport_name = tcp<br />
# END RECORD
</p></blockquote>
<p><strong>Iscsi target Discovering using iscsiadm command</strong></p>
<blockquote><p>[root@BobTestBox ~]# iscsiadm -m discovery -t st -p 172.28.*.*:3260<br />
172.28.*.*:3260,1 iqn.2001-05.com.equallogic:0-8a0906-a146b2a07-57858e634784f7b0-bobrhel<br />
172.28.*.*:3260,1 iqn.2001-05.com.equallogic:0-8a0906-a146b2a07-57858e634784f7b0-bobrhel</p></blockquote>
<p><strong>Logging into target ( You have option to login individually also)</strong></p>
<blockquote><p>[root@BobTestBox ~]# iscsiadm -m node -l<br />
Logging in to [iface: eth2, target: iqn.2001-05.com.equallogic:0-8a0906-a146b2a07-57858e634784f7b0-bobrhel, portal: 172.28.*.*,3260]<br />
Logging in to [iface: default, target: iqn.2001-05.com.equallogic:0-8a0906-a146b2a07-57858e634784f7b0-bobrhel, portal: 172.28.*.*,3260]<br />
Logging in to [iface: eth1, target: iqn.2001-05.com.equallogic:0-8a0906-a146b2a07-57858e634784f7b0-bobrhel, portal: 172.28.*.*,3260]<br />
Login to [iface: eth2, target: iqn.2001-05.com.equallogic:0-8a0906-a146b2a07-57858e634784f7b0-bobrhel, portal: 172.28.*.*,3260] successful.<br />
Login to [iface: default, target: iqn.2001-05.com.equallogic:0-8a0906-a146b2a07-57858e634784f7b0-bobrhel, portal: 172.28.*.*,3260] successful.<br />
Login to [iface: eth1, target: iqn.2001-05.com.equallogic:0-8a0906-a146b2a07-57858e634784f7b0-bobrhel, portal: 172.28.*.*,3260] successful.<br />
[root@BobTestBox ~]#
</p></blockquote>
<p><strong>Display scsi attached device</strong></p>
<blockquote><p>[root@BobTestBox ~]# cat /proc/scsi/scsi<br />
Attached devices:<br />
Host: scsi0 Channel: 00 Id: 00 Lun: 00<br />
  Vendor: VMware   Model: Virtual disk     Rev: 1.0<br />
  Type:   Direct-Access                    ANSI SCSI revision: 02<br />
Host: scsi7 Channel: 00 Id: 00 Lun: 00<br />
  Vendor: EQLOGIC  Model: 100E-00          Rev: 5.2<br />
  Type:   Direct-Access                    ANSI SCSI revision: 05<br />
Host: scsi6 Channel: 00 Id: 00 Lun: 00<br />
  Vendor: EQLOGIC  Model: 100E-00          Rev: 5.2<br />
  Type:   Direct-Access                    ANSI SCSI revision: 05<br />
[root@BobTestBox ~]#</p></blockquote>
<p><strong>Below command will display Iscsi session details</strong></p>
<blockquote><p>[root@BobTestBox ~]# iscsiadm -m session<br />
tcp: [6] 172.28.*.*:3260,1 iqn.2001-05.com.equallogic:0-8a0906-a146b2a07-57858e634784f7b0-bobrhel<br />
tcp: [7] 172.28.*.*:3260,1 iqn.2001-05.com.equallogic:0-8a0906-a146b2a07-57858e634784f7b0-bobrhel<br />
[root@BobTestBox ~]#</p></blockquote>
<p><strong>Display Disk details</strong></p>
<blockquote><p>[root@BobTestBox ~]# fdisk -l</p>
<p>Disk /dev/sda: 5368 MB, 5368709120 bytes<br />
255 heads, 63 sectors/track, 652 cylinders<br />
Units = cylinders of 16065 * 512 = 8225280 bytes</p>
<p>   Device Boot      Start         End      Blocks   Id  System<br />
/dev/sda1   *           1         574     4610623+  83  Linux<br />
/dev/sda2             575         652      626535   82  Linux swap / Solaris</p>
<p>Disk /dev/dm-0: 1085 MB, 1085276160 bytes<br />
255 heads, 63 sectors/track, 131 cylinders<br />
Units = cylinders of 16065 * 512 = 8225280 bytes</p>
<p>Disk /dev/dm-0 doesn&#8217;t contain a valid partition table</p>
<p>Disk /dev/sde: 1085 MB, 1085276160 bytes<br />
34 heads, 61 sectors/track, 1022 cylinders<br />
Units = cylinders of 2074 * 512 = 1061888 bytes</p>
<p>Disk /dev/sde doesn&#8217;t contain a valid partition table</p>
<p>Disk /dev/sdf: 1085 MB, 1085276160 bytes<br />
34 heads, 61 sectors/track, 1022 cylinders<br />
Units = cylinders of 2074 * 512 = 1061888 bytes</p>
<p>Disk /dev/sdf doesn&#8217;t contain a valid partition table<br />
[root@BobTestBox ~]#
</p></blockquote>
<p><strong>Checking whether Equallogic Hit installed ( I have already installed HIT Kit 1.0.0- #rpm –ivh equallogic-host-tools-1.0.0-1.el5.x86_64.rpm )</strong></p>
<blockquote><p>[root@BobTestBox ~]# rpm -qa | grep -i equa<br />
equallogic-host-tools-1.0.0-1.el5</p></blockquote>
<p>Hit requires dkms 1.95 (Dynamic kernel module support) installed. ( I have already installed dkms &#8211; #rpm –ivh dkms-1.95.32-1.noarch.rpm )</p>
<blockquote><p>[root@BobTestBox ~]# rpm -qa | grep -i dkms<br />
dkms-1.95.32-1</p></blockquote>
<p>Dkms module can be download from http://linux.dell.com/dkms/testing/permalink/  </p>
<p><strong>Restarting EHCMD service (dell multipath module )</strong></p>
<blockquote><p>[root@BobTestBox ~]# /etc/init.d/ehcmd restart<br />
Stopping ehcmd:                                            [FAILED]<br />
Starting ehcmd:                                            [  OK  ]</p></blockquote>
<p><strong>Restarting Multipath deamon ( You can set alias ,uuid , device details , blacklist node in multhipath.conf file before restarting) </strong></p>
<blockquote><p>[root@BobTestBox ~]# /etc/init.d/multipathd restart<br />
Stopping multipathd daemon:                                [FAILED]<br />
Starting multipathd daemon:                                [  OK  ]<br />
[root@BobTestBox ~]#</p></blockquote>
<p><strong>Display multhipath details</strong></p>
<blockquote><p>[root@BobTestBox ~]# multipath -ll<br />
Bob_rhel_lun () dm-0 EQLOGIC,100E-00<br />
[size=1.0G][features=1 queue_if_no_path][hwhandler=0][rw]<br />
\_ round-robin 0 [prio=2][enabled]<br />
\_ 3:0:0:0 sdc 8:32  [active][ready]<br />
\_ 1:0:0:0 sdd 8:48  [active][ready]<br />
[root@BobTestBox ~]#
</p></blockquote>
<p><strong>Device mapper target device status</strong></p>
<blockquote><p>[root@BobTestBox ~]# dmsetup ls &#8211;target=multipath<br />
Bob_rhel_lun    (253, 0)<br />
[root@BobTestBox ~]#</p></blockquote>
<p><strong>Mounting the the filesystem. I have already formated the filesystem using mkfs command (mkfs.ext3 /dev/mapper/Bob_rhel_lun)</strong></p>
<blockquote><p>[root@BobTestBox ~]# mount /dev/mapper/Bob_rhel_lun /data</p></blockquote>
<p><strong>Display disk usage</strong></p>
<blockquote><p>[root@BobTestBox ~]# df -h<br />
Filesystem            Size  Used Avail Use% Mounted on<br />
/dev/sda1             4.3G  2.7G  1.5G  66% /<br />
tmpfs                 502M     0  502M   0% /dev/shm<br />
/dev/mapper/Bob_rhel_lun    1019M   34M  934M   4% /data<br />
[root@BobTestBox ~]#
</p></blockquote>
<p><strong>For persistence on reboot , added mount point to fstab file</strong></p>
<blockquote><p>[root@BobTestBox ~]# cat /etc/fstab<br />
LABEL=/                 /                       ext3    defaults        1 1<br />
tmpfs                   /dev/shm                tmpfs   defaults        0 0<br />
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0<br />
sysfs                   /sys                    sysfs   defaults        0 0<br />
proc                    /proc                   proc    defaults        0 0<br />
LABEL=SWAP-sda2         swap                    swap    defaults        0 0<br />
/dev/mapper/Bob_rhel_lun      /data                     ext3    defaults        0 0<br />
[root@BobTestBox ~]#</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.expertslogin.com/linux-administration/configure-iscsi-storage-redhat-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Add New Modules In Apache</title>
		<link>http://www.expertslogin.com/linux-administration/add-modules-apache/</link>
		<comments>http://www.expertslogin.com/linux-administration/add-modules-apache/#comments</comments>
		<pubDate>Tue, 31 Jan 2012 22:14:34 +0000</pubDate>
		<dc:creator>ZACH</dc:creator>
				<category><![CDATA[Linux Administration]]></category>
		<category><![CDATA[add apache module]]></category>
		<category><![CDATA[apache module]]></category>
		<category><![CDATA[apache2 add module]]></category>

		<guid isPermaLink="false">http://www.expertslogin.com/?p=1136</guid>
		<description><![CDATA[A module provides variety of features for apache such as security, perl and php support etc. To configure apache for additional modules you need to add LoadModule directive in httpd.conf or modules.conf file. For example you can add session management and tracking through consistent identifiers using mod_session. You need to add following entry to Apache [...]]]></description>
			<content:encoded><![CDATA[<p>A module provides variety of features for apache such as security, perl and php support etc. To configure apache for additional modules you need to add LoadModule directive in httpd.conf or modules.conf file. For example you can add session management and tracking through consistent identifiers using mod_session. You need to add following entry to Apache 1.3.xx server (under Debian Linux you need to add to /etc/apache-perl/modules.conf file):</p>
<p>LoadModule auth_module /usr/lib/apache/1.3/mod_session.so</p>
<p>Please note that your Apache server must configure for Dynamic Shared Objects (DSOs). Let us assume you have downloaded the module called mymodule.c and you would like to compile and use this module, then you can use Apache apxs utility to compile and install this module:</p>
<p>Build and install a third-party Apache module, say mod_foo.c, into its own DSO mod_foo.so outside of the Apache source tree using apxs:</p>
<p># apxs -c mymodule.c<br />
# apxs -i -a -n mymodule mymodule.la</p>
<p>Then open your httpd.conf file and add mymodule using top LoadModule Directive:</p>
<p># vi  httpd.conf</p>
<p>Append following line to server config context (this means that the directive may be used in the server configuration files (e.g., httpd.conf), but not within any or containers. It is not allowed in .htaccess files at all).</p>
<p>LoadModule mymodule /usr/lib/httpd/modules/mymodule.so</p>
]]></content:encoded>
			<wfw:commentRss>http://www.expertslogin.com/linux-administration/add-modules-apache/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Speed Webpages Using Mod_Deflate Module On Apache</title>
		<link>http://www.expertslogin.com/linux-administration/speed-webpages-moddeflate-module-apache/</link>
		<comments>http://www.expertslogin.com/linux-administration/speed-webpages-moddeflate-module-apache/#comments</comments>
		<pubDate>Wed, 14 Dec 2011 10:05:21 +0000</pubDate>
		<dc:creator>ZACH</dc:creator>
				<category><![CDATA[Linux Administration]]></category>
		<category><![CDATA[mod_deflate]]></category>

		<guid isPermaLink="false">http://www.expertslogin.com/?p=1132</guid>
		<description><![CDATA[Mod_deflate module is used with Apache to increase the speed of download. This module can be used with Apache and it will compress the data before sending to the client. It now been installed by default with most flavours. So you can check before you try to install it. Note: Processing takes additional CPU and [...]]]></description>
			<content:encoded><![CDATA[<p>Mod_deflate module is used with Apache to increase the speed of download. This module can be used with Apache and it will compress the data before sending to the client. It now been installed by default with most flavours. So you can check before you try to install it. Note: Processing takes additional CPU and memory on your server as well as on the client browser. </p>
<p>Below example show how to enable mod_deflate module.</p>
<p>LoadModule deflate_module modules/mod_deflate.so</p>
<p>Append following configuration <Location /> directive:<br />
<Location /><br />
AddOutputFilterByType DEFLATE text/html text/plain text/xml<br />
&#8230;.<br />
&#8230;<br />
<Location></p>
<p>Above line only compress html and xml files. Here is the configuration from one of my production box:<br />
<Location /><br />
&#8230;<br />
&#8230;<br />
AddOutputFilterByType DEFLATE text/plain<br />
AddOutputFilterByType DEFLATE text/xml<br />
AddOutputFilterByType DEFLATE application/xhtml+xml<br />
AddOutputFilterByType DEFLATE text/css<br />
AddOutputFilterByType DEFLATE application/xml<br />
AddOutputFilterByType DEFLATE image/svg+xml<br />
AddOutputFilterByType DEFLATE application/rss+xml<br />
AddOutputFilterByType DEFLATE application/atom_xml<br />
AddOutputFilterByType DEFLATE application/x-javascript<br />
AddOutputFilterByType DEFLATE application/x-httpd-php<br />
AddOutputFilterByType DEFLATE application/x-httpd-fastphp<br />
AddOutputFilterByType DEFLATE application/x-httpd-eruby<br />
AddOutputFilterByType DEFLATE text/html<br />
&#8230;<br />
&#8230;<br />
<Location></p>
<p>Close and save the file. Next restart apache web server. All of the above extension file should compressed by mod_deflate:<br />
# /etc/init.d/httpd restart</p>
<p>You can also specify specific directory and enabling compression only for the html files. For example /static/help/ directory:<br />
<Directory "/static/help"><br />
AddOutputFilterByType DEFLATE text/html<br />
</Directory></p>
<p>In real life, there are issues with compressing other types of files such as mp3 or images. If you don’t want to compress images or mp3 files, add following to your configuration:<br />
SetOutputFilter DEFLATE<br />
SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary<br />
SetEnvIfNoCase Request_URI \.(?:exe|t?gz|zip|bz2|sit|rar)$ no-gzip dont-vary<br />
SetEnvIfNoCase Request_URI \.pdf$ no-gzip dont-vary<br />
SetEnvIfNoCase Request_URI \.avi$ no-gzip dont-vary<br />
SetEnvIfNoCase Request_URI \.mov$ no-gzip dont-vary<br />
SetEnvIfNoCase Request_URI \.mp3$ no-gzip dont-vary<br />
SetEnvIfNoCase Request_URI \.mp4$ no-gzip dont-vary<br />
SetEnvIfNoCase Request_URI \.rm$ no-gzip dont-vary</p>
]]></content:encoded>
			<wfw:commentRss>http://www.expertslogin.com/linux-administration/speed-webpages-moddeflate-module-apache/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Disable Apache Directory Listing</title>
		<link>http://www.expertslogin.com/linux-administration/disable-apache-directory-listing/</link>
		<comments>http://www.expertslogin.com/linux-administration/disable-apache-directory-listing/#comments</comments>
		<pubDate>Fri, 02 Dec 2011 16:19:58 +0000</pubDate>
		<dc:creator>ZACH</dc:creator>
				<category><![CDATA[Linux Administration]]></category>
		<category><![CDATA[apache directory listing]]></category>
		<category><![CDATA[disable directory listing]]></category>

		<guid isPermaLink="false">http://www.expertslogin.com/?p=1128</guid>
		<description><![CDATA[In your httpd.conf file you should have something like this: Options Indexes FollowSymLinks bla bla bla To disable directory listing for that directory REMOVE the &#8216;Indexes&#8217; option. Also, you can use &#8216;-Indexes&#8217; for that and, sure, you can make a new entry for a specific directory OR One of the &#8220;must do&#8217;s&#8221; on setting a [...]]]></description>
			<content:encoded><![CDATA[<p>In your httpd.conf file you should have something like this:</p>
<p><Directory  /som/directory/name><br />
Options Indexes FollowSymLinks<br />
bla bla bla<br />
</Directory></p>
<p>To disable directory listing for that directory REMOVE the &#8216;Indexes&#8217;<br />
option. Also, you can use &#8216;-Indexes&#8217; for that and, sure, you can make a<br />
new entry for a specific directory</p>
<p>OR </p>
<p>One of the &#8220;must do&#8217;s&#8221; on setting a secure apache webserver environment is to disable directory browsing. As a default Apache will be compiled with this option enabled, but its always a good idea to get rid of this setting unless its really necessary. If you have some basic knowledge of vi editor follow this steps</p>
<p>If you are on an RPM installation of Apache (which i dont really recommend) you will find the apache configuration file probably here:</p>
<p>/etc/httpd/conf/httpd.conf</p>
<p>If you are using apache from the source tar balls ( like real men ) probably you will find the configuration file here:</p>
<p>/usr/local/apache/conf/httpd.conf</p>
<p>Using an editor like vi , edit the httpd.conf file and scroll until you find a line like this:</p>
<p>  Options All Indexes FollowSymLinks MultiViews</p>
<p>To disable directory browsing carefully remove the line that says: Indexes and leave the line like this:</p>
<p>  Options All FollowSymLinks MultiViews</p>
<p>Restart your apache webserver and thats all.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.expertslogin.com/linux-administration/disable-apache-directory-listing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sample Apache Virtual Host Entry</title>
		<link>http://www.expertslogin.com/linux-administration/sample-apache-virtual-host-entry/</link>
		<comments>http://www.expertslogin.com/linux-administration/sample-apache-virtual-host-entry/#comments</comments>
		<pubDate>Wed, 30 Nov 2011 15:24:15 +0000</pubDate>
		<dc:creator>ZACH</dc:creator>
				<category><![CDATA[Linux Administration]]></category>
		<category><![CDATA[apache virtual host]]></category>

		<guid isPermaLink="false">http://www.expertslogin.com/?p=1125</guid>
		<description><![CDATA[A sample Apache Virtual Host Entry for your reference. vi /etc/httpd/conf/httpd.conf &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; NameVirtualHost 67.159.54.145:80 NameVirtualHost 67.159.54.146:80 ServerName sample.com ServerAlias www.sample.com DocumentRoot /home/sample/public_html ServerName techside.com ServerAlias www.techside.com DocumentRoot /home/techside/public_html ============================================================= hash all lines in this file other wise default page will display /etc/httpd/conf.d/welcome.conf # # This configuration file enables the default &#8220;Welcome&#8221; # page [...]]]></description>
			<content:encoded><![CDATA[<p>A sample Apache Virtual Host Entry for your reference.</p>
<p>vi /etc/httpd/conf/httpd.conf</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
NameVirtualHost 67.159.54.145:80<br />
NameVirtualHost 67.159.54.146:80</p>
<p><VirtualHost 67.159.54.145:80><br />
ServerName sample.com<br />
ServerAlias www.sample.com<br />
DocumentRoot /home/sample/public_html<br />
</VirtualHost></p>
<p><VirtualHost 67.159.54.146:80><br />
ServerName techside.com<br />
ServerAlias www.techside.com<br />
DocumentRoot /home/techside/public_html<br />
</VirtualHost></p>
<p>=============================================================<br />
hash all lines in this file other wise default page will display</p>
<p>/etc/httpd/conf.d/welcome.conf</p>
<p>#<br />
# This configuration file enables the default &#8220;Welcome&#8221;<br />
# page if there is no default index page present for<br />
# the root URL.  To disable the Welcome page, comment<br />
# out all the lines below.<br />
#<br />
#<LocationMatch "^/+$"><br />
#    Options -Indexes<br />
#    ErrorDocument 403 /error/noindex.html<br />
#</LocationMatch></p>
]]></content:encoded>
			<wfw:commentRss>http://www.expertslogin.com/linux-administration/sample-apache-virtual-host-entry/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Basic authentication of HTTP users using htpasswd command</title>
		<link>http://www.expertslogin.com/linux-administration/basic-authentication-http-users-htpasswd-command/</link>
		<comments>http://www.expertslogin.com/linux-administration/basic-authentication-http-users-htpasswd-command/#comments</comments>
		<pubDate>Thu, 24 Nov 2011 10:29:22 +0000</pubDate>
		<dc:creator>jomos</dc:creator>
				<category><![CDATA[Linux Administration]]></category>
		<category><![CDATA[apache htpasswd]]></category>
		<category><![CDATA[htpasswd generate]]></category>

		<guid isPermaLink="false">http://www.expertslogin.com/?p=1113</guid>
		<description><![CDATA[htpasswd is used to create and update the flat-files used to store usernames and password for basic authentication of HTTP users. If htpasswd cannot access a file, such as not being able to write to the output file or not being able to read the file in order to update it, it returns an error [...]]]></description>
			<content:encoded><![CDATA[<p>htpasswd is used to create and update the flat-files used to store usernames and password for basic authentication of HTTP users. If htpasswd cannot access a file, such as not being able to write to the output file or not being able to read the file in order to update it, it returns an error status and makes no changes.</p>
<p>Create a new password file</p>
<p>Following command will creates a new file and stores a record in it for user jerry. The user is prompted for the password. If the file exists and cannot be read, or cannot be written, it is not altered and htpasswd will display a message and return an error status.</p>
<p># htpasswd -c /home/pwww/.htpasswd user</p>
<p>Change or update password</p>
<p>To add or modifies the password for user tom, enter:</p>
<p># htpasswd /home/pwww/.htpasswd-users tom</p>
<p>The user is prompted for the password.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.expertslogin.com/linux-administration/basic-authentication-http-users-htpasswd-command/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cannot restart Apache : Segmentation fault : Apache Down</title>
		<link>http://www.expertslogin.com/linux-administration/cannot-restart-apache-segmentation-fault-apache-down/</link>
		<comments>http://www.expertslogin.com/linux-administration/cannot-restart-apache-segmentation-fault-apache-down/#comments</comments>
		<pubDate>Wed, 23 Nov 2011 09:14:39 +0000</pubDate>
		<dc:creator>ZACH</dc:creator>
				<category><![CDATA[Linux Administration]]></category>
		<category><![CDATA[apache segmentation fault]]></category>
		<category><![CDATA[cannot restart apache]]></category>

		<guid isPermaLink="false">http://www.expertslogin.com/?p=1109</guid>
		<description><![CDATA[Apache goes down and wont come up if we try to start/restart. Here is how the error looks like: &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; /etc/init.d/httpd restart: httpd not running, trying to start [Tue May 6 01:31:31 2008] [warn] module bwlimited_module is already loaded, skipping [Tue May 6 01:31:31 2008] [warn] module php5_module is already loaded, skipping /etc/init.d/httpd: line 83: [...]]]></description>
			<content:encoded><![CDATA[<p>Apache goes down and wont come up if we try to start/restart. Here is how the error looks like:</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
/etc/init.d/httpd restart: httpd not running, trying to start<br />
[Tue May 6 01:31:31 2008] [warn] module bwlimited_module is already loaded, skipping<br />
[Tue May 6 01:31:31 2008] [warn] module php5_module is already loaded, skipping<br />
/etc/init.d/httpd: line 83: 1044 Segmentation fault (core dumped) $HTTPD<br />
/etc/init.d/httpd restart: httpd could not be started</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>One of the reasons why this could happen is the use of Resin modules along with apache. Resin modules act as a fast servlet runner for apache. It acts as a separate layer that speeds up Java servlet handling. Normally, apache doesen&#8217;t support JSP pages, Resin modules serves this function too.</p>
<p>Once you come across such an error, follow the steps below to bring apache back online.</p>
<p>1) cd /usr/local/apache/logs</p>
<p>2) Remove the following:</p>
<p>rm -rf ssl*<br />
rm -rf core.*<br />
rm sess*</p>
<p>3) Try to restart apache using apachectl and and /etc/init.d/httpd. Examine the core dump file and see if you can find out<br />
which module is causing the module.</p>
<p>4) If you cannot find out which particular module is causing the issue, find out the php modules that are compiled into<br />
apache using php -m.</p>
<p>5) php -m will list out the modules. You can search for each module in the httpd.conf file. Comment out each module and then try restarting apache . (use /etc/init.d/httpd startssl)Obviously, this is a trial and error method and can consume a little more time. But it is effective. By this way, we can find out which module is causing the trouble.</p>
<p>For example, lets say the Resin module is causing the problem. Then search for &#8220;resin&#8221; in httpd.conf. You should find something like<br />
&#8220;ResinConfigServer 127.0.0.1 6802&#8243; comment out the line and restart apache using /etc/init.d/httpd startssl. This should fix the problem.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.expertslogin.com/linux-administration/cannot-restart-apache-segmentation-fault-apache-down/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache (httpd.conf) Directives A Quick Look</title>
		<link>http://www.expertslogin.com/general/apache-httpdconf-directives-quick/</link>
		<comments>http://www.expertslogin.com/general/apache-httpdconf-directives-quick/#comments</comments>
		<pubDate>Tue, 22 Nov 2011 11:04:40 +0000</pubDate>
		<dc:creator>jomos</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[apache directives]]></category>
		<category><![CDATA[apache directory directive]]></category>

		<guid isPermaLink="false">http://www.expertslogin.com/?p=1104</guid>
		<description><![CDATA[ServerType standalone The option ServerType specifies how Apache should run on the system. You can run it from the super-server inetd, or as standalone daemon. It&#8217;s highly recommended to run Apache in standalone type for better performance and speed. ServerRoot &#8220;/etc/httpd&#8221; The option ServerRoot specifies the directory in which the configuration files of the Apache [...]]]></description>
			<content:encoded><![CDATA[<p>ServerType standalone</p>
<p>The option ServerType specifies how Apache should run on the system. You can run it from the super-server inetd, or as standalone daemon. It&#8217;s highly recommended to run Apache in standalone type for better performance and speed. </p>
<p>ServerRoot &#8220;/etc/httpd&#8221;</p>
<p>The option ServerRoot specifies the directory in which the configuration files of the Apache server lives. It allows Apache to know where it can find its configuration files when it starts. </p>
<p>PidFile /var/run/httpd.pid</p>
<p>The option PidFile specifies the location where the server will record the process id of the daemon when it starts. This option is only required when you configure Apache in standalone mode. </p>
<p>ResourceConfig /dev/null</p>
<p>The option ResourceConfig specifies the location of the old srm.conf file that Apache read after it finished reading the httpd.conf file. When you set the location to /dev/null, Apache allows you to include the content of this file in httpd.conf file, and in this manner, you have just one file that handles all your configuration parameters for simplicity. </p>
<p>AccessConfig /dev/null</p>
<p>The option AccessConfig specifies the location of the old access.conf file that Apache read after it finished reading the srm.conf file. When you set the location to /dev/null, Apache allows you to include the content of this file in httpd.conf file, and in this manner, you have just one file that handles all your configuration parameters for simplicity. </p>
<p>Timeout 300</p>
<p>The option Timeout specifies the amount of time Apache will wait for a GET, POST, PUT request and ACKs on transmissions. You can safely leave this option on its default values. </p>
<p>KeepAlive On</p>
<p>The option KeepAlive, if set to On, specifies enabling persistent connections on this web server. For better performance, it&#8217;s recommended to set this option to On, and allow more than one request per connection. </p>
<p>MaxKeepAliveRequests 0</p>
<p>The option MaxKeepAliveRequests specifies the number of requests allowed per connection when the KeepAlive option above is set to On. When the value of this option is set to 0 then unlimited requests are allowed on the server. For server performance, it&#8217;s recommended to allow unlimited requests. </p>
<p>KeepAliveTimeout 15</p>
<p>The option KeepAliveTimeout specifies how much time, in seconds, Apache will wait for a subsequent request before closing the connection. The value of 15 seconds is a good average for server performance. </p>
<p>MinSpareServers 16</p>
<p>The option MinSpareServers specifies the minimum number of idle child server processes for Apache, which is not handling a request. This is an important tuning parameter regarding the performance of the Apache web server. For high load operation, a value of 16 is recommended by various benchmarks on the Internet. </p>
<p>MaxSpareServers 64</p>
<p>The option MaxSpareServers specifies the maximum number of idle child server processes for Apache, which is not handling a request. This is also an important tuning parameter regarding the performance of the Apache web server. For high load operation, a value of 64 is recommended by various benchmarks on the Internet. </p>
<p>StartServers 16</p>
<p>The option StartServers specifies the number of child server processes that will be created by Apache on start-up. This is, again, an important tuning parameter regarding the performance of the Apache web server. For high load operation, a value of 16 is recommended by various benchmarks on the Internet. </p>
<p>MaxClients 512</p>
<p>The option MaxClients specifies the number of simultaneous requests that can be supported by Apache. This too is an important tuning parameter regarding the performance of the Apache web server. For high load operation, a value of 512 is recommended by various benchmarks on the Internet.</p>
<p>MaxRequestsPerChild 100000</p>
<p>The option MaxRequestsPerChild specifies the number of requests that an individual child server process will handle. This too is an important tuning parameter regarding the performance of the Apache web server. </p>
<p>User www</p>
<p>The option User specifies the UID that Apache server will run as. It&#8217;s important to create a new user that has minimal access to the system, and functions just for the purpose of running the web server daemon. </p>
<p>Group www</p>
<p>The option Group specifies the GID the Apache server will run as. It&#8217;s important to create a new group that has minimal access to the system and functions just for the purpose of running the web server daemon. </p>
<p>DirectoryIndex index.htm index.html index.php index.php3 default.html index.cgi</p>
<p>The option DirectoryIndex specifies the files to use by Apache as a pre-written HTML directory index. In other words, if Apache can&#8217;t find the default index page to display, it&#8217;ll try the next entry in this parameter, if available. To improve performance of your web server it&#8217;s recommended to list the most used default index pages of your web site first. </p>
<p>Include conf/mmap.conf</p>
<p>The option Include specifies the location of other files that you can include from within the server configuration files httpd.conf. In our case, we include the mmap.conf file located under /etc/httpd/conf directory. This file mmap.conf maps files into memory for faster serving. See the section on Optimizing Apache for more information. </p>
<p>HostnameLookups Off</p>
<p>The option HostnameLookups, if set to Off, specifies the disabling of DNS lookups. It&#8217;s recommended to set this option to Off in order to save the network traffic time, and to improve the performance of your Apache web server.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.expertslogin.com/general/apache-httpdconf-directives-quick/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

