<?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>Hello System Admin &#124; Where system admins share technical article and tips &#124; Create free Blog &#124; Updates on domains, web hosting, servers and more &#187; PHP</title>
	<atom:link href="http://hellosystemadmin.com/blog/category/linux/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://hellosystemadmin.com</link>
	<description></description>
	<lastBuildDate>Wed, 06 Apr 2011 02:50:29 +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>install mod ssl on apache</title>
		<link>http://hellosystemadmin.com/blog/install-mod-ssl-on-apache/</link>
		<comments>http://hellosystemadmin.com/blog/install-mod-ssl-on-apache/#comments</comments>
		<pubDate>Wed, 19 May 2010 06:15:32 +0000</pubDate>
		<dc:creator>Aneesh</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[SSL Certificate]]></category>

		<guid isPermaLink="false">http://hellosystemadmin.com/?p=443</guid>
		<description><![CDATA[





 
I am going to give you the steps to install mod_ssl on an Apache server by compiling the source.
Download the following packages
1. apache_1.3.14.tar.gz   http://www.apache.org
2. openssl-0.9.6.tar.gz http://www.openssl.org
3.  mod_ssl-2.7.1-1.3.14.tar.gz http://www.modssl.org
 
I have created a folder called  /downloads/src and downloaded all packages here

Go to Apache source files and  compile it as shown below
 # ./configure &#8211;enable-module=so [...]]]></description>
			<content:encoded><![CDATA[<address><script type="text/javascript"><!--
google_ad_client = "pub-2585810307670535";
/* 468x60, created 11/28/09 */
google_ad_slot = "9594852426";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><script type="text/javascript"><!--
google_ad_client = "pub-2585810307670535";
/* 468x60, created 11/28/09 */
google_ad_slot = "9594852426";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script> </address>
<address>I am going to give you the steps to install mod_ssl on an Apache server by compiling the source.</address>
<address>Download the following packages</address>
<address>1. apache_1.3.14.tar.gz   <a href="http://www.apache.org/">http://www.apache.org</a></address>
<address>2. openssl-0.9.6.tar.gz<a href="http://www.openssl.org/"> http://www.openssl.org</a></address>
<address>3.  mod_ssl-2.7.1-1.3.14.tar.gz<a href="http://www.modssl.org/"> http://www.modssl.org</a></address>
<address> </address>
<address>I have created a folder called  /downloads/src and downloaded all packages here<br />
</address>
<address>Go to Apache source files and  compile it as shown below</address>
<address> <span style="color: #993300"># </span><span style="color: #993300">./configure &#8211;enable-module=so &#8211;enable-module=ssl &#8211;enable-module=mod_rewrite</span></address>
<address> </address>
<address>Youc an add whatever module you needed</address>
<address>Now go to openssl folder and compile and install ( you can do this same by  using yum or apt-get command)</address>
<address>To compile and install OpenSSL do the following commands</address>
<address> </address>
<address><span style="color: #993300"># </span><em><span style="color: #993300">sh config -fPIC<br />
</span></em><span style="color: #993300"># </span><em><span style="color: #993300">make<br />
</span></em><span style="color: #993300"># </span><em><span style="color: #993300">make install</span></em></address>
<address> </address>
<address>At this time you can compile your PHP also. To do that run following commands</address>
<address><span style="color: #993300"># </span><span style="color: #993300">./configure &#8211;with-apache=../apache_1.3.41  &#8211;with-gd &#8211;with-zlib-dir &#8211;with-jpeg-dir &#8211;with-png-dir &#8211;with-freetype-dir &#8211;enable-gd-native-ttf &#8211;with-freetype-dir=/usr/lib/ &#8211;with-ttf &#8211;with-mysql=/usr/local/mysql &#8211;with-curl &#8211;disable-soap &#8211;with-openssl &#8211;with-xmlrpc &#8211;enable-ftp &#8211;with-xsl &#8211;with-mysqli=/usr/local/mysql/bin/mysql_config</span></address>
<address> </address>
<address><span style="color: #993300"># </span><span style="color: #993300">make</span></address>
<address><span style="color: #993300"># </span><span style="color: #993300">make install</span></address>
<address> </address>
<address><span style="color: #993300"><span style="color: #000000">Compile Apache and install</span></span></address>
<address><span style="color: #993300"><span style="color: #000000">Go to the apache Directory and runn following commands</span></span></address>
<address><span style="color: #993300">#  ./config.status<br />
#  make<br />
#  make certificate <span style="color: #000000"> ( This step will be asked  some inputs  from you for your self signed SSL certificate)</span><br />
# $ make install</span></address>
<address> </address>
<address><span style="color: #993300"><span style="color: #000000">Now you have installed the apache server with a self signed SSL certificate. Now it is the time to add the location of the .CRT file and .KEY file in your apache configuration file.  From the above steps you can see the location of these files. Copy those paths.</span></span></address>
<address> Now open your httpd.conf file and  add the following line </address>
<address><span style="color: #993300">Listen 443</span></address>
<address><span style="color: #000000">Now create a virtual directory which will listen the port 443</span></address>
<address> </address>
<address>&lt;VirtualHost XXX.XXX.XXX.XXX:443&gt;<br />
ServerName  www.example.com<br />
SSLEngine on<br />
SSLCertificateFile  /usr/local/apache/conf/ssl.crt/server.crt<br />
SSLCertificateKeyFile /usr/local/apache/conf/ssl.key/server.key<br />
&lt;/VirtualHost&gt;</address>
<address> </address>
<address>Now save the file and restart your Apache server</address>
<address><span style="color: #993300"># apachectl stop</span></address>
<address><span style="color: #993300"># apachectl startssl</span><br />
</address>
<address> </address>
<address>Enjoy <img src='http://hellosystemadmin.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </address>
<address><script type="text/javascript"><!--
google_ad_client = "pub-2585810307670535";
/* 468x60, created 11/28/09 */
google_ad_slot = "9594852426";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><script type="text/javascript"><!--
google_ad_client = "pub-2585810307670535";
/* 468x60, created 11/28/09 */
google_ad_slot = "9594852426";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></address>
<address> </address>
<address> </address>
<div id="st0000000001" class="st-taf"><script src="http://taf.socialtwist.com:80/taf/js/shoppr.core.js?id=0000000001"></script><img style="border:0;margin:0;padding:0;" src="http://tellafriend.socialtwist.com:80/wizard/images/tafbutton_blue16.png" onmouseout="hideHoverMap(this)" onmouseover="showHoverMap(this, '0000000001', 'http%3A%2F%2Fhellosystemadmin.com%2Fblog%2Finstall-mod-ssl-on-apache%2F', 'install+mod+ssl+on+apache')" onclick="cw(this, {id:'0000000001',link: 'http%3A%2F%2Fhellosystemadmin.com%2Fblog%2Finstall-mod-ssl-on-apache%2F', title: '+install+mod+ssl+on+apache+' })"/></div>]]></content:encoded>
			<wfw:commentRss>http://hellosystemadmin.com/blog/install-mod-ssl-on-apache/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to install Zend frame work on a Linux and test it</title>
		<link>http://hellosystemadmin.com/blog/how-to-install-zend-frame-work-on-a-linux-and-test-it/</link>
		<comments>http://hellosystemadmin.com/blog/how-to-install-zend-frame-work-on-a-linux-and-test-it/#comments</comments>
		<pubDate>Tue, 09 Feb 2010 09:43:43 +0000</pubDate>
		<dc:creator>Aneesh</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://hellosystemadmin.com/?p=392</guid>
		<description><![CDATA[Note :  This guide is for Admins only , who  is going to install Zend for the first time
Here I simply describe about how to install Zend framework and create a sample project
My server is running on Fedora 9, PHP5
Step 1:
Download the Zend framework (MINIMAL PACKAGE).  I have downloaded http://downloads.zend.com/framework/1.10.0/ZendFramework-1.10.0-minimal.tar.gz
Step2:  Extract the package 
Step3:  Create [...]]]></description>
			<content:encoded><![CDATA[<p>Note :  This guide is for Admins only , who  is going to install Zend for the first time</p>
<p>Here I simply describe about how to install Zend framework and create a sample project</p>
<p><em>My server is running on Fedora 9, PHP5</em></p>
<p><strong>Step 1:</strong></p>
<p>Download the Zend framework (MINIMAL PACKAGE).  I have downloaded <a href="http://downloads.zend.com/framework/1.10.0/ZendFramework-1.10.0-minimal.tar.gz">http://downloads.zend.com/framework/1.10.0/ZendFramework-1.10.0-minimal.tar.gz</a></p>
<p><strong>Step2:  Extract the package </strong></p>
<p><strong>Step3:  Create Sample Project using Zend</strong></p>
<p>Go to the any web directory say, /var/www/html/test</p>
<p>Now call the<strong> zf.sh</strong> file in the bin folder of zend framework to create new project</p>
<p>In my case I extracted the zend framework in /var/ww/html/zend-framework</p>
<p>So I called the zf.sh file as follows</p>
<p><em>/var/www/html/zend-framework/bin/zf.sh create project zendtest</em></p>
<p>Now a project called called “ zendtest “  has been created in the current directory. This project will have four Sub folders.</p>
<p>Now we need to include the Libraries in the zend framework in our new project. To do that, just copy the folder called Zend from the library folder of our zend framework.  (in my case I copied /var/ww/html/zend-framework/library/Zend ).</p>
<p>That’s all, we have created a sample  project in Zend framework. We can test it using browsing the Public folder in the new project</p>
<p>http://localhost/ test/zendtest/public/</p>
<p><a href="http://www.shareasale.com/r.cfm?b=138634&amp;u=314660&amp;m=15362&amp;urllink=&amp;afftrack=" target="_blank"><img src="http://www.shareasale.com/image/728x90_Tech.gif" border="0" alt="" /></a></p>
<p><a href="//www.ioncube.com/sa_encoder.php?xp=NGELJD" target="_self">IonCube Standalone PHP Encoder</a></p>
<div id="st0000000001" class="st-taf"><script src="http://taf.socialtwist.com:80/taf/js/shoppr.core.js?id=0000000001"></script><img style="border:0;margin:0;padding:0;" src="http://tellafriend.socialtwist.com:80/wizard/images/tafbutton_blue16.png" onmouseout="hideHoverMap(this)" onmouseover="showHoverMap(this, '0000000001', 'http%3A%2F%2Fhellosystemadmin.com%2Fblog%2Fhow-to-install-zend-frame-work-on-a-linux-and-test-it%2F', 'How+to+install+Zend+frame+work+on+a+Linux+and+test+it')" onclick="cw(this, {id:'0000000001',link: 'http%3A%2F%2Fhellosystemadmin.com%2Fblog%2Fhow-to-install-zend-frame-work-on-a-linux-and-test-it%2F', title: '+How+to+install+Zend+frame+work+on+a+Linux+and+test+it+' })"/></div>]]></content:encoded>
			<wfw:commentRss>http://hellosystemadmin.com/blog/how-to-install-zend-frame-work-on-a-linux-and-test-it/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Install php_mssql on PHP</title>
		<link>http://hellosystemadmin.com/blog/install-php_mssql-on-php/</link>
		<comments>http://hellosystemadmin.com/blog/install-php_mssql-on-php/#comments</comments>
		<pubDate>Wed, 20 Jan 2010 06:04:07 +0000</pubDate>
		<dc:creator>Aneesh</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[install php_mssql]]></category>
		<category><![CDATA[mssql module]]></category>
		<category><![CDATA[ph pmssql]]></category>
		<category><![CDATA[php_mssql]]></category>

		<guid isPermaLink="false">http://hellosystemadmin.com/?p=372</guid>
		<description><![CDATA[In fact installing the mssql modules in php is easy, we may get  errors sometimes. In phpinfo() it may be shown that the  php mssql module is installed. But when we tried to connect to an SQL server through php script we will get error &#8221; sorry something went wrong&#8221;
IF we need to install php [...]]]></description>
			<content:encoded><![CDATA[<p>In fact installing the mssql modules in php is easy, we may get  errors sometimes. In phpinfo() it may be shown that the  php mssql module is installed. But when we tried to connect to an SQL server through php script we will get error &#8221; sorry something went wrong&#8221;</p>
<p>IF we need to install php mssql module it requires two DLLs <strong>php_mssql.dll</strong> and <strong>ntwdblib.dll. </strong>If these DLLs are not present in your php installation  folder you need to download it.  Copy these DLLs to   php extension folder also copy <strong>ntwdblib.dll </strong>to system32 folder . Once you have done these, simply enable the module in php.ini file by uncommenting the line <em>;extension=php_mssql.dll</em>.  The line should be looked like</p>
<p><strong>extension=php_mssql.dll</strong></p>
<p>If there is no such line in php.ini, just add the above line just below the &#8221; Dynamic Extensions &#8221;</p>
<p>Once you did it, just restart apache server and it will be fine.</p>
<p><strong><span style="color: #ff0000">Common Error:  the module  mssql is shown in phpinfo, but mssql connections are not working</span></strong></p>
<p><strong><span style="color: #008000">Solution :  This is due to the version of ntwdblib.dll. You can download the latest version of this dll </span></strong></p>
<p>(http://www.dlldll.com/ntwdblib.dll_download.html)</p>
<div id="st0000000001" class="st-taf"><script src="http://taf.socialtwist.com:80/taf/js/shoppr.core.js?id=0000000001"></script><img style="border:0;margin:0;padding:0;" src="http://tellafriend.socialtwist.com:80/wizard/images/tafbutton_blue16.png" onmouseout="hideHoverMap(this)" onmouseover="showHoverMap(this, '0000000001', 'http%3A%2F%2Fhellosystemadmin.com%2Fblog%2Finstall-php_mssql-on-php%2F', 'Install+php_mssql+on+PHP')" onclick="cw(this, {id:'0000000001',link: 'http%3A%2F%2Fhellosystemadmin.com%2Fblog%2Finstall-php_mssql-on-php%2F', title: '+Install+php_mssql+on+PHP+' })"/></div>]]></content:encoded>
			<wfw:commentRss>http://hellosystemadmin.com/blog/install-php_mssql-on-php/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Find PID of a PHP script</title>
		<link>http://hellosystemadmin.com/blog/find-pid-of-a-php-script/</link>
		<comments>http://hellosystemadmin.com/blog/find-pid-of-a-php-script/#comments</comments>
		<pubDate>Wed, 02 Dec 2009 06:08:06 +0000</pubDate>
		<dc:creator>Aneesh</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Commands]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.hellosystemadmin.com/?p=127</guid>
		<description><![CDATA[



I have been trying to find the PID of a php site which is hosted in my apache web server. I did not know that it was very easy until in found the built in php function getmypid(). To find the process ID (PID) of a PHP scriptÂ  use the following code in your php [...]]]></description>
			<content:encoded><![CDATA[<p><code><script type="text/javascript"><!--
google_ad_client = "pub-2585810307670535";
/* 468x60, created 11/28/09 */
google_ad_slot = "9594852426";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></code></p>
<p>I have been trying to find the PID of a php site which is hosted in my apache web server. I did not know that it was very easy until in found the built in php function getmypid(). To find the process ID (PID) of a PHP scriptÂ  use the following code in your php file</p>
<p><strong><em>echo getmypid ();</em></strong></p>
<p><code><script type="text/javascript"><!--
google_ad_client = "pub-2585810307670535";
/* 468x60, created 11/28/09 */
google_ad_slot = "9594852426";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></code></p>
 <script type="text/javascript"><!--
google_ad_client = "pub-2585810307670535";
/* 468x60, created 11/28/09 */
google_ad_slot = "9594852426";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

<div id="st0000000001" class="st-taf"><script src="http://taf.socialtwist.com:80/taf/js/shoppr.core.js?id=0000000001"></script><img style="border:0;margin:0;padding:0;" src="http://tellafriend.socialtwist.com:80/wizard/images/tafbutton_blue16.png" onmouseout="hideHoverMap(this)" onmouseover="showHoverMap(this, '0000000001', 'http%3A%2F%2Fhellosystemadmin.com%2Fblog%2Ffind-pid-of-a-php-script%2F', 'Find+PID+of+a+PHP+script')" onclick="cw(this, {id:'0000000001',link: 'http%3A%2F%2Fhellosystemadmin.com%2Fblog%2Ffind-pid-of-a-php-script%2F', title: '+Find+PID+of+a+PHP+script+' })"/></div>]]></content:encoded>
			<wfw:commentRss>http://hellosystemadmin.com/blog/find-pid-of-a-php-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>change php.ini values using htaccess</title>
		<link>http://hellosystemadmin.com/blog/change-php-ini-values-using-htaccess/</link>
		<comments>http://hellosystemadmin.com/blog/change-php-ini-values-using-htaccess/#comments</comments>
		<pubDate>Wed, 25 Nov 2009 05:12:48 +0000</pubDate>
		<dc:creator>Aneesh</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[htaccess]]></category>

		<guid isPermaLink="false">http://dev3.ispg.in/aneesh/sysadmin/?p=83</guid>
		<description><![CDATA[




Using php_flag we can change php.ini values through an .htaccess file. For example if we need to change the php value of register_globals to Off we can do it using the following .htaccess   

 php_flag register_globals off





]]></description>
			<content:encoded><![CDATA[<p><code><script type="text/javascript"><!--
google_ad_client = "pub-2585810307670535";
/* 468x60, created 11/28/09 */
google_ad_slot = "9594852426";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></code></p>
<dl>
<dt>Using php_flag we can change php.ini values through an .htaccess file. For example if we need to change the php value of register_globals to Off we can do it using the following .htaccess <span> </span> </dt>
</dl>
<p><em> php_flag register_globals off</em></p>
<p><code><script type="text/javascript"><!--
google_ad_client = "pub-2585810307670535";
/* 468x60, created 11/28/09 */
google_ad_slot = "9594852426";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></code></p>
<p><!--Session data--></p>
<div id="st0000000001" class="st-taf"><script src="http://taf.socialtwist.com:80/taf/js/shoppr.core.js?id=0000000001"></script><img style="border:0;margin:0;padding:0;" src="http://tellafriend.socialtwist.com:80/wizard/images/tafbutton_blue16.png" onmouseout="hideHoverMap(this)" onmouseover="showHoverMap(this, '0000000001', 'http%3A%2F%2Fhellosystemadmin.com%2Fblog%2Fchange-php-ini-values-using-htaccess%2F', 'change+php.ini+values+using+htaccess')" onclick="cw(this, {id:'0000000001',link: 'http%3A%2F%2Fhellosystemadmin.com%2Fblog%2Fchange-php-ini-values-using-htaccess%2F', title: '+change+php.ini+values+using+htaccess+' })"/></div>]]></content:encoded>
			<wfw:commentRss>http://hellosystemadmin.com/blog/change-php-ini-values-using-htaccess/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install ffmpeg on linux</title>
		<link>http://hellosystemadmin.com/blog/79/</link>
		<comments>http://hellosystemadmin.com/blog/79/#comments</comments>
		<pubDate>Wed, 25 Nov 2009 05:01:18 +0000</pubDate>
		<dc:creator>Aneesh</dc:creator>
				<category><![CDATA[FFMPEG]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://dev3.ispg.in/aneesh/sysadmin/?p=79</guid>
		<description><![CDATA[



1. Create a directory to do our work in
mkdir ~/ffmpeg
cd ~/ffmpeg
2. Get all the source fileswget http://www3.mplayerhq.hu/MPlayer/releases/codecs/essential-20061022.tar.bz2
wget http://rubyforge.org/frs/download.php/9225/flvtool2_1.0.5_rc6.tgz
wget http://easynews.dl.sourceforge.net/sourceforge/lame/lame-3.97.tar.gz
wget http://superb-west.dl.sourceforge.net/sourceforge/ffmpeg-php/ffmpeg-php-0.5.0.tbz2
wget http://downloads.xiph.org/releases/ogg/libogg-1.1.3.tar.gz
wget http://downloads.xiph.org/releases/vorbis/libvorbis-1.1.2.tar.gz
3. Extract all the source files
bunzip2 essential-20061022.tar.bz2; tar xvf essential-20061022.tar
tar zxvf flvtool2_1.0.5_rc6.tgz
tar zxvf lame-3.97.tar.gz
bunzip2 ffmpeg-php-0.5.0.tbz2; tar xvf ffmpeg-php-0.5.0.tar
tar zxvf libogg-1.1.3.tar.gz
tar zxvf libvorbis-1.1.2.tar.gz
4. Create the codecs directory &#38; import them
mkdir /usr/local/lib/codecs/
mv essential-20061022/* /usr/local/lib/codecs/
chmod -R 755 [...]]]></description>
			<content:encoded><![CDATA[<p><code><script type="text/javascript"><!--
google_ad_client = "pub-2585810307670535";
/* 468x60, created 11/28/09 */
google_ad_slot = "9594852426";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></code></p>
<p><strong>1. Create a directory to do our work in</strong><br />
<code>mkdir ~/ffmpeg<br />
cd ~/ffmpeg</code></p>
<p><strong>2. Get all the source files</strong>wget http://www3.mplayerhq.hu/MPlayer/releases/codecs/essential-20061022.tar.bz2<br />
wget http://rubyforge.org/frs/download.php/9225/flvtool2_1.0.5_rc6.tgz<br />
wget http://easynews.dl.sourceforge.net/sourceforge/lame/lame-3.97.tar.gz<br />
wget http://superb-west.dl.sourceforge.net/sourceforge/ffmpeg-php/ffmpeg-php-0.5.0.tbz2<br />
wget http://downloads.xiph.org/releases/ogg/libogg-1.1.3.tar.gz<br />
wget http://downloads.xiph.org/releases/vorbis/libvorbis-1.1.2.tar.gz</p>
<p><strong>3. Extract all the source files</strong><br />
<code>bunzip2 essential-20061022.tar.bz2; tar xvf essential-20061022.tar<br />
tar zxvf flvtool2_1.0.5_rc6.tgz<br />
tar zxvf lame-3.97.tar.gz<br />
bunzip2 ffmpeg-php-0.5.0.tbz2; tar xvf ffmpeg-php-0.5.0.tar<br />
tar zxvf libogg-1.1.3.tar.gz<br />
tar zxvf libvorbis-1.1.2.tar.gz</code></p>
<p><strong>4. Create the codecs directory &amp; import them</strong><br />
<code>mkdir /usr/local/lib/codecs/<br />
mv essential-20061022/* /usr/local/lib/codecs/<br />
chmod -R 755 /usr/local/lib/codecs/</code></p>
<p><strong>5. Install SVN/Ruby (Depends on OS, this is for RHEL/CentOS)</strong><br />
<code>yum install subversion<br />
yum install ruby<br />
yum install ncurses-devel</code></p>
<p><strong>6. Get the latest FFMPEG/MPlayer from the subversion</strong><br />
<code>svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg<br />
svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer</code></p>
<p><strong>7. Compile LAME</strong><br />
<code>cd ~/ffmpeg/lame-3.97<br />
./configure<br />
make<br />
make install</code></p>
<p><strong>8. Compile libOGG</strong><br />
<code>cd ~/ffmpeg/libogg-1.1.3<br />
./configure<br />
make<br />
make install</code></p>
<p><strong>9. Compile libVorbis</strong><br />
<code>cd ~/ffmpeg/libvorbis-1.1.2<br />
./configure<br />
make<br />
make install</code></p>
<p><strong>10. Compile flvtool2</strong><br />
<code>cd ~/ffmpeg/flvtool2_1.0.5_rc6<br />
ruby setup.rb config<br />
ruby setup.rb setup<br />
ruby setup.rb install</code></p>
<p><strong>11. Compile MPlayer</strong><br />
<code>cd ~/ffmpeg/mplayer<br />
./configure<br />
make<br />
make install</code></p>
<p><strong>12. Compile FFMPEG</strong><br />
<code>cd ~/ffmpeg/ffmpeg<br />
./configure --enable-libmp3lame  --enable-libvorbis --disable-mmx --enable-shared<br />
echo '#define HAVE_LRINTF 1' &gt;&gt; config.h<br />
make<br />
make install</code></p>
<p><strong>13. Finalize the codec setups</strong><br />
<code>ln -s /usr/local/lib/libavformat.so.50 /usr/lib/libavformat.so.50<br />
ln -s /usr/local/lib/libavcodec.so.51 /usr/lib/libavcodec.so.51<br />
ln -s /usr/local/lib/libavutil.so.49 /usr/lib/libavutil.so.49<br />
ln -s /usr/local/lib/libmp3lame.so.0 /usr/lib/libmp3lame.so.0<br />
ln -s /usr/local/lib/libavformat.so.51 /usr/lib/libavformat.so.51</code></p>
<p><strong>14. Compile FFMPEG-PHP</strong><br />
<code>cd ~/ffmpeg/ ffmpeg-php-0.5.0<br />
phpize<br />
./configure<br />
make<br />
make install</code></p>
<p><strong>15. Install FFMPEG-PHP (make sure the php.ini path is correct.)</strong><br />
<code>echo 'extension=/usr/local/lib/php/extensions/ no-debug-non-zts-20020429/ffmpeg.so' &gt;&gt; /usr/local/Zend/etc/php.ini</code></p>
<p><strong>16. Restart Apache to load FFMPEG-PHP (Depends on OS, this is for RHEL/CentOS)</strong><br />
<code>service httpd restart</code></p>
<p><strong>17. Verify if it works</strong><br />
<code>php -r 'phpinfo();' | grep ffmpeg</code></p>
<p>If you get a few lines such as<br />
<code>ffmpeg<br />
ffmpeg support (ffmpeg-php) =&gt; enabled<br />
ffmpeg-php version =&gt; 0.5.0<br />
ffmpeg.allow_persistent =&gt; 0 =&gt; 0</code></p>
<p>Then everything is installed and working.  FFMPEG, FFMPEG-PHP, MPlayer, MEncoder, flv2tool, LAME MP3 encoder &amp; libOGG.</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p><strong>Common Errors may  occur</strong></p>
<p><strong>1. </strong>When you try to &#8216;make &#8216;libVorbis you may get an error  &#8221; checking for ogg &gt;= 1.0&#8230; checking for Ogg&#8230; not found &#8221;<br />
<strong>Solution : Install libogg ( yum install libogg ), then Make it again</strong></p>
<p><code><script type="text/javascript"><!--
google_ad_client = "pub-2585810307670535";
/* 468x60, created 11/28/09 */
google_ad_slot = "9594852426";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></code></p>
<div id="st0000000001" class="st-taf"><script src="http://taf.socialtwist.com:80/taf/js/shoppr.core.js?id=0000000001"></script><img style="border:0;margin:0;padding:0;" src="http://tellafriend.socialtwist.com:80/wizard/images/tafbutton_blue16.png" onmouseout="hideHoverMap(this)" onmouseover="showHoverMap(this, '0000000001', 'http%3A%2F%2Fhellosystemadmin.com%2Fblog%2F79%2F', 'Install+ffmpeg+on+linux')" onclick="cw(this, {id:'0000000001',link: 'http%3A%2F%2Fhellosystemadmin.com%2Fblog%2F79%2F', title: '+Install+ffmpeg+on+linux+' })"/></div>]]></content:encoded>
			<wfw:commentRss>http://hellosystemadmin.com/blog/79/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

