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

<channel>
	<title>Unix Surgeon &#187; Open Source Applications</title>
	<atom:link href="http://www.unixsurgeon.com/kb/category/open-source-applications/feed" rel="self" type="application/rss+xml" />
	<link>http://www.unixsurgeon.com/kb</link>
	<description>Linux Hosting Solution, Linux Web Hosting Solution, Learn Linux, How to, Server Management , Web Hosting Solution , Linux Solution , KnowledgeBase , Linux Tutorial</description>
	<lastBuildDate>Mon, 06 Feb 2012 10:42:49 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to install NginX on cPanel WHM/Cpanel Server</title>
		<link>http://www.unixsurgeon.com/kb/how-to-install-nginx-on-cpanel-whmcpanel-server.html</link>
		<comments>http://www.unixsurgeon.com/kb/how-to-install-nginx-on-cpanel-whmcpanel-server.html#comments</comments>
		<pubDate>Mon, 06 Feb 2012 10:42:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Linux tutorials]]></category>
		<category><![CDATA[Open Source Applications]]></category>
		<category><![CDATA[lamp server]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[nginxadmin]]></category>
		<category><![CDATA[nginxcp]]></category>

		<guid isPermaLink="false">http://www.unixsurgeon.com/kb/?p=351</guid>
		<description><![CDATA[Install NginxAdmin to WHM/Cpanel for Optimize Performance.
Diffrence between nginx &#38; apache :-
Apache is a process-based server, while nginx is an event-based web server.Nginx known as &#8220;engineX&#8221; probably the best-known asynchronous server and Apache is undoubtedly the best known process-based server.
The main advantage of the asynchronous approach is scalability. In a process-based server, each simultaneous connection [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Install NginxAdmin to WHM/Cpanel for Optimize Performance.</strong></p>
<p><strong>Diffrence between nginx &amp; apache :-</strong></p>
<p>Apache is a process-based server, while nginx is an event-based web server.Nginx known as &#8220;engineX&#8221; probably the best-known asynchronous server and Apache is undoubtedly the best known process-based server.</p>
<p>The main advantage of the asynchronous approach is scalability. In a process-based server, each simultaneous connection requires a thread which incurs significant overhead. An asynchronous server, on the other hand, is event-driven and handles requests in a single (or at least, very few) threads.</p>
<p>While a process-based server can often perform on par with an asynchronous server under light loads, under heavier loads they usually consume far too much RAM which significantly degrades performance. Also, they degrade much faster on less powerful hardware or in a resource-restricted environment such as a VPS.</p>
<p>Pulling numbers from thin air for illustrative purposes, serving 10,000 simultaneous connections would probably only cause Nginx to use a few megabytes of RAM whereas Apache would probably consume hundreds of megabytes (if it could do it at all).</p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-7877248176171699";
google_ad_slot = "4635030684";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p><strong>Nginx+cPanel+Apache= Performance boosted secured hosting server</strong></p>
<p><strong>How NginxAdmin will help your cPanel server to increase the performance ?</strong></p>
<p>NginxAdmin is WHM interface of Nginx installer for cPanel server. This plugin will increase your server performance and decrease the server Apache Load. So you can host more websites in a cPanel server than usual.Nginx is known for its high performance, stability, rich feature set, simple configuration, and low resource consumption.Unlike traditional servers, Nginx doesn&#8217;t rely on threads to handle requests. Instead it uses a much more scalable event-driven architecture. This architecture uses small, but more importantly, predictable amounts of memory under load.</p>
<p>Even if you don&#8217;t expect to handle thousands of simultaneous requests, you can still benefit from Nginx&#8217;s high-performance and small memory footprint. Nginx scales in all directions: from the smallest VPS all the way up to clusters of servers.</p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-7877248176171699";
google_ad_slot = "4635030684";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p><strong>To install copy and execute following lines :-</strong></p>
<p># cd /usr/local/src<br />
# wget http://nginxcp.com/nginxadmin2.8-stable.tar<br />
# tar -xvf nginxadmin2.8-stable.tar<br />
# cd publicnginx<br />
# ./nginxinstaller install<br />
# /etc/init.d/httpd restart</p>
<p><strong>Troubleshooting Installation:-</strong></p>
<p>If you receive any pyaml related error or the following error</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
Welcome to the Nginx Admin installer&#8230;&#8230;Starting Install<br />
Generating vhosts&#8230;<br />
Traceback (most recent call last):<br />
File &#8220;/scripts/createvhosts.py&#8221;, line 2, in ?<br />
import yaml<br />
File &#8220;/usr/lib/python2.4/site-packages/PyYAML-3.10-py2.4-linux-i686.egg/yaml/__init__.py&#8221;, line 26<br />
SyntaxError: &#8216;yield&#8217; not allowed in a &#8216;try&#8217; block with a &#8216;finally&#8217; clause<br />
Installing WHM interface&#8230;<br />
deploying booster rockets<br />
Traceback (most recent call last):<br />
File &#8220;/usr/local/src/publicnginx/nginxinstaller2&#8243;, line 9, in ?<br />
import createvhosts<br />
File &#8220;/usr/local/src/publicnginx/createvhosts.py&#8221;, line 2, in ?<br />
import yaml<br />
File &#8220;/usr/lib/python2.4/site-packages/PyYAML-3.10-py2.4-linux-i686.egg/yaml/__init__.py&#8221;, line 26<br />
SyntaxError: &#8216;yield&#8217; not allowed in a &#8216;try&#8217; block with a &#8216;finally&#8217; clause<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>Then run execute following commands &#8230;.<br />
<strong>For i686 architecture :-</strong></p>
<p># easy_install Pyyaml==3.09<br />
# rm -f /usr/lib/python2.4/site-packages/PyYAML-3.10-py2.4-linux-i686.egg</p>
<p><strong>For x86_64 architecture :-</strong></p>
<p># easy_install Pyyaml==3.09<br />
# rm -f /usr/lib/python2.4/site-packages/PyYAML-3.10-py2.4-linux-x86_64.egg</p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-7877248176171699";
google_ad_slot = "4635030684";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p><strong>Then Again run the following commands :-<br />
</strong><br />
# ./nginxinstaller install<br />
# /etc/init.d/httpd restart</p>
<p>Now Nginx run on the port no:80 and apache run on the port no.8081.You can manage the nginx through WHM &gt;&gt; Main &gt;&gt; Nginx Admin</p>
<p><img class="alignnone" title="nginxadmin" src="http://unixsurgeon.com/images/nginx.png" alt="" width="656" height="341" /></p>
<p><strong>To uninstall nginx use following :-</strong></p>
<p>#  cd /usr/local/src<br />
#  wget http://nginxcp.com/nginxadmin2.8-stable.tar<br />
#  tar xf nginxadmin2.8-stable.tar<br />
#  cd publicnginx<br />
#  ./nginxinstaller uninstall</p>
<p><strong>Enjoy Linux&#8230;!!!!</strong></p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-7877248176171699";
google_ad_slot = "4635030684";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.unixsurgeon.com/kb/how-to-install-nginx-on-cpanel-whmcpanel-server.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install MP4Box with ffmpeg.</title>
		<link>http://www.unixsurgeon.com/kb/install-mp4box-with-ffmpeg.html</link>
		<comments>http://www.unixsurgeon.com/kb/install-mp4box-with-ffmpeg.html#comments</comments>
		<pubDate>Fri, 03 Feb 2012 06:16:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[FFMPEG]]></category>
		<category><![CDATA[Linux tutorials]]></category>
		<category><![CDATA[Open Source Applications]]></category>
		<category><![CDATA[MP4Box]]></category>

		<guid isPermaLink="false">http://www.unixsurgeon.com/kb/?p=348</guid>
		<description><![CDATA[Install MP4Box with ffmpeg
The following are the instructions for installing a fully fuctional Mp4Box plugins with ffmpeg. You first need to install ffmepg and all its related modules using the script  from  this website. Then please proceed the following steps.



#  yum -y install freetype-devel SDL-devel freeglut-devel
#  wget -c http://mirror.ffmpeginstaller.com/source/gpac/gpac-full-0.4.5.tar.gz
#  tar -xzf gpac-full-0.4.5.tar.gz
#  cd gpac/
# ./configure [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Install MP4Box with ffmpeg</strong></p>
<p>The following are the instructions for installing a fully fuctional Mp4Box plugins with ffmpeg. You first need to install ffmepg and all its related modules using the script  from  this website. Then please proceed the following steps.</p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-7877248176171699";
google_ad_slot = "4635030684";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p><strong>#  yum -y install freetype-devel SDL-devel freeglut-devel<br />
#  wget -c http://mirror.ffmpeginstaller.com/source/gpac/gpac-full-0.4.5.tar.gz<br />
#  tar -xzf gpac-full-0.4.5.tar.gz<br />
#  cd gpac/<br />
# ./configure –-prefix=/usr/local/cpffmpeg/ –-extra-cflags=-I/usr/local/cpffmpeg/include/ –-extra-ldflags=-L/usr/local/cpffmpeg/lib –-disable-wx –-strip<br />
</strong></p>
<p><strong>#  make<br />
#  make install</strong><br />
Then create softlink for the same :-</p>
<p><strong>#  ln -s /usr/local/cpffmpeg/bin/MP4Box /usr/local/bin/MP4Box<br />
#  ln -s /usr/local/cpffmpeg/bin/MP4Box /usr/bin/MP4Box</strong></p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-7877248176171699";
google_ad_slot = "4635030684";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.unixsurgeon.com/kb/install-mp4box-with-ffmpeg.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Howto install Nginx on Centos.</title>
		<link>http://www.unixsurgeon.com/kb/howto-install-nginx-on-centos.html</link>
		<comments>http://www.unixsurgeon.com/kb/howto-install-nginx-on-centos.html#comments</comments>
		<pubDate>Fri, 03 Feb 2012 04:41:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Linux tutorials]]></category>
		<category><![CDATA[Open Source Applications]]></category>
		<category><![CDATA[lamp server]]></category>
		<category><![CDATA[nginx]]></category>

		<guid isPermaLink="false">http://www.unixsurgeon.com/kb/?p=337</guid>
		<description><![CDATA[Today we are going to install Nginx on Centos. Nginx (pronounced “Engine X”) is a lightweight web server that offers speed and flexibility without all of the extra features that larger web servers like Apache offer. Although it is a free and open source application, CentOS does not offer the latest version in its default [...]]]></description>
			<content:encoded><![CDATA[<p>Today we are going to install Nginx on Centos. Nginx (pronounced “Engine X”) is a lightweight web server that offers speed and flexibility without all of the extra features that larger web servers like Apache offer. Although it is a free and open source application, CentOS does not offer the latest version in its default YUM repository. To install it, you need to add the EPEL (Extra Packages for Enterprise Linux) repository, which is part of the Fedora Project.</p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-7877248176171699";
google_ad_slot = "4635030684";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p><strong>First of all installing the EPEL repository:-</strong></p>
<p>[p-root@unixsurgeon ~]# rpm -Uvh http://download.fedora.redhat.com/pub/epel/5Server/i386/epel-release-5-4.noarch.rpm</p>
<p>Retrieving http://download.fedora.redhat.com/pub/epel/5Server/i386/epel-release-5-4.noarch.rpm<br />
warning: /var/tmp/rpm-xfer.toDVXj: Header V3 DSA signature: NOKEY, key ID 217521f6<br />
Preparing…                ########################################### [100%]<br />
1:epel-release              ########################################### [100%]</p>
<p><strong>Install nginx:-</strong></p>
<p>[p-root@unixsurgeon ~]# yum install nginx</p>
<p>It will install nginx and ask gpg-key for EPEL, accept with yes option.</p>
<p><strong>Now start your nginx web server.</strong></p>
<p>[p-root@unixsurgeon ~]# service nginx start</p>
<p>Starting nginx:                                            [  OK  ]</p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-7877248176171699";
google_ad_slot = "4635030684";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p>The default document root of nginx server :- /usr/share/nginx/html<br />
And the config file path is :-  /etc/nginx/nginx.conf<br />
Now open your browser and type 127.0.0.1 , it will open your default nginx page like below:-</p>
<p>http://127.0.0.1</p>
<p>The Default Document root is /usr/share/nginx/html&#8230;.you should now put your content in a location of your choice and edit the root configuration directive in the nginx configuration file /et/nginx/nginx.conf.</p>
<p><img class="aligncenter" title="nginx" src="http://unixsurgeon.com/images/nginxcentos.png" alt="" width="681" height="144" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.unixsurgeon.com/kb/howto-install-nginx-on-centos.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cannot start session without errors &#124; Phpmyadmin</title>
		<link>http://www.unixsurgeon.com/kb/cannot-start-session-without-errors-phpmyadmin.html</link>
		<comments>http://www.unixsurgeon.com/kb/cannot-start-session-without-errors-phpmyadmin.html#comments</comments>
		<pubDate>Thu, 02 Feb 2012 07:15:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Mysql]]></category>
		<category><![CDATA[Open Source Applications]]></category>
		<category><![CDATA[lamp server]]></category>

		<guid isPermaLink="false">http://www.unixsurgeon.com/kb/?p=335</guid>
		<description><![CDATA[Today i m encountered an error&#8230; phpMyAdmin is inaccessible and throws the error following message &#8220;Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly &#8220;. This can be due to server-sided permissions of the temporary directory where session files are stored.



Solution :-
The [...]]]></description>
			<content:encoded><![CDATA[<p>Today i m encountered an error&#8230; phpMyAdmin is inaccessible and throws the error following message<strong> &#8220;Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly &#8220;. </strong>This can be due to server-sided permissions of the temporary directory where session files are stored.</p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-7877248176171699";
google_ad_slot = "4635030684";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p><strong>Solution :-</strong></p>
<p>The issue with directory permissions or directory ownership of the directory where PHP keeps its session files.</p>
<p>Locate the directory where sessions are stored in the php.ini file. It will look something like this, although the exact path will vary depending on the distro and any customizations you may have made yourself:</p>
<p><strong>session.save_path = &#8220;/var/lib/php/session&#8221;</strong></p>
<p>Now check the permissions of that directory and make sure that the web server has permissions to access it.</p>
<p>You may need to either change ownership of the directory, e.g.:</p>
<p><strong># chown user:group /var/lib/php/session</strong></p>
<p>and substitute &#8220;user&#8221; for the actual username and &#8220;group&#8221; for the actual group, and /var/lib/php/session for the actual session save path.</p>
<p>Alternatively, just change the permissions of the directory so it&#8217;s world readable and writable:</p>
<p><strong># chmod 0777 /var/lib/php/session</strong><br />
<strong>Enjoy Linux&#8230;!!!!<br />
</strong></p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-7877248176171699";
google_ad_slot = "4635030684";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.unixsurgeon.com/kb/cannot-start-session-without-errors-phpmyadmin.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Missing Dependency: perl(URI) &gt;= 1.17 is needed by package subversion</title>
		<link>http://www.unixsurgeon.com/kb/missing-dependency-perluri-1-17-is-needed-by-package-subversion.html</link>
		<comments>http://www.unixsurgeon.com/kb/missing-dependency-perluri-1-17-is-needed-by-package-subversion.html#comments</comments>
		<pubDate>Fri, 13 Jan 2012 11:30:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[FFMPEG]]></category>
		<category><![CDATA[Linux tutorials]]></category>
		<category><![CDATA[Open Source Applications]]></category>
		<category><![CDATA[skipborken;perl(URI)]]></category>

		<guid isPermaLink="false">http://www.unixsurgeon.com/kb/?p=329</guid>
		<description><![CDATA[Install Error: Missing Dependency: perl(URI) &#62;= 1.17 is needed by package subversion
Today i finally decided to go ahead with installing subversion, after a bit of reading i opened a ssh session and input :
[root@unixsurgeon.com ~]# yum install subversion
I got an surprise error :-
Error: Missing Dependency: perl(URI) &#62;= 1.17 is needed by package subversion



After a long [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Install Error: Missing Dependency: perl(URI) &gt;= 1.17 is needed by package subversion</strong></p>
<p>Today i finally decided to go ahead with installing subversion, after a bit of reading i opened a ssh session and input :</p>
<p>[root@unixsurgeon.com ~]# yum install subversion</p>
<p><strong>I got an surprise error :-</strong></p>
<p>Error: Missing Dependency: perl(URI) &gt;= 1.17 is needed by package subversion</p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-7877248176171699";
google_ad_slot = "4635030684";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p>After a long try i managed to find a solution and i thought to post it here, so that other will find it faster.</p>
<p>First we need to download the perl(URI) with version greater than 1.17 using the following command.</p>
<p>[root@unixsurgeon.com ~]# wget http://yum.trixbox.org/centos/5/RPMS/perl-URI-1.35-3.noarch.rpm</p>
<p><strong>Then to install the perl package :-</strong></p>
<p>[root@unixsurgeon.com ~]# rpm -i perl-URI-1.35-3.noarch.rpm</p>
<p>That is it, you can now install the subversion once again.</p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-7877248176171699";
google_ad_slot = "4635030684";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p><strong>In Capnel :-</strong></p>
<p>Problem solved by using the following way:</p>
<p>1. Removed perl* part from the yum repository(/etc/yum.conf)<br />
2. yum install subversion<br />
3. Add perl* back to the yum.conf file</p>
<p>Enjoy Linux&#8230;!!!! <img src='http://www.unixsurgeon.com/kb/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-7877248176171699";
google_ad_slot = "4635030684";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.unixsurgeon.com/kb/missing-dependency-perluri-1-17-is-needed-by-package-subversion.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Install MP4Box in Linux 64 bit server.</title>
		<link>http://www.unixsurgeon.com/kb/how-to-install-mp4box-in-linux-64-bit-server.html</link>
		<comments>http://www.unixsurgeon.com/kb/how-to-install-mp4box-in-linux-64-bit-server.html#comments</comments>
		<pubDate>Tue, 10 Jan 2012 09:48:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[FFMPEG]]></category>
		<category><![CDATA[Open Source Applications]]></category>
		<category><![CDATA[libgpac.so]]></category>
		<category><![CDATA[MP4Box]]></category>

		<guid isPermaLink="false">http://www.unixsurgeon.com/kb/?p=320</guid>
		<description><![CDATA[MP4Box is a MP4 multiplexer utility, which can import MPEG-4 video, DivX, XviD, 3ivx, h264 etc, audio streams and subtitles into the .mp4 container. The end result is a compliant MP4 stream. It can also extract streams from a .mp4. MP4Box is a command line tool, but can be used with graphical user interfaces such [...]]]></description>
			<content:encoded><![CDATA[<p><strong>MP4Box</strong> is a MP4 multiplexer utility, which can import MPEG-4 video, DivX, XviD, 3ivx, h264 etc, audio streams and subtitles into the .mp4 container. The end result is a compliant MP4 stream. It can also extract streams from a .mp4. MP4Box is a command line tool, but can be used with graphical user interfaces such as YAMB or my MP4box GUI.</p>
<p><strong>Q. What is zlib ?</strong></p>
<p><strong>Ans :-</strong> zlib is a software library used for data compression. zlib is an abstraction of the DEFLATE compression algorithm used in their gzip file compression program.</p>
<p><strong>How to Install MP4Box on Linux Box :-</strong></p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-7877248176171699";
google_ad_slot = "4635030684";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p><strong>1.Install the dependency :- </strong></p>
<p>[root@p-root ~]# yum install zlib*</p>
<p><strong>2.Download MP4Box :-</strong></p>
<p>Execute Following commands on Shell to Download the MP4Box Source.</p>
<p>[root@p-root ~]# cd /usr/local/src/<br />
[root@p-root src]# wget http://nchc.dl.sourceforge.net/project/gpac/GPAC/GPAC%200.4.5/gpac-0.4.5.tar.gz<br />
[root@p-root src]# wget http://nchc.dl.sourceforge.net/project/gpac/GPAC%20extra%20libs/GPAC%20extra%20libs%200.4.5/gpac_extra_libs-0.4.5.tar.gz</p>
<p>“gpac-0.4.5.tar.gz” is Main Source for MP4Box where as “gpac_extra_libs-0.4.5.tar.gz” contains Extra Libraries which will enhance the functionality of MP4Box.</p>
<p><strong>3.Extract the Downloaded sources :- </strong></p>
<p>[root@p-root src]# tar -zxvf gpac-0.4.5.tar.gz<br />
[root@p-root src]# tar -zxvf gpac_extra_libs-0.4.5.tar.gz</p>
<p><strong>4. Copy the Additional Libraries from “gpac_extra_libs” to “gpac” folder :-</strong></p>
<p>[root@p-root src]# cd gpac_extra_libs<br />
[root@p-root gpac_extra_libs]# cp -r * /usr/local/src/gpac/extra_lib<br />
[root@p-root gpac_extra_libs]# cd ..</p>
<p><strong>5. Install GPac or MP4Box :-</strong> <strong>Execute following Commands on the Shell of your Linux Server one after one (Make sure it doesn’t throw any Error).</strong></p>
<p>[root@p-root src]# cd gpac<br />
[root@p-root gpac]# chmod +x configure<br />
[root@p-root gpac]# ./configure<br />
[root@p-root gpac]# make lib<br />
[root@p-root gpac]# make apps<br />
[root@p-root gpac]# make install lib<br />
[root@p-root gpac]# make install</p>
<p><strong>Might be you will encounter this error :- </strong>This Error can be fixed by creating an symbolic link of /usr/lib64/libglut.so.3 to /usr/lib64/libglut.so</p>
<p><strong>ERROR:-</strong></p>
<p>/usr/bin/ld: cannot find -lglut<br />
collect2: ld returned 1 exit status</p>
<p><strong>Fix :- </strong></p>
<p>[root@p-root gpac]#ls /usr/lib64 |grep glut<br />
libglut.so.3<br />
[root@p-root gpac]# ln -s /usr/lib64/libglut.so.3 /usr/lib64/libglut.so</p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-7877248176171699";
google_ad_slot = "4635030684";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p><strong>6. Once GPAC get installed Properly, copy the gpac .so file from gpac directory to System libraries :-</strong></p>
<p>[root@p-root gpac]# cp bin/gcc/libgpac.so /usr/lib</p>
<p><strong>7. Hurrey&#8230;. !!!! Mp4Box installed now&#8230;.you can cross verify the MP4Box installation :-</strong></p>
<p>[root@p-root ~]# which MP4Box<br />
/usr/local/bin/MP4Box<br />
[root@p-root ~]#</p>
]]></content:encoded>
			<wfw:commentRss>http://www.unixsurgeon.com/kb/how-to-install-mp4box-in-linux-64-bit-server.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to install MRTG (Multi Router Traffic Grapher).</title>
		<link>http://www.unixsurgeon.com/kb/how-to-install-mrtg-multi-router-traffic-grapher.html</link>
		<comments>http://www.unixsurgeon.com/kb/how-to-install-mrtg-multi-router-traffic-grapher.html#comments</comments>
		<pubDate>Fri, 30 Dec 2011 12:55:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux tutorials]]></category>
		<category><![CDATA[Monitoring Tool]]></category>
		<category><![CDATA[Open Source Applications]]></category>
		<category><![CDATA[MRTG]]></category>

		<guid isPermaLink="false">http://www.unixsurgeon.com/kb/?p=306</guid>
		<description><![CDATA[Most of the times people probably wonder how much traffic is flowing through servers. At this point, you probably want to monitor how much bandwidth you are using. One of the best tools you can use is MRTG (Multi Router Traffic Grapher). It is not very hard to setup MRTG and requires only few packages [...]]]></description>
			<content:encoded><![CDATA[<p>Most of the times people probably wonder how much traffic is flowing through servers. At this point, you probably want to monitor how much bandwidth you are using. One of the best tools you can use is<strong> MRTG (Multi Router Traffic Grapher)</strong>. It is not very hard to setup MRTG and requires only few packages to be installed.</p>
<p>First of all we have to install SNMP service.</p>
<p><strong>[root@p-root /opt]# rpm -qa | grep snmp</strong></p>
<p><strong>[root@p-root /opt]# yum install net-snmp net-snmp-utils</strong></p>
<p><strong>[root@p-root /opt]# service snmpd start</strong></p>
<p><strong>[root@p-root /opt]# chkconfig –add snmpd</strong></p>
<p><strong>[root@p-root /opt]# chkconfig –levels 2345 snmpd on</strong></p>
<p>Run this command,whether is&#8217;t working or not,if you get the below output means it&#8217;s working:</p>
<p><strong>[root@p-root /opt]# snmpwalk -v 1 -c public localhost IP-MIB::ipAdEntIfIndex<br />
</strong><br />
IP-MIB::ipAdEntIfIndex.127.0.0.1 = INTEGER: 1</p>
<p>IP-MIB::ipAdEntIfIndex.192.168.0.128 = INTEGER: 2</p>
<p>Now configure snmpd.conf file. Please take backup of default snmpd.conf file and create new one.</p>
<p><strong>[root@p-root /opt]# mv /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.bak</strong></p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-7877248176171699";
google_ad_slot = "4635030684";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p><strong><br />
[root@p-root /opt]# vi /etc/snmp/snmpd.conf</strong></p>
<p>Replace the content in there with following:-</p>
<p><strong>com2sec local localhost public<br />
com2sec mynetwork 192.168.0.0/24 public<br />
group MyRWGroup v1 local<br />
group MyRWGroup v2c local<br />
group MyRWGroup usm local<br />
group MyROGroup v1 mynetwork<br />
group MyROGroup v2c mynetwork<br />
group MyROGroup usm mynetwork<br />
view all included .1 80<br />
access MyROGroup &#8220;&#8221; any noauth exact all none none<br />
access MyRWGroup &#8220;&#8221; any noauth exact all all none<br />
syslocation &#8220;Some place out there&#8221;<br />
syscontact Admin &lt;admin@unixsurgeon.com&gt;</strong></p>
<p><strong>Here i am sharing my configuration file  :-</strong></p>
<p>##########################################################</p>
<p>#</p>
<p># snmpd.conf</p>
<p>#</p>
<p># – created by the snmpconf configuration program</p>
<p>#</p>
<p>##########################################################</p>
<p># SECTION: Access Control Setup</p>
<p>#</p>
<p># This section defines who is allowed to talk to your running</p>
<p># snmp agent.</p>
<p># rocommunity: a SNMPv1/SNMPv2c read-only access community name</p>
<p># arguments: community [default|hostname|network/bits] [oid]</p>
<p>com2sec local localhost private</p>
<p>com2sec mynetwork 192.168.0.0/24 public</p>
<p>com2sec mynetwork 115.110.x.x/32 public</p>
<p>group MyRWGroup v1 local</p>
<p>group MyRWGroup v2c local</p>
<p>group MyRWGroup usm local</p>
<p>group MyROGroup v1 mynetwork</p>
<p>group MyROGroup v2c mynetwork</p>
<p>group MyROGroup usm mynetwork</p>
<p>view     all        included         .1         80</p>
<p>access MyROGroup  ” “  any noauth exact all none none</p>
<p>access MyRWGroup  ” “  any noauth exact all all none</p>
<p>syslocation Linux (RH3_UP2), Linux Router.</p>
<p><strong>[root@p-root /opt]# service snmpd restart</strong></p>
<p>Now test your SNMP server.</p>
<p><strong>[root@p-root /opt]# snmpwalk -v 1 -c public localhost IP-MIB::ipAdEntIfIndex</strong></p>
<p>IP-MIB::ipAdEntIfIndex.127.0.0.1 = INTEGER: 1</p>
<p>IP-MIB::ipAdEntIfIndex.192.168.0.128 = INTEGER: 2</p>
<p>Ok. That is all we will do with SNMP. Let us continue MRTG installation.</p>
<p><strong>[root@p-root /opt]# rpm -qa | grep mrtg</strong></p>
<p><strong>[root@p-root /opt]# yum install mrtg</strong></p>
<p>Let us set up data directory to store html files:</p>
<p><strong>[root@p-root /opt]# mkdir /var/www/html/mrtg</strong></p>
<p>Now let us set up mrtg.conf to use for monitoring bandwidth usage:</p>
<p><strong>[root@p-root /opt]# cfgmaker public@192.168.0.128 –global “WorkDir: /var/www/html/mrtg” –output=/etc/mrtg/mrtg.cfg</strong></p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-7877248176171699";
google_ad_slot = "4635030684";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p>Let us create index file for MRTG page:</p>
<p><strong>[root@p-root /opt]# indexmaker –output=/var/www/html/mrtg/index.html /etc/mrtg/mrtg.cfg<br />
</strong><br />
It is time for us to tell Apache to serve these pages</p>
<p><strong>[root@p-root /opt]# vi /usr/local/apache2/conf/httpd.conf</strong></p>
<p><strong>Alias /mrtg /var/www/html/mrtg<br />
&lt;location /mrtg&gt;<br />
Order deny,allow<br />
Deny from all<br />
Allow from 127.0.0.1 192.168.0.0/24<br />
&lt;/location&gt;</strong></p>
<p><strong>[root@p-root /opt]# snmpwalk -v 1 -c public 192.168.0.128 interface</strong></p>
<p><strong>[root@p-root /opt]# env LANG=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg</strong></p>
<p><strong>[root@p-root /opt]# crontab -e</strong></p>
<p><strong>*/5 * * * * /usr/bin/mrtg /etc/mrtg/mrtg.cfg –logging /var/log/mrtg.log<br />
</strong><br />
Open this link in your browser and it will show like this.</p>
<p>http://192.168.0.128/mrtg</p>
<p><img src="http://www.unixsurgeon.com/images/mrtg.png" alt="mrtg" /><br />
<strong>Protect your MRTG graphs with password protected directory :-</strong></p>
<p>To restrict access to your MRTG reports. This can easily accomplished with Apache webserver&#8217;s .htaccess file.</p>
<p>Below is process to protect graphs using apache&#8217;s .htaccess file and htpasswd command:</p>
<p>Step # 1: Create .htaccess file in /var/www/html/mymrtg/ directory (add text as follows):</p>
<p>[root@p-root /]# vi /var/www/html/mymrtg/.htaccess</p>
<p>Then Add following text to file:-</p>
<p><strong>AuthName &#8220;MRTG Graphs Restricted Access&#8221;<br />
AuthType Basic<br />
AuthUserFile /var/members/.htpasswd<br />
require user unixsurgeon</strong></p>
<p>Step # 2: Create a user and password name (-c assumes first time you are using .htpasswd file):-</p>
<p><strong>[root@p-root /]# htpasswd -c /var/members/.htpasswd unixsurgeon</strong></p>
<p>=============================================================================================</p>
<p>Enjoy Linux !!!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.unixsurgeon.com/kb/how-to-install-mrtg-multi-router-traffic-grapher.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to sync server time with NTP servers</title>
		<link>http://www.unixsurgeon.com/kb/how-to-sync-server-time-with-ntp-servers.html</link>
		<comments>http://www.unixsurgeon.com/kb/how-to-sync-server-time-with-ntp-servers.html#comments</comments>
		<pubDate>Fri, 30 Dec 2011 07:44:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Cpanel]]></category>
		<category><![CDATA[Open Source Applications]]></category>
		<category><![CDATA[ntp]]></category>
		<category><![CDATA[sync time]]></category>

		<guid isPermaLink="false">http://www.unixsurgeon.com/kb/?p=301</guid>
		<description><![CDATA[How to synchronize time with NTP servers.
1. Sync time with NTP(Network Time Protocol) server.
# which ntpdate
If its not display anything then type:
# yum install ntp
3. Once ntp is installed sync your system/server clock with any NTP server:
# ntpdate 0.us.pool.ntp.org
3. You are not limited to the above server. There are numerous NTP servers around the world. [...]]]></description>
			<content:encoded><![CDATA[<p><strong>How to synchronize time with NTP servers.</strong></p>
<p>1. Sync time with NTP(Network Time Protocol) server.</p>
<p># which ntpdate</p>
<p>If its not display anything then type:</p>
<p># yum install ntp</p>
<p>3. Once ntp is installed sync your system/server clock with any NTP server:</p>
<p># ntpdate 0.us.pool.ntp.org</p>
<p>3. You are not limited to the above server. There are numerous NTP servers around the world. You can find a complete list at ntp.org. Also keep in mind that ntp only affects the system time. The hardware clock on your server will not reflect that. So you want to set it as well so that the correct time is maintained after reboot:</p>
<p># hwclock –systohc</p>
<p># ntpd</p>
<p style="text-align: center;">
<script type="text/javascript"><!--
google_ad_client = "pub-7877248176171699";
google_ad_slot = "4635030684";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p>4. To keep your server clock automatically synchronized you can run the ntpd daemon which is installed as part of the ntp package. Edit the /etc/ntp.conf file to comment out the following lines:</p>
<p># vi /etc/ntp.conf</p>
<p>——————————————–<br />
#server 127.127.1.0     # local clock<br />
#fudge  127.127.1.0 stratum 10<br />
——————————————–</p>
<p>5. The above two lines can sometimes prevent ntpd from properly synchronizing your clock. They are already commented out by default on CentOS/RHEL 6. But on 5.x you have to comment them out manually. Finally type the following two commands to start the daemon and make it run automatically at boot up:</p>
<p># service ntpd start</p>
<p># chkconfig ntpd on</p>
<p style="text-align: center;">
<script type="text/javascript"><!--
google_ad_client = "pub-7877248176171699";
google_ad_slot = "4635030684";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p><strong>If you have WHM/cpanel installed on your server:-</strong></p>
<p>Then login to WHM with the root details and go to <strong>Main &gt;&gt; Server Configuration &gt;&gt; Server Time</strong></p>
<p>ANd click on <strong>sync time with time server</strong>,it will sync the server time with cpanel NTP server.</p>
<p>Also you can set the cron to server clock automatically synchronization with the following :-</p>
<p><strong>0 9 * * * rdate rdate.cpanel.net</strong></p>
<p>The above entry sync the server time at 9 o&#8217;clock every day with cpanel time server.</p>
<p>Enjoy Linux&#8230; <img src='http://www.unixsurgeon.com/kb/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.unixsurgeon.com/kb/how-to-sync-server-time-with-ntp-servers.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Howto Install Java/Tomcat on Linux ?</title>
		<link>http://www.unixsurgeon.com/kb/howto-install-javatomcat-on-linux.html</link>
		<comments>http://www.unixsurgeon.com/kb/howto-install-javatomcat-on-linux.html#comments</comments>
		<pubDate>Wed, 14 Sep 2011 04:48:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Open Source Applications]]></category>
		<category><![CDATA[java/tomcat]]></category>
		<category><![CDATA[tomcat]]></category>

		<guid isPermaLink="false">http://www.unixsurgeon.com/kb/?p=293</guid>
		<description><![CDATA[# Download and Install JAVA
Download j2sdk-&#60;version&#62; from Sun Download center http://developers.sun.com/downloads/
# chmod +x j2sdk-1_4_2_09-linux-i586.bin
# ./j2sdk-1_4_2_09-linux-i586.bin
Now set java home path
# vi .bash_profile
JAVA_HOME=/usr/local/j2sdk
Now Check if Java is installed on the server using command java -version
[root@map ~]# java -version
java version “1.6.0_07?
Java(TM) SE Runtime Environment (build 1.6.0_07-b06)
Java HotSpot(TM) Client VM (build 10.0-b23, mixed mode, sharing)
# Download Tomcat
Now Download Tomcat [...]]]></description>
			<content:encoded><![CDATA[<p><strong># Download and Install JAVA</strong></p>
<p>Download j2sdk-&lt;version&gt; from Sun Download center http://developers.sun.com/downloads/</p>
<p># chmod +x j2sdk-1_4_2_09-linux-i586.bin<br />
# ./j2sdk-1_4_2_09-linux-i586.bin</p>
<p>Now set java home path</p>
<p># vi .bash_profile</p>
<p>JAVA_HOME=/usr/local/j2sdk</p>
<p>Now Check if Java is installed on the server using command java -version</p>
<p>[root@map ~]# java -version<br />
java version “1.6.0_07?<br />
Java(TM) SE Runtime Environment (build 1.6.0_07-b06)<br />
Java HotSpot(TM) Client VM (build 10.0-b23, mixed mode, sharing)</p>
<p><strong># Download Tomcat</strong></p>
<p>Now Download Tomcat from Apache Website and extract it</p>
<p>http://tomcat.apache.org/download-55.cgi</p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-7877248176171699";
google_ad_slot = "4635030684";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p># cd /usr/local/<br />
#wget  http://www.poolsaboveground.com/apache/tomcat/tomcat-6/v6.0.18/bin/apache-tomcat-6.0.18.tar.gz<br />
# tar -zxvf apache-tomcat-6.0.18.tar.gz</p>
<p>Create Symlink for the Tomcat Folder</p>
<p># ln -s /usr/local/apache-tomcat-6.0.18 /usr/local/apache/tomcat</p>
<p><strong># Install Tomcat</strong></p>
<p># cd apache-tomcat-6.0.18<br />
# cd bin<br />
# tar xvfz jsvc.tar.gz<br />
# cd jsvc-src<br />
# chmod +x configure<br />
# ./configure<br />
# make<br />
# cp jsvc ..<br />
# cd ..</p>
<p>Now set Cataline home path</p>
<p># vi .bash_profile</p>
<p>CATALINA_HOME=/usr/loca/tomcat</p>
<p>JAVA=/usr/loca/j2sdk/bin</p>
<p><strong>Save and exit</strong></p>
<p><strong># Type following commands</strong></p>
<p># export JAVA_HOME=/usr/local/j2sdk</p>
<p># export JAVA=/usr/local/j2sdk/bin</p>
<p># export CATALINA=/usr/local/tomcat</p>
<p><strong># Start Tomcat</strong></p>
<p>Use Following script to start Tomcat Service on the Server</p>
<p># /usr/local/apache/tomcat/bin/startup.sh</p>
<p><strong># Running Tomcat as non root user</strong></p>
<p>Due to security reasons always run  tomcat as non-root user i.e. tomcat. To run it as tomcat first you will  have to change the ownership of the tomcat folder</p>
<p># chown -R tomcat.tomcat /usr/local/apache-tomcat-6.0.18</p>
<p>Now Tomcat can be stopped and started under user tomcat using following commands:</p>
<p># su -l tomcat -c /usr/local/apache/tomcat/bin/startup.sh<br />
# su -l tomcat -c /usr/local/apache/tomcat/bin/shutdown.sh</p>
<p><strong># Test Tomcat installation</strong></p>
<p>open a browser and browse website  http://xx.xx.xx.xx:8080 where xx.xx.xx.xx will be your Server IP and If  you get Tomcat page than Tomcat has been installed properly on the  Server.</p>
<p><strong># Creating Script to start, stop and restart Tomcat</strong></p>
<p>The above installation step will not create tomcat service so that  user can restart tomcat using command service tomcat restart. Create a  new file in /etc/init.d as tomcat and copy following contenents into it.<br />
# vi /etc/init.d/tomcat</p>
<p>#!/bin/bash</p>
<p>#<br />
# Startup script for Tomcat<br />
#<br />
# chkconfig: 345 84 16<br />
# description: Tomcat jakarta JSP server<br />
# Necessary environment variables<br />
export CATALINA_HOME=”/usr/local/tomcat”<br />
if [ ! -f $CATALINA_HOME/bin/catalina.sh ]<br />
then<br />
echo “Tomcat not available…”<br />
exit<br />
fi</p>
<p>start() {<br />
echo -n -e ‘\E[0;0m'"\033[1;32mStarting Tomcat: \033[0m \n"<br />
su -l tomcat -c $CATALINA_HOME/bin/startup.sh<br />
echo<br />
touch /var/lock/subsys/tomcatd<br />
sleep 3<br />
}</p>
<p>stop() {<br />
echo -n -e '\E[0;0m'"\033[1;31mShutting down Tomcat: \033[m \n"<br />
su -l tomcat -c $CATALINA_HOME/bin/shutdown.sh<br />
rm -f /var/lock/subsys/tomcatd<br />
echo<br />
}</p>
<p>status() {<br />
ps ax --width=1000 | grep "[o]rg.apache.catalina.startup.Bootstrap  start” | awk ‘{printf $1 ” “}’ | wc | awk ‘{print $2}’ &gt;  /tmp/tomcat_process_count.txt<br />
read line &lt; /tmp/tomcat_process_count.txt<br />
if [ $line -gt 0 ]; then<br />
echo -n “tomcatd ( pid ”<br />
ps ax –width=1000 | grep “[o]rg.apache.catalina.startup.Bootstrap start” | awk ‘{printf $1 ” “}’<br />
echo -n “) is running…”<br />
echo<br />
else<br />
echo “Tomcat is stopped”<br />
fi<br />
}</p>
<p>case “$1? in<br />
start)<br />
start<br />
;;<br />
stop)<br />
stop<br />
;;<br />
restart)<br />
stop<br />
sleep 3<br />
start<br />
;;<br />
status)<br />
status<br />
;;<br />
*)<br />
echo “Usage: tomcatd {start|stop|restart|status}”<br />
exit 1<br />
esac</p>
<p>Now save and exit from the file. Now assign executable permission to this file</p>
<p># chown 755 /etc/init.d/tomcat</p>
<p>Enable it for all the Run-levels</p>
<p># chkconfig –add tomcat<br />
# chkconfig tomcat on</p>
<p>Now you can restart tomcat service using following commands.</p>
<p># service tomcat restart &lt;&lt;&lt; To restart tomcat<br />
# service tomcat stop &lt;&lt;&lt; To stop Tomcat<br />
# service tomcat start &lt;&lt;&lt; To start Tomcat<br />
# service tomcat Status &lt;&lt;&lt; to check the status of Tomcat</p>
<p><strong>Now you have successfully installed Tomcat.</strong></p>
<p>====================================================================</p>
<p>Enjoy Linux !!!</p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-7877248176171699";
google_ad_slot = "4635030684";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.unixsurgeon.com/kb/howto-install-javatomcat-on-linux.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What is the PHP/Java Bridge?</title>
		<link>http://www.unixsurgeon.com/kb/what-is-the-phpjava-bridge.html</link>
		<comments>http://www.unixsurgeon.com/kb/what-is-the-phpjava-bridge.html#comments</comments>
		<pubDate>Mon, 12 Sep 2011 12:28:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Linux tutorials]]></category>
		<category><![CDATA[Open Source Applications]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[php-java]]></category>
		<category><![CDATA[php-java-bridge]]></category>
		<category><![CDATA[phpjavabridge]]></category>

		<guid isPermaLink="false">http://www.unixsurgeon.com/kb/?p=289</guid>
		<description><![CDATA[The php-java bridge is the php extension for using the java code in php files . You can access Java classes etc from within your PHP code.
Basically the PHP/Java Bridge is an implementation of a streaming, XML-based network protocol which can be used to connect a native script engine, for example PHP, Scheme or Python, [...]]]></description>
			<content:encoded><![CDATA[<p>The php-java bridge is the php extension for using the java code in php files . You can access Java classes etc from within your PHP code.</p>
<p>Basically the PHP/Java Bridge is an implementation of a streaming, XML-based network protocol which can be used to connect a native script engine, for example PHP, Scheme or Python, with a Java virtual machine. It is up to 50 times faster than local RPC via SOAP, requires less resources on the web-server side. It is faster and more reliable than direct communication via the Java Native Interface, and it requires no additional components to invoke Java procedures from PHP or PHP procedures from Java.</p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-7877248176171699";
google_ad_slot = "4635030684";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<h1>How it works :-</h1>
<p>A PHP Front end contained in, and associated with, a Java <em>back end</em>. The invoked Front end uses simple HTTP or XML to invoke Java procedures/methods/classes of the running back end. Both, the front end and the back end establish a continuation which may be called at any time from the other continuation.</p>
<p>This mechanism can also be used programmatically: the JAVA interface can be used to invoke PHP methods within a running PHP/Apache server so that Java components can invoke PHP instances and PHP scripts can call Java based applications or transfer control back to the environment where the request came from.</p>
<h1>Use for :-</h1>
<p>It’s mandatory requirement for all type of payment gateway integration. (Like :- HDFC,ICICI etc.)</p>
<p>For more information :- http://php-java-bridge.sourceforge.net/pjb</p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-7877248176171699";
google_ad_slot = "4635030684";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.unixsurgeon.com/kb/what-is-the-phpjava-bridge.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

