<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Tricks and Tips about Systems/Network</title>
	<atom:link href="http://lijumathew.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://lijumathew.wordpress.com</link>
	<description>Strictly for system administrators</description>
	<lastBuildDate>Sat, 20 Aug 2011 04:40:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='lijumathew.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Tricks and Tips about Systems/Network</title>
		<link>http://lijumathew.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://lijumathew.wordpress.com/osd.xml" title="Tricks and Tips about Systems/Network" />
	<atom:link rel='hub' href='http://lijumathew.wordpress.com/?pushpress=hub'/>
		<item>
		<title>How do I setup nameserver using Centos</title>
		<link>http://lijumathew.wordpress.com/2010/10/27/how-do-i-setup-nameserver-using-centos/</link>
		<comments>http://lijumathew.wordpress.com/2010/10/27/how-do-i-setup-nameserver-using-centos/#comments</comments>
		<pubDate>Wed, 27 Oct 2010 13:01:25 +0000</pubDate>
		<dc:creator>Liju Mathew</dc:creator>
				<category><![CDATA[admins]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[DNS]]></category>

		<guid isPermaLink="false">http://www.serveridol.com/?p=859</guid>
		<description><![CDATA[Here are the stpes to configure local nameservers which would help you to resolve DNS for local resource installed on the LAN and Faster nslookup queery which will help to resolve the name very fast for intranet users. 1. Install packages : #yum install bind bind-chroot bind-libs bind-utils caching-nameserver 2. Configure RNDC : #cd /var/named/chroot/etc [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lijumathew.wordpress.com&amp;blog=2254804&amp;post=860&amp;subd=lijumathew&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Here are the stpes to configure local nameservers  which would help you to resolve DNS for local resource installed on the LAN and Faster nslookup queery which will help to resolve the name very fast for  intranet users.</p>
<p>1. Install packages :<br />
<strong> #yum install bind bind-chroot bind-libs bind-utils caching-nameserver</strong></p>
<p>2. Configure RNDC :<br />
<code> #cd /var/named/chroot/etc<br />
 #rndc-confgen &gt; rndc.key<br />
 # chown root:named rndc.key</code></p>
<p>3.  Edit <strong>rndc.key</strong> so it looks like this, You may need to comment some lines on it.</p>
<p><code>[root@rc-025 ~]# cat  /var/named/chroot/etc/rndc.key | sed '/ *#/d; /^ *$/d'<br />
key "rndckey" {<br />
        algorithm hmac-md5;<br />
        secret "f5wyuMBPnEZBbO/333L4ig==";<br />
};</code></p>
<p>4. Configure <strong>/var/named/chroot/etc/named.conf</strong></p>
<p><code>// we include the rndckey (copy-paste from rndc.key created earlier)<br />
key "rndckey" {<br />
      algorithm hmac-md5;<br />
      secret "f5wyuMBPnEZBbO/333L4ig==";<br />
};</p>
<p>// we assume our server has the IP 192.168.254.207 serving the 192.168.254.0/24 subnet<br />
controls {<br />
        inet 127.0.0.1 allow { 127.0.0.1; } keys { "rndckey"; };<br />
        inet 192.168.0.1 allow { 192.168.0.0/24; } keys { "rndckey"; };<br />
};</p>
<p>options {<br />
        directory "/var/named";<br />
        pid-file "/var/run/named/named.pid";</p>
<p>        recursion yes;</p>
<p>        allow-recursion {<br />
                127.0.0.1;<br />
                192.168.0.0/24;<br />
                };</p>
<p>        // these are the opendns servers (optional)<br />
        forwarders {<br />
                125.2.4.12;<br />
                 20.8.23.3;<br />
        };</p>
<p>        listen-on {<br />
                127.0.0.1;<br />
                192.168.0.1;<br />
                192.168.0.25;<br />
                };</p>
<p>        /*<br />
         * If there is a firewall between you and nameservers you want<br />
         * to talk to, you might need to uncomment the query-source<br />
         * directive below.  Previous versions of BIND always asked<br />
         * questions using port 53, but BIND 8.1 uses an unprivileged<br />
         * port by default.<br />
         */<br />
        query-source address * port 53;</p>
<p>        // so people can't try to guess what version you're running<br />
        version "REFUSED";</p>
<p>        allow-query {<br />
                127.0.0.1;<br />
                192.168.0.0/24;<br />
                };<br />
        };</p>
<p>server 192.168.0.1 {<br />
        keys { rndckey; };<br />
        };</p>
<p>zone "." IN {<br />
        type hint;<br />
        file "named.ca";<br />
        };</p>
<p>// forward zone<br />
zone "rain-concert.intra" IN {<br />
        type master;<br />
        file "data/mydomain.local.zone";<br />
        allow-update { none; };<br />
#        // we assume we have a slave dns server with the IP 192.168.254.101<br />
#       allow-transfer { 192.168.254.101; };<br />
       };</p>
<p>#// reverse zone<br />
zone "0.168.192.in-addr.arpa" IN {<br />
        type master;<br />
        file "data/192.168.0.zone";<br />
        allow-update { none; };<br />
  #   // we assume we have a slave dns server with the IP 192.168.254.101<br />
  #allow-transfer { 192.168.254.101; };<br />
        };<br />
</code></p>
<p>Here,</p>
<blockquote><p>1. I added rndckey which is created before in the config. file.<br />
      key &#8220;rndckey&#8221; {<br />
      algorithm hmac-md5;<br />
      secret &#8220;f5wyuMBPnEZBbO/333L4ig==&#8221;;<br />
     };<br />
2.  Dns server ip is <strong>192.168.0.1</strong> and network is 192.168.0.0/24<br />
3.  DNS forwarder name servers ip address are <strong>125.2.4.12, 20.8.23.3</strong> ( using diff. ISP&#8217;s)<br />
4.  listen-on : My name server is listing on 2 Nic cards ( failover)  <strong>192.168.01 and 192.168.0.25</strong><br />
5.  forward zone : My forwarder zone name is &#8220;<strong>mydomain.local</strong>&#8220;<br />
6: reverse zone : My reverse zone name is &#8221; <strong>0.168.192.in-addr.arpa</strong>&#8220;</p></blockquote>
<p><strong>Now you need to create your first Forward DNS Zone</strong>,</p>
<p><strong>#vi /var/named/chroot/var/named/data/mydomain.local.zone</strong><br />
<code>$ttl 38400<br />
mydomain.local.       IN      SOA     ns.mydomain.local. admin.mydomain.local. (<br />
                       2007020400   ; Serial<br />
                       10800           ; Refresh after 3 hours<br />
                       3600            ; Retry after 1 hour<br />
                       604800          ; Expire after 1 week<br />
                       86400 )         ; Minimum TTL of 1 day<br />
mydomain.local.       IN      NS      ns.mydomain.local.<br />
mydomain.local.               IN      MX      1       mx.mydomain.local.<br />
mydomain.local.               IN      MX      5       mx2.mydomain.local.<br />
www.mydomain.local.         IN      A       192.168.0.1<br />
ns.mydomain.local.             IN      A       192.168.0.1<br />
ns1.mydomain.local.            IN      A       192.168.0.1<br />
ns2.mydomain.local.            IN      A       192.168.0.8<br />
mx.mydomain.local.             IN      A       192.168.0.26<br />
mx2.mydomain.local.            IN      A       192.168.0.26<br />
mail.mydomain.local.          IN      CNAME     mx.mydomain.local.<br />
intranet.mydomain.local.    IN         A        192.168.0.14<br />
Admin-PC.mydomain.local.    IN       A        192.168.0.90<br />
secured_share.mydomain.local.  IN  A       192.168.0.40<br />
news.mydomain.local.    IN             A       192.168.0.14<br />
dev_sites.mydomain.local.    IN       A  192.168.0.14<br />
</code></p>
<p>Now you need to create your first <strong>Reverse DNS Zone</strong>,<br />
<code># vi /var/named/chroot/var/named/data/192.168.0.zone</code><br />
<code><br />
$TTL    24h<br />
0.168.192.in-addr.arpa.   IN  SOA   mydomain.local.   root.mydomain.local (<br />
        2007062800 ; serial number<br />
        3h         ; refresh time<br />
        30m        ; retry time<br />
        7d         ; expire time<br />
        3h         ; negative caching ttl<br />
)<br />
; Nameservers<br />
0.168.192.in-addr.arpa.  IN  NS  ns.mydomain.local.<br />
; Hosts<br />
26.0.168.192.in-addr.arpa.     IN PTR  rc-026.mydomain.local.<br />
25.0.168.192.in-addr.arpa.     IN PTR  rc-025.mydomain.local.<br />
14.0.168.192.in-addr.arpa.     IN PTR  rc-014.mydomain.local.<br />
1.0.168.192.in-addr.arpa.      IN PTR  rc-001.mydomain.local.<br />
26.0.168.192.in-addr.arpa.     IN PTR  mx.mydomain.local.<br />
26.0.168.192.in-addr.arpa.     IN PTR  mx2.mydomain.local.<br />
</code></p>
<p>5. Start the service and make sure it’ll start at boot<br />
<code>#service named start<br />
#chkconfig named on </code></p>
<p>6. Now you need to configure your <strong>resolv.conf </strong>file<br />
   <code>[root@rc-025 ~]# cat /etc/resolv.conf<br />
   search mydomain.local<br />
   nameserver 127.0.0.1 // using local DNS<br />
   nameserver 125.224.7.125 // ISP name server</code></p>
<p>7. Make sure it’s running,<br />
   [root@rc-025 ~]# <strong>rndc status</strong><br />
   number of zones: <strong>2</strong><br />
   debug level: 0<br />
   xfers running: 0<br />
   xfers deferred: 0<br />
   soa queries in progress: 0<br />
  query logging is OFF<br />
  recursive clients: 0/1000<br />
  tcp clients: 0/100<br />
  server is up and running</p>
<p>8. <strong>Verifying DNS is working and local names are resolved.</strong><br />
     Execute the command after login theDNS server<br />
    <code>[root@rc-025 ~]# <strong>nslookup rc-001</strong><br />
     Server:         127.0.0.1<br />
    Address:        127.0.0.1#53<br />
    Name:   rc-001.mydomain.local<br />
    Address: 192.168.0.1</code></p>
<p>9.  <strong>Verifying the external domain nslookup query is resolved, </strong><br />
    <code>[root@rc-025 ~]# <strong>nslookup google.com</strong><br />
    Server:         <strong>127.0.0.1</strong><br />
    Address:        127.0.0.1#53<br />
     Non-authoritative answer:<br />
    Name:   google.com<br />
    Address: 209.85.231.104</code></p>
<p>10. <strong>Verifying Reverse DNS working</strong>  : we can test it by using this nameserver&#8217;s ip Eg. host   Which should returns a valid message like this,</p>
<p><code>[root@rc-025 ~]#<code> host 192.168.0.1</code><br />
1.0.168.192.in-addr.arpa domain name pointer rc-001.mydomain.local</code><br />
Verifying my mail server has RDNS set<br />
[root@rc-025 ~]# host 192.168.0.26<br />
26.0.168.192.in-addr.arpa domain name pointer rc-026.mydomain.local.<br />
[root@rc-025 ~]#</p>
<p>Now All are set and ready to go !!</p>
<blockquote><p><strong>Pls note that Window Desktops will not accept any name server ip which has not RDNS set. This will lead to slowness of internet access</strong>.</p></blockquote>
<p>-njoy</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lijumathew.wordpress.com/860/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lijumathew.wordpress.com/860/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lijumathew.wordpress.com/860/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lijumathew.wordpress.com/860/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/lijumathew.wordpress.com/860/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/lijumathew.wordpress.com/860/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/lijumathew.wordpress.com/860/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/lijumathew.wordpress.com/860/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lijumathew.wordpress.com/860/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lijumathew.wordpress.com/860/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lijumathew.wordpress.com/860/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lijumathew.wordpress.com/860/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lijumathew.wordpress.com/860/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lijumathew.wordpress.com/860/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lijumathew.wordpress.com&amp;blog=2254804&amp;post=860&amp;subd=lijumathew&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://lijumathew.wordpress.com/2010/10/27/how-do-i-setup-nameserver-using-centos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b99b9ae3fb48d9e226848c806a241df9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Liju</media:title>
		</media:content>
	</item>
		<item>
		<title>Spell checking issue : Changing dictionary type in Outlook Express</title>
		<link>http://lijumathew.wordpress.com/2010/10/26/spell-checking-issue-changing-dictionary-type-in-outlook-express/</link>
		<comments>http://lijumathew.wordpress.com/2010/10/26/spell-checking-issue-changing-dictionary-type-in-outlook-express/#comments</comments>
		<pubDate>Tue, 26 Oct 2010 12:00:52 +0000</pubDate>
		<dc:creator>Liju Mathew</dc:creator>
				<category><![CDATA[admins]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.serveridol.com/?p=857</guid>
		<description><![CDATA[My outlook express is using French dictionary !! seems strange:(. So I need to change the dictionary type and unfortunately I didn&#8217;t find any other English dictionary from the combo box. Installing this application would work to change your dictionary to English. You may download the installs from here http://files.snapfiles.com/localdl936/spelloe_setup.exe. Now I can use English [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lijumathew.wordpress.com&amp;blog=2254804&amp;post=859&amp;subd=lijumathew&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>My outlook express is using French dictionary !! seems strange:(. So I need to change the dictionary type and unfortunately I didn&#8217;t find any other English dictionary from the combo box.</p>
<p>Installing this application would work to change your dictionary to English. You may download the installs from here http://files.snapfiles.com/localdl936/spelloe_setup.exe.</p>
<p>Now I can use English dictionary for spell checking.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lijumathew.wordpress.com/859/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lijumathew.wordpress.com/859/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lijumathew.wordpress.com/859/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lijumathew.wordpress.com/859/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/lijumathew.wordpress.com/859/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/lijumathew.wordpress.com/859/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/lijumathew.wordpress.com/859/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/lijumathew.wordpress.com/859/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lijumathew.wordpress.com/859/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lijumathew.wordpress.com/859/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lijumathew.wordpress.com/859/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lijumathew.wordpress.com/859/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lijumathew.wordpress.com/859/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lijumathew.wordpress.com/859/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lijumathew.wordpress.com&amp;blog=2254804&amp;post=859&amp;subd=lijumathew&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://lijumathew.wordpress.com/2010/10/26/spell-checking-issue-changing-dictionary-type-in-outlook-express/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b99b9ae3fb48d9e226848c806a241df9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Liju</media:title>
		</media:content>
	</item>
		<item>
		<title>Installing  same UCC SSL certificate on both Linux and Windows</title>
		<link>http://lijumathew.wordpress.com/2010/10/26/installing-ucc-ssl-certificate-on-both-linux-and-windows/</link>
		<comments>http://lijumathew.wordpress.com/2010/10/26/installing-ucc-ssl-certificate-on-both-linux-and-windows/#comments</comments>
		<pubDate>Tue, 26 Oct 2010 03:20:18 +0000</pubDate>
		<dc:creator>Liju Mathew</dc:creator>
				<category><![CDATA[admins]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Windows 2008]]></category>

		<guid isPermaLink="false">http://www.serveridol.com/?p=852</guid>
		<description><![CDATA[I have a Godaddy UCC certificate which having 5 domain included. All of the domains are hosted on my WHM/Cpanel Linux server except one it intend to install on Windows 2008 IIS7 server. This is the first time I have attempt to install it same cert in differ os. There is two steps. 1. We [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lijumathew.wordpress.com&amp;blog=2254804&amp;post=852&amp;subd=lijumathew&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I have a  Godaddy UCC certificate which having 5 domain included. All of the domains are hosted on my WHM/Cpanel Linux server except one it intend to install on Windows 2008 IIS7 server.</p>
<p>This is the first time I have attempt to install it  same cert in differ os. There is two steps.</p>
<p>1. We need to be installed Godaddy intermediate certificates.<br />
2. Import the certificate which is in &#8220;pkcs12&#8243; format in IIS. But Godaddy would not give you certificate which is using  &#8220;pkcs12&#8243;  format.<br />
3. Identify the website the to use the ssl and enable the port 443 to listen on that site.</p>
<p><strong>A. </strong>How do I install intermediate certificates in IIS,</p>
<p>   1. From the Start menu, select <strong>Run</strong>&#8230;, type <strong>mmc</strong>, and then click OK.<br />
   2. In the Microsoft Management Console (MMC), from the File menu, select <strong>Add/Remove Snap-in</strong>.<br />
   3. In the Add or Remove Snap-ins window, click <strong>Certificates</strong>, and then click<strong> Add</strong>.<br />
   4. Select <strong>Computer Account</strong>, and then click <strong>Next</strong>.<br />
   5. Select <strong>Local Computer</strong>, and then click <strong>Finish</strong>.<br />
   6. Close the Add Standalone Snap-in window, and, in the Add/Remove Snap-in window, click OK.<br />
   7. In the MMC window, expand the <strong>Certificates folder</strong> to view the Intermediate Certification Authorities folder.<br />
   8. Right-click <strong>Intermediate Certification Authorities</strong>, select <strong>All Tasks</strong>, and then select <strong>Import</strong>.<br />
   9. In the Certificate Import Wizard, click <strong>Next</strong>.<br />
  10. Click <strong>Brows</strong>e to find the intermediate certificate file. Change the file extension filter to <strong>PKCS #7</strong> Certificates (*.spc;*.p7b), select the *_iis_intermediates.p7b file, and then click <strong>Open</strong>.<br />
11.  Click Next.<br />
12. Select Place all certificates in the following store.<br />
13.  Click Browse, select Intermediate Certification Authorities, and then click Next.<br />
15 Click Finish.</p>
<p> 2. <strong>  How do I  generate &#8220;pkcs12&#8243; type file from the certificate file. Now you may require </strong></p>
<p>a. Certificate file ( Godaddy will give)<br />
b. Private key file  ( it&#8217;s  private key which used to create CSR)<br />
c. CA bundle file  ( godaddy will give)</p>
<p><strong><code>openssl pkcs12 -export -out certificate.pfx -inkey privateKey.key -in certificate.crt -certfile CACert.crt</code></strong></p>
<p>That&#8217;s it. Now you have a &#8220;certificate.pfx&#8221; file which would support IIS to install SSL.</p>
<p>3. <strong> Installing SSL certificate on IIS,</strong></p>
<p>1. from the <strong>Start</strong> menu, select Control Panel, and then select Administrative Tools.<br />
2. Select Internet Information Services Manager, and click <strong>Server Name</strong>.<br />
3. In the Security section, double-click <strong>Server Certificates</strong>.<br />
4. From the <strong>Actions men</strong>u, select <strong>Complete Certificate Request.</strong>..<br />
5. In the Complete Certificate Request Wizard, enter the location for the certificate file. The file extension might be .txt or .crt instead of .cer (search for all files).<br />
6. Enter a friendly name for the certificate file, and then click <strong>OK</strong>.</p>
<p>7. From the Actions menu, select <strong>Bindings</strong>&#8230;<br />
8. In the Site <strong>Bindings</strong> window, click Add&#8230;<br />
9. In the Add Site Binding window.<br />
10. From the Type drop-down menu, select https.<br />
11.  From the IP address drop-down menu, select All Unassigned or the IP address of the site.<br />
    * For Port, type <strong>443</strong>.<br />
12. From the SSL Certificate drop-down menu, select the <strong>SSL</strong> certificate you just installed, and then click <strong>OK</strong>.</p>
<p>Pls do remember that each SSL installations requires a dedicated IP.</p>
<p>-Cheers</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lijumathew.wordpress.com/852/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lijumathew.wordpress.com/852/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lijumathew.wordpress.com/852/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lijumathew.wordpress.com/852/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/lijumathew.wordpress.com/852/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/lijumathew.wordpress.com/852/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/lijumathew.wordpress.com/852/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/lijumathew.wordpress.com/852/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lijumathew.wordpress.com/852/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lijumathew.wordpress.com/852/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lijumathew.wordpress.com/852/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lijumathew.wordpress.com/852/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lijumathew.wordpress.com/852/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lijumathew.wordpress.com/852/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lijumathew.wordpress.com&amp;blog=2254804&amp;post=852&amp;subd=lijumathew&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://lijumathew.wordpress.com/2010/10/26/installing-ucc-ssl-certificate-on-both-linux-and-windows/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b99b9ae3fb48d9e226848c806a241df9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Liju</media:title>
		</media:content>
	</item>
		<item>
		<title>NGINX :  http domain requests  to www</title>
		<link>http://lijumathew.wordpress.com/2010/10/20/nginx-http-domain-requests-to-www/</link>
		<comments>http://lijumathew.wordpress.com/2010/10/20/nginx-http-domain-requests-to-www/#comments</comments>
		<pubDate>Wed, 20 Oct 2010 01:18:14 +0000</pubDate>
		<dc:creator>Liju Mathew</dc:creator>
				<category><![CDATA[admins]]></category>
		<category><![CDATA[Nginx]]></category>

		<guid isPermaLink="false">http://www.serveridol.com/?p=850</guid>
		<description><![CDATA[How do I re-direct the http domain request www domain request in Nginx server. You need to add two virtualhost. One is for re-directing non-www request and other one is for server www-domain request. # [root@u15382543 ~]# vi /etc/nginx/conf.d/domain.com.conf server { server_name domain.com; listen 74.28.17.98:80; rewrite ^(.*) http://www.domain.com$1 permanent; } server { server_name www.example.com; } [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lijumathew.wordpress.com&amp;blog=2254804&amp;post=850&amp;subd=lijumathew&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>How do I re-direct the http  domain request www domain request in Nginx server.</p>
<p>You need to add two virtualhost. One is for re-directing non-www request and other one is for server www-domain request.</p>
<p># [root@u15382543 ~]# <strong>vi /etc/nginx/conf.d/domain.com.conf</strong><br />
<code>server {<br />
   server_name  domain.com;<br />
   listen    74.28.17.98:80;<br />
    rewrite ^(.*) http://www.domain.com$1 permanent;<br />
}<br />
server {<br />
    server_name  www.example.com;<br />
}</code></p>
<p>My <strong>domain.conf </strong>file is,<br />
<code><br />
server {<br />
   server_name  domain.com;<br />
   listen    74.28.17.98:80;<br />
    rewrite ^(.*) http://www.domain.com$1 permanent;<br />
}<br />
server {<br />
  listen    74.20.17.98:80;<br />
  server_name   www.domain.com;<br />
  #access_log      /var/log/httpd/nginx.access.domain.com.log;</p>
<p>  error_log     /var/log/httpd/nginx.errors.domain.com.log warn<br />
  large_client_header_buffers 4 8k; # prevent some 400 errors<br />
   root        /var/www/vhosts/domain.com/httpdocs;<br />
  index       index.php index.html;</p>
<p>location / {<br />
    expires 30d;<br />
    error_page 404 = @joomla;<br />
    log_not_found off;<br />
  }</p>
<p> location @joomla {<br />
    rewrite ^(.*)$ /index.php?q=$1 last;<br />
  }</p>
<p>error_page 500 502 503 504 404  /404.html;<br />
        location = /404.html {<br />
         root  /var/www/vhosts/domain.com/httpdocs/;</p>
<p>location ~ \.php$ {<br />
            root           html;<br />
            fastcgi_pass   127.0.0.1:9000;<br />
            fastcgi_index  index.php;<br />
            fastcgi_param  SCRIPT_FILENAME   /var/www/vhosts/domain.com/httpdocs$fastcgi_script_name;<br />
            include        fastcgi_params;<br />
        }<br />
# Select files to be deserved by nginx<br />
 location ~* ^.+.(swf|zip|rar|html|htm|pdf)$ {<br />
#location ~* ^.+.(zip|rar|html|htm|pdf)$ {<br />
    root  /var/www/vhosts/domain.com/httpdocs/;<br />
    expires           7d;<br />
  }<br />
}<br />
</code></p>
<p><strong>Verify the config. file</strong>.</p>
<p>[root@u15382543 ~]# <strong>/etc/init.d/nginx configtest</strong><br />
2010/10/19 13:43:52 [info] 21005#0: the configuration file /etc/nginx/nginx.conf syntax is ok<br />
2010/10/19 13:43:52 [info] 21005#0: the configuration file /etc/nginx/nginx.conf was tested successfully<br />
<strong><br />
Check the error file</strong><br />
#tail -f /var/log/nginx/error.log</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lijumathew.wordpress.com/850/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lijumathew.wordpress.com/850/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lijumathew.wordpress.com/850/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lijumathew.wordpress.com/850/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/lijumathew.wordpress.com/850/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/lijumathew.wordpress.com/850/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/lijumathew.wordpress.com/850/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/lijumathew.wordpress.com/850/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lijumathew.wordpress.com/850/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lijumathew.wordpress.com/850/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lijumathew.wordpress.com/850/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lijumathew.wordpress.com/850/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lijumathew.wordpress.com/850/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lijumathew.wordpress.com/850/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lijumathew.wordpress.com&amp;blog=2254804&amp;post=850&amp;subd=lijumathew&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://lijumathew.wordpress.com/2010/10/20/nginx-http-domain-requests-to-www/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b99b9ae3fb48d9e226848c806a241df9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Liju</media:title>
		</media:content>
	</item>
		<item>
		<title>Nagios with SMTP outgoing authentications</title>
		<link>http://lijumathew.wordpress.com/2010/10/18/nagios-with-smtp-outgoing-authentications/</link>
		<comments>http://lijumathew.wordpress.com/2010/10/18/nagios-with-smtp-outgoing-authentications/#comments</comments>
		<pubDate>Mon, 18 Oct 2010 16:10:21 +0000</pubDate>
		<dc:creator>Liju Mathew</dc:creator>
				<category><![CDATA[admins]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Nagios]]></category>

		<guid isPermaLink="false">http://www.serveridol.com/?p=845</guid>
		<description><![CDATA[My requirement is that few of my critical notification mails are not delivered to my gamil and yahoo id. After further checking it has been found that those mails are treated as spam. I need all my nagios alert mails should free from spam filtration. So I decided to use trusted SMTP server to use [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lijumathew.wordpress.com&amp;blog=2254804&amp;post=845&amp;subd=lijumathew&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>My requirement is that few of my critical notification mails are not delivered to my gamil and  yahoo id. After further checking it has been found that those mails are treated as spam.  I need all my nagios alert mails should free from spam filtration.</p>
<p>So I decided to use  trusted SMTP server to use my nagios notification mails. Also configure postfix as relay mail server using external smtp.</p>
<p>This process utilizes a perl script called &#8220;sendEmail&#8221;.</p>
<p>1) Download from <strong>http://caspian.dotconf.net/menu/Software/SendEmail</strong>.<br />
2) Extract the file and copy the sendEmail into <code>/usr/local/bin</code>.<br />
3) <code>chmod +x /usr/local/bin/sendEmail</code>.</p>
<p>Now the setup and customization of Nagios.</p>
<p>1) Edit <code><strong>/usr/local/nagios/etc/resource.cfg</strong></code> &#8211; add (3) new entries.<br />
<code>$USER5$=email_address<br />
$USER6$=password<br />
$USER7$=SMTP server ip</code></p>
<p>2) Edit <code><strong>/usr/local/nagios/etc/objects/commands.cfg</strong></code></p>
<p>Change command_line for command_name <strong>notify-host-by-email</strong>:</p>
<p><code>command_line /usr/bin/printf "%b" "***** Nagios *****nnNotification Type: $NOTIFICATIONTYPE$nHost: $HOSTNAME$nState: $HOSTSTATE$nAddress: $HOSTADDRESS$nInfo: $HOSTOUTPUT$nnDate/Time: $LONGDATETIME$n" | /usr/local/bin/sendEmail -s $USER7$ -xu $USER5$ -xp $USER6$ -t $CONTACTEMAIL$ -f $USER5$ -l /var/log/sendEmail -u "** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ **" -m "***** Nagios *****nnNotification Type: $NOTIFICATIONTYPE$nHost: $HOSTNAME$nState: $HOSTSTATE$nAddress: $HOSTADDRESS$nInfo: $HOSTOUTPUT$nnDate/Time: $LONGDATETIME$n"</code></p>
<p>Change command_line for command_name <strong>notify-service-by-email</strong>:</p>
<p><code>define command{<br />
command_name    notify-service-by-email<br />
command_line /usr/bin/printf "%b" "***** Nagios *****nnNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$i\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | /usr/local/bin/sendEmail -s $USER7$ -xu $USER5$ -xp $USER6$ -t $CONTACTEMAIL$ -f $USER5$ -l /var/log/sendEmail -u "** $NOTIFICATIONTYPE$ Service Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" -m "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\n\nHost: $HOSTALIAS$\n\nAddress: $HOSTADDRESS$\n\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$"</p>
<p>}</code></p>
<p>3) <code><strong>#touch /var/log/sendEmail</strong></code><br />
4) <strong><code>chown nagios:nagios /var/log/sendEmail</code></strong></p>
<p>5) Now restart Nagios service</p>
<p>Testing:<br />
Go into Nagios and send an alert and check the <code>/var/log/sendEmail </code>log file. It should say &#8220;Email was sent successfully&#8221;.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lijumathew.wordpress.com/845/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lijumathew.wordpress.com/845/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lijumathew.wordpress.com/845/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lijumathew.wordpress.com/845/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/lijumathew.wordpress.com/845/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/lijumathew.wordpress.com/845/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/lijumathew.wordpress.com/845/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/lijumathew.wordpress.com/845/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lijumathew.wordpress.com/845/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lijumathew.wordpress.com/845/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lijumathew.wordpress.com/845/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lijumathew.wordpress.com/845/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lijumathew.wordpress.com/845/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lijumathew.wordpress.com/845/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lijumathew.wordpress.com&amp;blog=2254804&amp;post=845&amp;subd=lijumathew&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://lijumathew.wordpress.com/2010/10/18/nagios-with-smtp-outgoing-authentications/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b99b9ae3fb48d9e226848c806a241df9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Liju</media:title>
		</media:content>
	</item>
		<item>
		<title>How do I setup Time server On Centos (ntp server)</title>
		<link>http://lijumathew.wordpress.com/2010/10/15/how-do-i-setup-time-server-in-centos-ntp-server/</link>
		<comments>http://lijumathew.wordpress.com/2010/10/15/how-do-i-setup-time-server-in-centos-ntp-server/#comments</comments>
		<pubDate>Fri, 15 Oct 2010 16:47:11 +0000</pubDate>
		<dc:creator>Liju Mathew</dc:creator>
				<category><![CDATA[admins]]></category>
		<category><![CDATA[CentOS]]></category>

		<guid isPermaLink="false">http://www.serveridol.com/?p=835</guid>
		<description><![CDATA[Some critical applications ( odesk) requires system time to be updated with the server time in order to work certain features. Also you will get some application will not able to install if the local time is out dated or older. Damaged BIOS batter also cause this to happen. So I decided to install a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lijumathew.wordpress.com&amp;blog=2254804&amp;post=835&amp;subd=lijumathew&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Some critical applications ( odesk) requires system time to be updated with the server time in order to work certain features. Also you will get some application will not able to install if the local time is out dated or older. Damaged BIOS batter also cause this to happen.</p>
<p>So I decided to install a Network Time server in LAN.  Also I have added a cron or scheduler set on each workstation to communicate with this server and re-build our OS disk images.</p>
<p>install ntp using yum.</p>
<p># yum install ntp*<br />
# Modify the following lines</p>
<ul>restrict 192.168.0.0 mask 255.255.255.0 nomodify notrap</ul>
<p> ; changed  to my network<br />
 added the following lines.</p>
<ul>server 192.168.0.1<br />
   server 127.127.1.0<br />
   fudge   127.127.1.0 stratum 10</ul>
<p>Or you may replace the &#8221; /etc/ntp.conf&#8221; with following entries, This is my ntp config. file<br />
<strong><code>[root@rc-025 ~]# cat /etc/ntp.conf | sed '/ *#/d; /^ *$/d'</code><br />
</strong><br />
<code>restrict default kod nomodify notrap nopeer noquery<br />
restrict -6 default kod nomodify notrap nopeer noquery<br />
restrict 127.0.0.1<br />
restrict -6 ::1<br />
restrict 192.168.0.0 mask 255.255.255.0 nomodify notrap<br />
driftfile /var/lib/ntp/drift<br />
keys /etc/ntp/keys<br />
server 192.168.0.1<br />
server 127.127.1.0<br />
fudge   127.127.1.0 stratum 10</code></p>
<p>Restart the ntpd service,</p>
<p><code>[root@rc-025 ~]# <strong>service ntpd restart</strong><br />
Shutting down ntpd:                                        [  OK  ]<br />
Starting ntpd:                                                 [  OK  ]</code></p>
<p>Verify the status,<br />
<code>[root@rc-025 ~]# <strong>netstat -nlp | grep ":123"</strong><br />
udp        0      0 172.16.11.1:123             0.0.0.0:*                               21156/ntpd<br />
udp        0      0 172.16.23.1:123             0.0.0.0:*                               21156/ntpd<br />
udp        0      0 192.168.0.1:123             0.0.0.0:*                               21156/ntpd<br />
udp        0      0 192.168.0.41:123            0.0.0.0:*                               21156/ntpd<br />
udp        0      0 192.168.0.25:123            0.0.0.0:*                               21156/ntpd<br />
udp        0      0 127.0.0.1:123               0.0.0.0:*                               21156/ntpd<br />
udp        0      0 0.0.0.0:123                 0.0.0.0:*                               21156/ntpd<br />
udp        0      0 fe80::21c:c0ff:fea3:123     :::*                                    21156/ntpd<br />
udp        0      0 fe80::250:56ff:fec0:1:123   :::*                                    21156/ntpd<br />
udp        0      0 fe80::250:56ff:fec0:8:123   :::*                                    21156/ntpd<br />
udp        0      0 ::1:123                     :::*                                    21156/ntpd<br />
udp        0      0 :::123                      :::*                                    21156/ntpd<br />
[root@rc-025 ~]#</code><br />
Pls note that ntp is using UDP protocol. So that you can test it using telcommand.</p>
<p>How to verify the NTP server is working, Go to client desktop,<br />
The following commands shows it&#8217;s working,</p>
<p><code>[root@rc-090 SVN-Archive]#  <strong>date -s "16:55:30 Jun 09, 1981"</strong><br />
Tue Jun  9 16:55:30 IST 1981<br />
[root@rc-090 SVN-Archive]# <strong>date</strong><br />
Tue Jun  9 16:55:32 IST 1981<br />
[root@rc-090 SVN-Archive]# <strong>ntpdate -u 192.168.0.1</strong><br />
15 Oct 14:58:31 ntpdate[18516]: step time server 192.168.0.1 offset 926200973.366843 sec<br />
[root@rc-090 SVN-Archeive]# <strong>date</strong><br />
Fri Oct 15 14:58:33 IST 2010</code></p>
<p>-njoy</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lijumathew.wordpress.com/835/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lijumathew.wordpress.com/835/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lijumathew.wordpress.com/835/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lijumathew.wordpress.com/835/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/lijumathew.wordpress.com/835/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/lijumathew.wordpress.com/835/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/lijumathew.wordpress.com/835/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/lijumathew.wordpress.com/835/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lijumathew.wordpress.com/835/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lijumathew.wordpress.com/835/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lijumathew.wordpress.com/835/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lijumathew.wordpress.com/835/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lijumathew.wordpress.com/835/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lijumathew.wordpress.com/835/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lijumathew.wordpress.com&amp;blog=2254804&amp;post=835&amp;subd=lijumathew&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://lijumathew.wordpress.com/2010/10/15/how-do-i-setup-time-server-in-centos-ntp-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b99b9ae3fb48d9e226848c806a241df9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Liju</media:title>
		</media:content>
	</item>
		<item>
		<title>How do I enable apc php extension on Centos</title>
		<link>http://lijumathew.wordpress.com/2010/10/14/how-do-i-enable-apc-php-extension-on-centos/</link>
		<comments>http://lijumathew.wordpress.com/2010/10/14/how-do-i-enable-apc-php-extension-on-centos/#comments</comments>
		<pubDate>Thu, 14 Oct 2010 00:28:01 +0000</pubDate>
		<dc:creator>Liju Mathew</dc:creator>
				<category><![CDATA[admins]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.serveridol.com/?p=829</guid>
		<description><![CDATA[There is 2 ways to install. 1. Download the apc source code from the pear library and install. 2. Using pear to install apc (easy way) Ensure that pear is there, if not execute #yum install php-pear pear will be installed along with the php installation from the source. #pecl install apc echo &#8220;extension=apc.so&#8221; &#62; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lijumathew.wordpress.com&amp;blog=2254804&amp;post=829&amp;subd=lijumathew&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>There is 2 ways to install.</p>
<p>1. Download the apc source code from the pear library and install.<br />
2. Using  pear to install apc (easy way)</p>
<p>Ensure that pear is there, if not execute<br />
#yum install php-pear<br />
pear will be installed along with the php installation from the source.</p>
<p><code>#pecl install apc </code><br />
echo &#8220;extension=apc.so&#8221; &gt; /etc/php.ini</p>
<p>Verified it by,<br />
#php -m | grep &#8220;apc&#8221; or you may choose phpinfo page to verify that<br />
apc</p>
<p>Restart apache to make this working over the web<br />
# service httpd restart</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lijumathew.wordpress.com/829/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lijumathew.wordpress.com/829/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lijumathew.wordpress.com/829/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lijumathew.wordpress.com/829/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/lijumathew.wordpress.com/829/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/lijumathew.wordpress.com/829/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/lijumathew.wordpress.com/829/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/lijumathew.wordpress.com/829/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lijumathew.wordpress.com/829/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lijumathew.wordpress.com/829/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lijumathew.wordpress.com/829/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lijumathew.wordpress.com/829/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lijumathew.wordpress.com/829/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lijumathew.wordpress.com/829/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lijumathew.wordpress.com&amp;blog=2254804&amp;post=829&amp;subd=lijumathew&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://lijumathew.wordpress.com/2010/10/14/how-do-i-enable-apc-php-extension-on-centos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b99b9ae3fb48d9e226848c806a241df9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Liju</media:title>
		</media:content>
	</item>
		<item>
		<title>How do I install new wordpress plugin</title>
		<link>http://lijumathew.wordpress.com/2010/10/14/how-do-i-install-new-wordpress-plugin/</link>
		<comments>http://lijumathew.wordpress.com/2010/10/14/how-do-i-install-new-wordpress-plugin/#comments</comments>
		<pubDate>Thu, 14 Oct 2010 00:10:22 +0000</pubDate>
		<dc:creator>Liju Mathew</dc:creator>
				<category><![CDATA[admins]]></category>

		<guid isPermaLink="false">http://www.serveridol.com/?p=827</guid>
		<description><![CDATA[Most of us using web installer to update the wordpress version and installing plugins, theme and more. Recently I hit by a plugin install crashed my website&#8217;s admin area. It&#8217;s showing empty pages while accessing admin url. So before install/upgrading anyting related to wordpress highly recomend to backup your files and database to minimize the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lijumathew.wordpress.com&amp;blog=2254804&amp;post=827&amp;subd=lijumathew&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Most of us using web installer to update the wordpress version and  installing plugins, theme and more. Recently I hit by a plugin install crashed my website&#8217;s admin area. It&#8217;s showing empty pages while accessing admin url.</p>
<p>So before install/upgrading anyting related to wordpress highly recomend to backup your files and database to minimize the downtime and your tension rate. Once after the hitting I stopped to using web-installer from untrusted plugin resource.</p>
<p>Here are the step will help you to this manually without any risk factor.</p>
<p>All WordPress Plugins cab be install the same way.</p>
<blockquote><p> 1. Download the latest version of the WordPress Plugin to your computer.<br />
   2. With an FTP program, access your site’s server.<br />
   3. Upload (copy) the Plugin file(s) or folder to the /wp-content/plugins folder.<br />
   4. In your WordPress Administration Panels, click on Plugins from the menu at the top.<br />
   5. You should see your new Plugin listed. If not, with your FTP program, check the folder to see if it is installed. If it isn’t, upload the file(s) again. If it is, delete the files and upload them again.<br />
   6. To turn the WordPress Plugin on, click Activate on the far right side of the list.<br />
   7. Check your Administration Panels or WordPress blog to see if the Plugin is working.
</p></blockquote>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lijumathew.wordpress.com/827/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lijumathew.wordpress.com/827/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lijumathew.wordpress.com/827/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lijumathew.wordpress.com/827/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/lijumathew.wordpress.com/827/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/lijumathew.wordpress.com/827/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/lijumathew.wordpress.com/827/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/lijumathew.wordpress.com/827/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lijumathew.wordpress.com/827/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lijumathew.wordpress.com/827/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lijumathew.wordpress.com/827/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lijumathew.wordpress.com/827/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lijumathew.wordpress.com/827/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lijumathew.wordpress.com/827/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lijumathew.wordpress.com&amp;blog=2254804&amp;post=827&amp;subd=lijumathew&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://lijumathew.wordpress.com/2010/10/14/how-do-i-install-new-wordpress-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b99b9ae3fb48d9e226848c806a241df9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Liju</media:title>
		</media:content>
	</item>
		<item>
		<title>SSL received a record that exceeded the maximum permissible length</title>
		<link>http://lijumathew.wordpress.com/2010/10/11/ssl-received-a-record-that-exceeded-the-maximum-permissible-length/</link>
		<comments>http://lijumathew.wordpress.com/2010/10/11/ssl-received-a-record-that-exceeded-the-maximum-permissible-length/#comments</comments>
		<pubDate>Mon, 11 Oct 2010 11:47:41 +0000</pubDate>
		<dc:creator>Liju Mathew</dc:creator>
				<category><![CDATA[admins]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Godaddy]]></category>
		<category><![CDATA[Webserver]]></category>

		<guid isPermaLink="false">http://www.serveridol.com/?p=818</guid>
		<description><![CDATA[I got the following error during Godaddy ssl setup on one of my client server. I refers Godaddy&#8217;s ssl documentation for creating CSR and installing SSL. I can easily able to generate and complete the SSL certificates to be issued. But it seems than Godaddy ssl installation steps missed a step which shooting me an [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lijumathew.wordpress.com&amp;blog=2254804&amp;post=818&amp;subd=lijumathew&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I got the following error during Godaddy ssl setup on one of my client server. I refers Godaddy&#8217;s  ssl documentation for creating CSR and installing SSL. I can easily able to generate and complete the SSL certificates to be issued.  But it seems than Godaddy ssl installation steps missed a step which shooting me an error like this &#8220;SSL received a record that exceeded the maximum permissible length&#8221;</p>
<p>After googling caused me to check various factors and I got confusing .. Changed the name based virtualhost to <strong>ip based virtualhost</strong> ()  and  re-configuring <strong>Apache to listen</strong> (<code>Listen 7.6.2.3:443</code>) on new purchased ip in order to tunnel the ssl traffic to new ip. Everything is seems to ok  but I&#8217;m getting same error even I have re-key the ssl certificate.</p>
<p>Finally I found that neither of SSL engine (<strong>SSLEngine on</strong>) wasn&#8217;t declared any where in virtual host which causing to throw such errors.</p>
<p>&lt;VirtualHost <code>7.6.2.3:</code>443&gt;<br />
<code> ServerName secureddomain.com<br />
ServerAlias www.secureddomain.com<br />
ErrorLog /var/log/httpd/sd_error.log<br />
TransferLog /var/log/httpd/cd_trasfer.log<br />
DocumentRoot /home/securedd/public_html<br />
DirectoryIndex index.php index.html<br />
<strong>SSLEngine on</strong><br />
SSLCertificateFile /home/sysadmin/ssl/secureddomain.com.crt<br />
SSLCertificateKeyFile /home/sysadmin/ssl/secureddomain.com.key<br />
SSLCertificateChainFile /home/sysadmin/ssl/gd_bundle.crt<br />
&lt;Directory /home/securedd/public_html&gt;<br />
Options -Indexes IncludesNOEXEC FollowSymLinks<br />
allow from all<br />
AllowOverride All<br />
&lt;/Directory&gt;<br />
&lt;/VirtualHost&gt;</code></p>
<p>-njy</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lijumathew.wordpress.com/818/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lijumathew.wordpress.com/818/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lijumathew.wordpress.com/818/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lijumathew.wordpress.com/818/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/lijumathew.wordpress.com/818/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/lijumathew.wordpress.com/818/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/lijumathew.wordpress.com/818/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/lijumathew.wordpress.com/818/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lijumathew.wordpress.com/818/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lijumathew.wordpress.com/818/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lijumathew.wordpress.com/818/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lijumathew.wordpress.com/818/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lijumathew.wordpress.com/818/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lijumathew.wordpress.com/818/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lijumathew.wordpress.com&amp;blog=2254804&amp;post=818&amp;subd=lijumathew&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://lijumathew.wordpress.com/2010/10/11/ssl-received-a-record-that-exceeded-the-maximum-permissible-length/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b99b9ae3fb48d9e226848c806a241df9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Liju</media:title>
		</media:content>
	</item>
		<item>
		<title>mysqldump: Error 2020: Got packet bigger than &#039;max_allowed_packet&#039; bytes when dumping table</title>
		<link>http://lijumathew.wordpress.com/2010/10/10/mysqldump-error-2020-got-packet-bigger-than-max_allowed_packet-bytes-when-dumping-table/</link>
		<comments>http://lijumathew.wordpress.com/2010/10/10/mysqldump-error-2020-got-packet-bigger-than-max_allowed_packet-bytes-when-dumping-table/#comments</comments>
		<pubDate>Sun, 10 Oct 2010 17:32:39 +0000</pubDate>
		<dc:creator>Liju Mathew</dc:creator>
				<category><![CDATA[admins]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://www.serveridol.com/?p=813</guid>
		<description><![CDATA[I got this error when I was dumping a huge table which size is more than 26GB in size. mysqldump: Error 2020: Got packet bigger than &#8216;max_allowed_packet&#8217; bytes when dumping table `QPR` at row: 5659 The server&#8217;s default max_allowed_packet value is 1MB. You can increase this if the server needs to handle big queries (for [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lijumathew.wordpress.com&amp;blog=2254804&amp;post=813&amp;subd=lijumathew&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I got this error when I was dumping a huge table which size is more than 26GB in size.</p>
<blockquote><p>mysqldump: Error 2020: Got packet bigger than &#8216;max_allowed_packet&#8217; bytes when dumping table `QPR` at row: 5659</p></blockquote>
<p>The server&#8217;s default max_allowed_packet value is 1MB. You can increase this if the server needs to handle big queries (for example, if you are working with big BLOB columns). <strong>The largest possible packet that can be transmitted to or from a MySQL 5.1 server or client is 1GB.</strong></p>
<p>edit your my.cnf file and add<br />
<strong>max_allowed_packet=1024M</strong>  then restart<br />
<code>[root@db01 ~]# service mysqld restart<br />
Stopping MySQL:                                            [  OK  ]<br />
Starting MySQL:                                             [  OK  ] </code></p>
<p><code>mysql&gt; show GLOBAL variables like 'max_allowed_packet%';<br />
+--------------------+------------+<br />
| Variable_name      | Value      |<br />
+--------------------+------------+<br />
| max_allowed_packet | 1073740800 |<br />
+--------------------+------------+<br />
1 row in set (0.00 sec)<br />
mysql&gt;</code></p>
<p>NB: I need huge blog type data to be fetched from db.  We can also avoid this restart buy<br />
<strong>Make sure that if the parameter values are changed by executing this command (ex.)show parameters like &#8216;max_allowed_packet&#8217; from MySQL client(default).</strong></p>
<p>Suppose if you dumping huge blob data from another host, you also need to change this mysql variables to get it worked. Here I&#8217;m setting this to 1GB</p>
<p><code>mysql&gt; <strong>set global max_allowed_packet=100000000000;</strong><br />
Query OK, 0 rows affected (0.00 sec)<br />
mysql&gt; show variables like 'max_allowed_packet%';<br />
+--------------------+---------+<br />
| Variable_name      | Value   |<br />
+--------------------+---------+<br />
| max_allowed_packet | 1048576 |<br />
+--------------------+---------+<br />
1 row in set (0.10 sec)<br />
mysql&gt; <strong>set  max_allowed_packet=100000000000;</strong><br />
Query OK, 0 rows affected (0.00 sec)<br />
mysql&gt; show variables like 'max_allowed_packet%';<br />
+--------------------+------------+<br />
| Variable_name      | Value      |<br />
+--------------------+------------+<br />
| max_allowed_packet | 1073741824 |<br />
+--------------------+------------+<br />
1 row in set (0.00 sec)<br />
mysql&gt;<br />
</code></p>
<p>Finally the real solution is you need to add the &#8220;max_allowed_packets&#8221; parameter along with the mysqldump. mysqldump is notorious for ignoring this value in my.cnf, but setting it as the command line parameter always works.</p>
<p><strong>#mysqldump -u root -p &#8211;max_allowed_packet=512M -B database &#8211;tables tblblogdb &gt; dump.sql<br />
</strong><br />
I think it&#8217;s always better to run large mysqldump from another server from the same network which help to reduce disk resource and cpu power during the peak hours. Here is the one sample,<br />
<strong>#$MYSQLDUMP &#8211;max_allowed_packet=1G  -u $MyUSER -h $MyHOST -p$MyPASS -B $db | bzip2 &gt; $FILE</strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lijumathew.wordpress.com/813/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lijumathew.wordpress.com/813/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lijumathew.wordpress.com/813/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lijumathew.wordpress.com/813/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/lijumathew.wordpress.com/813/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/lijumathew.wordpress.com/813/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/lijumathew.wordpress.com/813/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/lijumathew.wordpress.com/813/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lijumathew.wordpress.com/813/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lijumathew.wordpress.com/813/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lijumathew.wordpress.com/813/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lijumathew.wordpress.com/813/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lijumathew.wordpress.com/813/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lijumathew.wordpress.com/813/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lijumathew.wordpress.com&amp;blog=2254804&amp;post=813&amp;subd=lijumathew&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://lijumathew.wordpress.com/2010/10/10/mysqldump-error-2020-got-packet-bigger-than-max_allowed_packet-bytes-when-dumping-table/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b99b9ae3fb48d9e226848c806a241df9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Liju</media:title>
		</media:content>
	</item>
	</channel>
</rss>
