<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-9115246770253186192</id><updated>2011-11-27T15:42:57.545-08:00</updated><title type='text'>I-Learnings</title><subtitle type='html'>LINUX,Apache,MySQL,PHP/Perl,Java</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://i-learnings.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9115246770253186192/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://i-learnings.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>mike3</name><uri>http://www.blogger.com/profile/03046743081833545009</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='19' height='32' src='http://bp0.blogger.com/_wsZ9-X2vbsg/R7suTDYPACI/AAAAAAAAAAY/N5WlenpKDcQ/S220/shikamaru2td1.png'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>10</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-9115246770253186192.post-4017306229822076346</id><published>2011-04-06T17:38:00.000-07:00</published><updated>2011-04-06T17:47:52.337-07:00</updated><title type='text'>Unable to start MySQl</title><content type='html'>We are not able to start MySQL because of the error below.&lt;br /&gt;&lt;br /&gt;110407 00:32:13  mysqld started&lt;br /&gt;110407  0:32:14  InnoDB: Error: cannot allocate 3221241856 bytes of&lt;br /&gt;InnoDB: memory with malloc! Total allocated memory&lt;br /&gt;InnoDB: by InnoDB 37679104 bytes. Operating system errno: 12&lt;br /&gt;InnoDB: Check if you should increase the swap file or&lt;br /&gt;InnoDB: ulimits of your operating system.&lt;br /&gt;InnoDB: On FreeBSD check you have compiled the OS with&lt;br /&gt;InnoDB: a big enough maximum process size.&lt;br /&gt;InnoDB: Note that in most 32-bit computers the process&lt;br /&gt;InnoDB: memory space is limited to 2 GB or 4 GB.&lt;br /&gt;InnoDB: We keep retrying the allocation for 60 seconds...&lt;br /&gt;InnoDB: Fatal error: cannot allocate the memory for the buffer pool&lt;br /&gt;110407  0:33:17 [ERROR] /usr/sbin/mysqld: Can't find file: './mysql/host.frm' (errno: 13)&lt;br /&gt;110407  0:33:17 [ERROR] /usr/sbin/mysqld: Can't find file: './mysql/host.frm' (errno: 13)&lt;br /&gt;110407  0:33:17 [ERROR] Fatal error: Can't open and lock privilege tables: Can't find file: './mysql/host.frm' (errno: 13)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I tried to remove the /etc/my.cnf. Always remember to back up the file first :). When i tried to start again the MySQL service still getting the errors. I tried to find some solutions in the web but i cannot find any related problems. I tried to set again the mysql configuration file. And when i tried to start MySQL and kaboom  it started. hehehe.. I don't know why but i am able to start the MySQL :)&lt;br /&gt;&lt;br /&gt;When i was starting the server i am seeing some weird logs before the MySQl started.&lt;br /&gt;&lt;br /&gt;[root@TESTING01 etc]# service mysql start&lt;br /&gt;/usr/bin/my_print_defaults: unknown option '--use-mysqld_safe'&lt;br /&gt;/usr/bin/my_print_defaults: unknown option '--use-mysqld_safe'&lt;br /&gt;Starting MySQL......                                       [  OK  ]&lt;br /&gt;[root@TESTING01 etc]# tail -f /var/lib/mysql/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9115246770253186192-4017306229822076346?l=i-learnings.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://i-learnings.blogspot.com/feeds/4017306229822076346/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9115246770253186192&amp;postID=4017306229822076346' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9115246770253186192/posts/default/4017306229822076346'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9115246770253186192/posts/default/4017306229822076346'/><link rel='alternate' type='text/html' href='http://i-learnings.blogspot.com/2011/04/unable-to-start-mysql.html' title='Unable to start MySQl'/><author><name>mike3</name><uri>http://www.blogger.com/profile/03046743081833545009</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='19' height='32' src='http://bp0.blogger.com/_wsZ9-X2vbsg/R7suTDYPACI/AAAAAAAAAAY/N5WlenpKDcQ/S220/shikamaru2td1.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9115246770253186192.post-5744615244820794213</id><published>2008-07-25T00:51:00.000-07:00</published><updated>2008-07-25T00:54:53.293-07:00</updated><title type='text'>PHP Compilation Errors and Solutions.</title><content type='html'>Additional solutions. Previously i posted some solutions regarding some errors in compiling PHP from source. Some errors below were posted in my previous postings.&lt;br /&gt;&lt;br /&gt;---------------------------&lt;br /&gt;checking for bison version... invalid&lt;br /&gt;configure: warning: bison versions supported for regeneration of the Zend/PHP parsers: 1.28 1.35 1.75 1.875 2.0 2.1 2.2 2.3 (found: none).&lt;br /&gt;checking for flex... lex&lt;br /&gt;checking for yywrap in -ll... no&lt;br /&gt;checking lex output file root... ./configure: line 3276: lex: command not found&lt;br /&gt;&lt;br /&gt;solution: flex-2.5.4a-33.i386.rpm&lt;br /&gt;---------------------------&lt;br /&gt;checking whether to enable LIBXML support... yes&lt;br /&gt;checking libxml2 install dir... no&lt;br /&gt;checking for xml2-config path...&lt;br /&gt;configure: error: xml2-config not found. Please check your libxml2 installation.&lt;br /&gt;&lt;br /&gt;solution: libxml2-devel-2.6.16-6.i386.rpm&lt;br /&gt;---------------------------&lt;br /&gt;checking whether to enable JIS-mapped Japanese font support in GD... no&lt;br /&gt;checking for fabsf... yes&lt;br /&gt;checking for floorf... yes&lt;br /&gt;configure: error: libjpeg.(a|so) not found.&lt;br /&gt;&lt;br /&gt;solution:libjpeg-devel-6b-33.i386.rpm&lt;br /&gt;---------------------------&lt;br /&gt;&lt;br /&gt;checking for jpeg_read_header in -ljpeg... yes&lt;br /&gt;configure: error: libpng.(a|so) not found.&lt;br /&gt;&lt;br /&gt;libpng-devel-1.2.7-1.el4.2.i386.rpm&lt;br /&gt;---------------------------&lt;br /&gt;checking for png_write_image in -lpng... yes&lt;br /&gt;If configure fails try --with-xpm-dir=&lt;dir&gt;&lt;br /&gt;configure: error: freetype2 not found!&lt;br /&gt;&lt;br /&gt;Solution: up2date freetype-devel&lt;br /&gt;---------------------------&lt;br /&gt;&lt;br /&gt;checking for LDAP support... yes, shared&lt;br /&gt;checking for LDAP Cyrus SASL support... no&lt;br /&gt;configure: error: Cannot find ldap.h&lt;br /&gt;&lt;br /&gt;solution: up2date openldap-devel&lt;br /&gt;---------------------------&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9115246770253186192-5744615244820794213?l=i-learnings.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://i-learnings.blogspot.com/feeds/5744615244820794213/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9115246770253186192&amp;postID=5744615244820794213' title='44 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9115246770253186192/posts/default/5744615244820794213'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9115246770253186192/posts/default/5744615244820794213'/><link rel='alternate' type='text/html' href='http://i-learnings.blogspot.com/2008/07/php-compilation-errors-and-solutions.html' title='PHP Compilation Errors and Solutions.'/><author><name>mike3</name><uri>http://www.blogger.com/profile/03046743081833545009</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='19' height='32' src='http://bp0.blogger.com/_wsZ9-X2vbsg/R7suTDYPACI/AAAAAAAAAAY/N5WlenpKDcQ/S220/shikamaru2td1.png'/></author><thr:total>44</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9115246770253186192.post-7768517699965371958</id><published>2008-05-16T05:39:00.000-07:00</published><updated>2008-05-16T05:42:04.102-07:00</updated><title type='text'>Setting a UTC Timezone</title><content type='html'>&lt;h1  style="font-weight: bold;font-family:courier new;"&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/h1&gt;    &lt;p  style="font-family:courier new;"&gt;&lt;span style="font-size:100%;"&gt;What timezone should you use for your server?  Perhaps you should try Universal Co-ordinated Time (UTC).&lt;/span&gt;&lt;/p&gt;  &lt;p  style="font-family:courier new;"&gt;&lt;span style="font-size:100%;"&gt;&lt;code&gt;vi /etc/sysconfig/clock&lt;/code&gt; and change the UTC line to: &lt;code&gt;"UTC=true"&lt;/code&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p  style="font-family:courier new;"&gt;&lt;span style="font-size:100%;"&gt;Set localtimezone to UTC: &lt;code&gt;ln -sf /usr/share/zoneinfo/UTC /etc/localtime&lt;/code&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p  style="font-family:courier new;"&gt;&lt;span style="font-size:100%;"&gt;If you want to set your timezone to something else, perhaps your personal timezone, then you find that timezone under /usr/share/zoneinfo and link that to /etc/localtime.  For example:  &lt;code&gt;ln -sf /usr/share/zoneinfo/Australia/Brisbane /etc/localtime&lt;/code&gt;.&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9115246770253186192-7768517699965371958?l=i-learnings.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://i-learnings.blogspot.com/feeds/7768517699965371958/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9115246770253186192&amp;postID=7768517699965371958' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9115246770253186192/posts/default/7768517699965371958'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9115246770253186192/posts/default/7768517699965371958'/><link rel='alternate' type='text/html' href='http://i-learnings.blogspot.com/2008/05/setting-utc-timezone.html' title='Setting a UTC Timezone'/><author><name>mike3</name><uri>http://www.blogger.com/profile/03046743081833545009</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='19' height='32' src='http://bp0.blogger.com/_wsZ9-X2vbsg/R7suTDYPACI/AAAAAAAAAAY/N5WlenpKDcQ/S220/shikamaru2td1.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9115246770253186192.post-5672660396179409627</id><published>2008-02-19T11:06:00.001-08:00</published><updated>2008-02-19T11:07:44.412-08:00</updated><title type='text'>How to get and install Apache in Linux</title><content type='html'>&lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;span style="font-size: 9pt; font-family: Verdana;"&gt;&lt;span style=""&gt;1.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-size: 9pt; font-family: Verdana;"&gt;Get the latest Apache distribution  at &lt;a href="http://www.apache.org/"&gt;http://www.apache.org&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 9pt; font-family: Verdana;"&gt;&lt;span style=""&gt;2.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-size: 9pt; font-family: Verdana;"&gt;Download and save it to /home/someuser/source/&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 9pt; font-family: Verdana;"&gt;&lt;span style=""&gt;3.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-size: 9pt; font-family: Verdana;"&gt;Open terminal&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 9pt; font-family: Verdana;"&gt;&lt;span style=""&gt;4.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-size: 9pt; font-family: Verdana;"&gt;# cd /home/someuser/source/&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 9pt; font-family: Verdana;"&gt;&lt;span style=""&gt;5.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-size: 9pt; font-family: Verdana;"&gt;Unpack the distribution&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 1in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 9pt; font-family: Symbol;"&gt;&lt;span style=""&gt;·&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;          &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-size: 9pt; font-family: Verdana;"&gt;# tar xzvf httpd-x.x.x tar.gz&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 9pt; font-family: Verdana;"&gt;&lt;span style=""&gt;6.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-size: 9pt; font-family: Verdana;"&gt;Go to the Apache source directory&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 1in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 9pt; font-family: Symbol;"&gt;&lt;span style=""&gt;·&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;          &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-size: 9pt; font-family: Verdana;"&gt;# cd httpd-x.x.x&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 9pt; font-family: Verdana;"&gt;&lt;span style=""&gt;7.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-size: 9pt; font-family: Verdana;"&gt;Configure, compile and install Apache&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 1in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 9pt; font-family: Symbol;"&gt;&lt;span style=""&gt;·&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;          &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-size: 9pt; font-family: Verdana;"&gt;# ./configure --prefix=/usr/local/apache --enable-module=all --enable-shared=max&lt;span style=""&gt;  &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 1in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 9pt; font-family: Symbol;"&gt;&lt;span style=""&gt;·&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;          &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-size: 9pt; font-family: Verdana;"&gt;# make&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 1in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 9pt; font-family: Symbol;"&gt;&lt;span style=""&gt;·&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;          &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-size: 9pt; font-family: Verdana;"&gt;# make install&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9115246770253186192-5672660396179409627?l=i-learnings.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://i-learnings.blogspot.com/feeds/5672660396179409627/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9115246770253186192&amp;postID=5672660396179409627' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9115246770253186192/posts/default/5672660396179409627'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9115246770253186192/posts/default/5672660396179409627'/><link rel='alternate' type='text/html' href='http://i-learnings.blogspot.com/2008/02/how-to-get-and-install-apache-in-linux.html' title='How to get and install Apache in Linux'/><author><name>mike3</name><uri>http://www.blogger.com/profile/03046743081833545009</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='19' height='32' src='http://bp0.blogger.com/_wsZ9-X2vbsg/R7suTDYPACI/AAAAAAAAAAY/N5WlenpKDcQ/S220/shikamaru2td1.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9115246770253186192.post-2095261396856590753</id><published>2008-02-12T23:13:00.000-08:00</published><updated>2008-02-13T01:12:59.961-08:00</updated><title type='text'>How to use crontabs</title><content type='html'>&lt;span style=";font-family:Times New Roman;font-size:100%;"  &gt;&lt;b&gt;Crontab&lt;/b&gt; &lt;b&gt;&lt;a name="Commands"&gt;Commands&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;__________&lt;br /&gt;&lt;span style="font-weight: 400;"&gt;export EDITOR=vi ;to specify a  editor to open crontab file.&lt;br /&gt;&lt;br /&gt;crontab -e     Edit your crontab file, or create one if it  doesn't already exist.&lt;br /&gt;crontab -l      Display your crontab file.&lt;br /&gt;crontab -r      Remove your crontab file.&lt;br /&gt;crontab -v      Display the last time you edited your  crontab file. (This option is only available on a few systems.)&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:Times New Roman;font-size:100%;"  &gt;&lt;b&gt;Crontab&lt;/b&gt; &lt;b&gt;syntax :-&lt;/b&gt;&lt;br /&gt;A crontab file has five fields for specifying day , date and time  followed  by the command to be run at that interval.&lt;/span&gt;&lt;table style="border-collapse: collapse; color: rgb(219, 219, 219);" id="AutoNumber1" bg="" border="0" cellpadding="0" cellspacing="7" width="79%"&gt;   &lt;tbody&gt;&lt;tr&gt;     &lt;td width="100%"&gt;&lt;span style=";font-family:Times New Roman;font-size:100%;"  &gt;&lt;span style="color: rgb(255, 0, 0);"&gt;*     *   *   *         *  command to be executed&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;    -     -    -    -         -&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;    |     |     |          |     |&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;    |     |     |          |     +----- day of week (0 - 6) (Sunday=0)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;    |     |     |          +------- month (1 - 12)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;    |     |     +--------- day of month      (1 - 31)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;    |     +----------- hour (0 - 23)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;    +------------- min (0 - 59)&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;&lt;p&gt;&lt;span style=";font-family:Times New Roman;font-size:100%;"  &gt; * in the value field above means all legal values as in braces for that column.&lt;br /&gt;The value column can have a * or a list of elements separated by commas. An element is either a number in the ranges shown above or two numbers in the range separated by a hyphen (meaning an inclusive range).&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Note&lt;/b&gt;: The specification of days can be made in two fields: month day and weekday. If both are specified in an entry, they are cumulative meaning both of the entries will get executed .&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=";font-family:Times New Roman;font-size:100%;"  &gt;&lt;b&gt;Crontab&lt;/b&gt; &lt;b&gt;&lt;a name="Example"&gt;Example&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;&lt;span style="font-weight: 400;"&gt;&lt;br /&gt;A line in crontab file like below  removes the tmp files from /home/someuser/tmp  each day at 6:30 PM.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-weight: 400;"&gt;&lt;span style=";font-family:Times New Roman;font-size:100%;"  &gt;30     18      *     *     *          rm /home/someuser/tmp/*&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-weight: 400;"&gt;&lt;span style=";font-family:Times New Roman;font-size:100%;"  &gt;Below runs the script every 3 minutes.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-weight: 400;"&gt;&lt;span style=";font-family:Times New Roman;font-size:100%;"  &gt;*/3 * * * * /home/perl/update.pl&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=";font-family:Times New Roman;font-size:100%;"  &gt;&lt;b&gt;&lt;a name="Disable Email"&gt;Disable Email&lt;/a&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=";font-family:Times New Roman;font-size:100%;"  &gt;By default cron jobs sends a email to the user account executing the cronjob.  If this is not needed put the following command At the end of the cron job line  .&lt;br /&gt;&lt;br /&gt;&gt;/dev/null 2&gt;&amp;amp;1&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9115246770253186192-2095261396856590753?l=i-learnings.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://i-learnings.blogspot.com/feeds/2095261396856590753/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9115246770253186192&amp;postID=2095261396856590753' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9115246770253186192/posts/default/2095261396856590753'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9115246770253186192/posts/default/2095261396856590753'/><link rel='alternate' type='text/html' href='http://i-learnings.blogspot.com/2008/02/how-to-use-crontabs.html' title='How to use crontabs'/><author><name>mike3</name><uri>http://www.blogger.com/profile/03046743081833545009</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='19' height='32' src='http://bp0.blogger.com/_wsZ9-X2vbsg/R7suTDYPACI/AAAAAAAAAAY/N5WlenpKDcQ/S220/shikamaru2td1.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9115246770253186192.post-5147861888007995776</id><published>2008-02-08T01:31:00.000-08:00</published><updated>2008-02-08T01:49:45.336-08:00</updated><title type='text'>How to install JDK 6 Update 4 in RHEL 4/5</title><content type='html'>STEP 1:DOWNLOADING FILE&lt;br /&gt;Download  Linux RPM in self-extracting file from http://java.sun.com/.&lt;br /&gt;   &lt;br /&gt;jdk-6u4-linux-i586-rpm.bin     - for non 64 bit computer&lt;br /&gt;jdk-6u4-linux-x64-rpm.bin      - for 64 bit computer&lt;br /&gt;&lt;br /&gt;STEP 2: HOW TO INSTALL&lt;br /&gt;&lt;ol&gt;&lt;li&gt;&lt;span style="font-size: 9pt; font-family: Verdana;"&gt;chmod a+x jdk-6u4-linux-xxxx.rpm.bin&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size: 9pt; font-family: Verdana;"&gt;./&lt;/span&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;;"&gt; &lt;/span&gt;&lt;span style="font-size: 9pt; font-family: Verdana;"&gt;jdk &lt;/span&gt;&lt;span style="font-size: 9pt; font-family: Verdana;"&gt;jdk-6u4&lt;/span&gt;&lt;span style="font-size: 9pt; font-family: Verdana;"&gt;-linux-xxxx.rpm.bin&lt;/span&gt;&lt;span style="font-size: 9pt; font-family: Verdana;"&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size: 9pt; font-family: Verdana;"&gt;Remove the existing java installation. you can identify the package by executing 'rpm -qa | grep java' you can remove the package by executing rpm -e 'java-1.x.x.'&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size: 9pt; font-family: Verdana;"&gt;rpm &lt;/span&gt;&lt;span style="font-size: 9pt; font-family: Verdana;"&gt;jdk-6u4&lt;/span&gt;&lt;span style="font-size: 9pt; font-family: Verdana;"&gt;-linux-xxxx.rpm&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size: 10pt; font-family: Verdana;"&gt;vi /root/.bash_profile and add this .. &lt;/span&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 8pt; font-family: Verdana;"&gt;PATH=$PATH:$HOME/bin:/usr/java/jdk1.6.0_04/bin&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;After doing the steps reboot your machine.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9115246770253186192-5147861888007995776?l=i-learnings.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://i-learnings.blogspot.com/feeds/5147861888007995776/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9115246770253186192&amp;postID=5147861888007995776' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9115246770253186192/posts/default/5147861888007995776'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9115246770253186192/posts/default/5147861888007995776'/><link rel='alternate' type='text/html' href='http://i-learnings.blogspot.com/2008/02/how-to-install-jdk-6-update-4-in-rhel.html' title='How to install JDK 6 Update 4 in RHEL 4/5'/><author><name>mike3</name><uri>http://www.blogger.com/profile/03046743081833545009</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='19' height='32' src='http://bp0.blogger.com/_wsZ9-X2vbsg/R7suTDYPACI/AAAAAAAAAAY/N5WlenpKDcQ/S220/shikamaru2td1.png'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9115246770253186192.post-6272129179916069987</id><published>2008-02-08T01:08:00.000-08:00</published><updated>2008-02-08T01:12:05.191-08:00</updated><title type='text'>PHP Compilation Error: configure: error: Cannot find rfc822.h. Please check your c-client installation.</title><content type='html'>If you are getting this error while compiling the PHP source, this is how to fix the problem.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Solution:&lt;/span&gt; If your machine is registered to redhat network just execute up2date -i libc-client-devel to install in your machine&lt;br /&gt;&lt;br /&gt;If your machine is not registered download the libjpeg-devel.x.x.x.rpm then install it your machine.&lt;br /&gt;&lt;br /&gt;rpm -ivh libc-client-devel.x.x.x.rpm&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9115246770253186192-6272129179916069987?l=i-learnings.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://i-learnings.blogspot.com/feeds/6272129179916069987/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9115246770253186192&amp;postID=6272129179916069987' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9115246770253186192/posts/default/6272129179916069987'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9115246770253186192/posts/default/6272129179916069987'/><link rel='alternate' type='text/html' href='http://i-learnings.blogspot.com/2008/02/php-compilation-error-configure-error_08.html' title='PHP Compilation Error: configure: error: Cannot find rfc822.h. Please check your c-client installation.'/><author><name>mike3</name><uri>http://www.blogger.com/profile/03046743081833545009</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='19' height='32' src='http://bp0.blogger.com/_wsZ9-X2vbsg/R7suTDYPACI/AAAAAAAAAAY/N5WlenpKDcQ/S220/shikamaru2td1.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9115246770253186192.post-3323630817302156076</id><published>2008-02-08T00:59:00.000-08:00</published><updated>2008-02-13T18:47:13.402-08:00</updated><title type='text'>PHP Compilation Error: lib64/libc-client.a: could not read symbols: Bad value | make: *** [ext/imap/imap.la] Error 1</title><content type='html'>/usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../lib64/libc-client.a: could not read symbols: Bad value&lt;br /&gt;collect2: ld returned 1 exit status&lt;br /&gt;make: *** [ext/imap/imap.la] Error 1&lt;br /&gt;&lt;br /&gt;If you are getting this error, you can fix this by installing an older version of the following rpm's below.&lt;br /&gt;&lt;br /&gt;libc-client.x.x.x.rpm&lt;br /&gt;libc-client-devel.x.x.x.rpm&lt;br /&gt;&lt;br /&gt;Some older php-source is not compatible with the latest libc-client.&lt;br /&gt;&lt;br /&gt;I don't know if this is the ultimate solution but it works when I tried to install the older version of libc-client. =-)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9115246770253186192-3323630817302156076?l=i-learnings.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://i-learnings.blogspot.com/feeds/3323630817302156076/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9115246770253186192&amp;postID=3323630817302156076' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9115246770253186192/posts/default/3323630817302156076'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9115246770253186192/posts/default/3323630817302156076'/><link rel='alternate' type='text/html' href='http://i-learnings.blogspot.com/2008/02/php-compilation-error-lib64libc-clienta.html' title='PHP Compilation Error: lib64/libc-client.a: could not read symbols: Bad value | make: *** [ext/imap/imap.la] Error 1'/><author><name>mike3</name><uri>http://www.blogger.com/profile/03046743081833545009</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='19' height='32' src='http://bp0.blogger.com/_wsZ9-X2vbsg/R7suTDYPACI/AAAAAAAAAAY/N5WlenpKDcQ/S220/shikamaru2td1.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9115246770253186192.post-7581486830353421254</id><published>2008-02-08T00:07:00.000-08:00</published><updated>2008-02-08T00:38:45.051-08:00</updated><title type='text'>PHP Compilation Error: configure: error: libjpeg.(a|so) not found.</title><content type='html'>If you are getting this error while compiling the PHP source, this is how to fix the problem.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Solution:&lt;/span&gt; If your machine is registered to redhat network just execute up2date -i libjpeg-devel to install in your machine&lt;br /&gt;&lt;br /&gt;If your machine is not registered download the libjpeg-devel.x.x.x.rpm then install it your machine.&lt;br /&gt;&lt;br /&gt;rpm -ivh libjpeg-devel.x.x.x.rpm&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9115246770253186192-7581486830353421254?l=i-learnings.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://i-learnings.blogspot.com/feeds/7581486830353421254/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9115246770253186192&amp;postID=7581486830353421254' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9115246770253186192/posts/default/7581486830353421254'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9115246770253186192/posts/default/7581486830353421254'/><link rel='alternate' type='text/html' href='http://i-learnings.blogspot.com/2008/02/php-compilation-error-configure-error.html' title='PHP Compilation Error: configure: error: libjpeg.(a|so) not found.'/><author><name>mike3</name><uri>http://www.blogger.com/profile/03046743081833545009</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='19' height='32' src='http://bp0.blogger.com/_wsZ9-X2vbsg/R7suTDYPACI/AAAAAAAAAAY/N5WlenpKDcQ/S220/shikamaru2td1.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9115246770253186192.post-3687189581026106873</id><published>2007-07-19T15:36:00.000-07:00</published><updated>2007-07-19T15:48:33.402-07:00</updated><title type='text'>Sendmail error:unqualified host name (localhost) unknown; sleeping for retry</title><content type='html'>&lt;pre&gt;&lt;span style="font-weight: bold;"&gt;Solution:&lt;/span&gt;Make sure the host's names (including localhost) are&lt;br /&gt;defined in /etc/hosts, and that /etc/hosts is being used in&lt;br /&gt;name resolution.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Possible Fixes:&lt;/span&gt;&lt;br /&gt;The solution will fix in shortening waiting time execution&lt;br /&gt;of mailq,sendmail -q, and restarting the service of sendmail.&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9115246770253186192-3687189581026106873?l=i-learnings.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://i-learnings.blogspot.com/feeds/3687189581026106873/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9115246770253186192&amp;postID=3687189581026106873' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9115246770253186192/posts/default/3687189581026106873'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9115246770253186192/posts/default/3687189581026106873'/><link rel='alternate' type='text/html' href='http://i-learnings.blogspot.com/2007/07/sendmail-errorunqualified-host-name.html' title='Sendmail error:unqualified host name (localhost) unknown; sleeping for retry'/><author><name>mike3</name><uri>http://www.blogger.com/profile/03046743081833545009</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='19' height='32' src='http://bp0.blogger.com/_wsZ9-X2vbsg/R7suTDYPACI/AAAAAAAAAAY/N5WlenpKDcQ/S220/shikamaru2td1.png'/></author><thr:total>0</thr:total></entry></feed>
