<?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>Fedora &#187; PHP</title>
	<atom:link href="http://gofedora.com/archives/category/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://gofedora.com</link>
	<description>How Tos, Tutorials, Tips and Tricks</description>
	<lastBuildDate>Thu, 25 Feb 2010 07:55:25 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>News : Memepress (Yahoo! Meme) Wordpress Plugin Version 0.3 is available</title>
		<link>http://gofedora.com/news-memepress-yahoo-meme-wordpress-plugin-version-0-3/</link>
		<comments>http://gofedora.com/news-memepress-yahoo-meme-wordpress-plugin-version-0-3/#comments</comments>
		<pubDate>Fri, 06 Nov 2009 17:30:45 +0000</pubDate>
		<dc:creator>Kulbir Saini</dc:creator>
				<category><![CDATA[Hacks]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Memepress]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Meme]]></category>
		<category><![CDATA[Plugin]]></category>
		<category><![CDATA[Yahoo]]></category>
		<category><![CDATA[Yahoo Meme]]></category>

		<guid isPermaLink="false">http://gofedora.com/?p=971</guid>
		<description><![CDATA[
Memepress is a wordpress plugin which provides wordpress widgets for displaying public posts from Yahoo! Meme. Memepress is SEO ready and provides options to noindex/nofollow your Meme posts. New version fixes a few bugs and provides enhanced style control for the widget.
You can download memepress version 0.3 from wordpress plugin page.
For details on usage/installation instructions, [...]<p><a href="http://gofedora.com/">Fedora Tutorials</a> and <a href="http://cachevideos.com/">Videocache</a> by <a href="http://saini.co.in/">Kulbir Saini</a>.</p>
]]></description>
			<content:encoded><![CDATA[<p><a href="http://gofedora.com/news-memepress-yahoo-meme-wordpress-plugin-version-0-3/" class="post_image_link"  title="Permanent link to News : Memepress (Yahoo! Meme) Wordpress Plugin Version 0.3 is available"><img class="post_image alignnone" src="http://gofedora.com/wp-content/uploads/2009/09/Yahoo-Meme-Memepress-Wordpress-Plugin1.png" width="488" height="216" alt="Memepress (Yahoo! Meme) Wordpress Plugin" title="News : Memepress (Yahoo! Meme) Wordpress Plugin Version 0.3 is available" /></a>
</p><p><a href="http://gofedora.com/memepress" >Memepress</a> is a wordpress plugin which provides wordpress widgets for displaying public posts from <a rel="nofollow" href="http://gofedora.com/goto/http://meme.yahoo.com/" >Yahoo! Meme</a>. Memepress is SEO ready and provides options to noindex/nofollow your Meme posts. New version fixes a few bugs and provides enhanced style control for the widget.</p>
<p>You can download memepress version 0.3 from <a rel="nofollow" href="http://gofedora.com/goto/http://wordpress.org/extend/plugins/memepress-yahoo-meme/" >wordpress plugin page</a>.</p>
<p>For details on usage/installation instructions, please check <a href="http://gofedora.com/memepress" >plugin homepage</a>.<br />
<h3>Related Posts</h3>
<ul class="related_post">
<li><a href="http://gofedora.com/memepress-ready-translated-supports-turkish/"  title="Memepress Ready to be Translated (Supports Turkish now)">Memepress Ready to be Translated (Supports Turkish now)</a></li>
<li><a href="http://gofedora.com/news-memepress-yahoo-meme-wordpress-plugin/"  title="News: Memepress (Yahoo! Meme) Wordpress Plugin is out!">News: Memepress (Yahoo! Meme) Wordpress Plugin is out!</a></li>
<li><a href="http://gofedora.com/how-to-save-stupid-tech-support-questions/"  title="How To: Save yourself from stupid Tech Support Questions">How To: Save yourself from stupid Tech Support Questions</a></li>
<li><a href="http://gofedora.com/how-to-new-email-notification/"  title="How To: New Mail Notification">How To: New Mail Notification</a></li>
<li><a href="http://gofedora.com/intelligentmirror-rpm-deb-caching-improved-05/"  title="IntelligentMirror: RPM and DEB Caching Improved (0.5)">IntelligentMirror: RPM and DEB Caching Improved (0.5)</a></li>
</ul>
<p><a href="http://gofedora.com/" >Fedora Tutorials</a> and <a href="http://cachevideos.com/" >Videocache</a> by <a href="http://saini.co.in/" >Kulbir Saini</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://gofedora.com/news-memepress-yahoo-meme-wordpress-plugin-version-0-3/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How To: Install PHP 5.3 on CentOS 5.1 or RHEL 5.1</title>
		<link>http://gofedora.com/how-to-install-php-on-centos-red-hat-rhel/</link>
		<comments>http://gofedora.com/how-to-install-php-on-centos-red-hat-rhel/#comments</comments>
		<pubDate>Tue, 22 Sep 2009 20:54:34 +0000</pubDate>
		<dc:creator>Kulbir Saini</dc:creator>
				<category><![CDATA[Configuration]]></category>
		<category><![CDATA[Drupal]]></category>
		<category><![CDATA[Hacks]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Installation]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Tips - Tricks]]></category>
		<category><![CDATA[Cent OS]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[PHP 5.3]]></category>
		<category><![CDATA[Red Hat]]></category>
		<category><![CDATA[Remi Repository]]></category>

		<guid isPermaLink="false">http://gofedora.com/?p=922</guid>
		<description><![CDATA[
PHP 5.2 and PHP 5.3 has tons of functionalities which are not provided by PHP 5.1 and PHP 5.1 is the most recent version of PHP available in CentOS 5.1 and RHEL 5.1 via updates. Also, its difficult for people to upgrade OS(s) on production servers frequently and especially if the servers are running absolutely [...]<p><a href="http://gofedora.com/">Fedora Tutorials</a> and <a href="http://cachevideos.com/">Videocache</a> by <a href="http://saini.co.in/">Kulbir Saini</a>.</p>
]]></description>
			<content:encoded><![CDATA[<p><a href="http://gofedora.com/how-to-install-php-on-centos-red-hat-rhel/" class="post_image_link"  title="Permanent link to How To: Install PHP 5.3 on CentOS 5.1 or RHEL 5.1"><img class="post_image alignnone" src="http://gofedora.com/wp-content/uploads/2009/09/RedHat-CentOS-PHP.jpg" width="300" height="225" alt="RedHat CentOS PHP 5.3" title="How To: Install PHP 5.3 on CentOS 5.1 or RHEL 5.1" /></a>
</p><p>PHP 5.2 and PHP 5.3 has tons of functionalities which are not provided by PHP 5.1 and PHP 5.1 is the most recent version of PHP available in CentOS 5.1 and RHEL 5.1 via updates. Also, its difficult for people to upgrade OS(s) on production servers frequently and especially if the servers are running absolutely fine, it doesn&#8217;t really make sense to upgrade just for the heck of it. One more reason for no upgrades is the OS choices provided by many hosting companies. But a lot of CMS(s) and softwares are now recommending at least PHP 5.2 for an extended feature set.</p>
<p>I tried a lot of repos for CentOS including RPM Fusion, RPM Forge, EPEL etc., but none of them could provide even PHP 5.2. In some corner of my mind, I had a faint idea of <a rel="nofollow" href="http://gofedora.com/goto/http://blog.famillecollet.com/"  target="_blank">Remi Collet</a> publishing updates about Remi repository. Did a quick google search and found out that PHP 5.3 is actually available in the repository <img src='http://gofedora.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' title="How To: Install PHP 5.3 on CentOS 5.1 or RHEL 5.1" /> </p>
<p>So, if you are really in need of PHP5.3 on your CentOS/RHEL 5.1 or lesser, head over to <a rel="nofollow" href="http://gofedora.com/goto/http://blog.famillecollet.com/pages/Config-en"  target="_blank">Repository Configuration Page</a> and follow the instructions.</p>
<p><span style="text-decoration: underline;"><strong>Note:</strong></span> The repository is not enabled on install <em>(enabled=0)</em>. You need to enable it in <em>/etc/yum.repos.d/remi.repo</em>.</p>
<p>Once installed and enabled, you can update PHP, MySQL from remi repository using the following command</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>fedora ~<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ yum update php php-<span style="color: #000000; font-weight: bold;">*</span> mysql-<span style="color: #000000; font-weight: bold;">*</span></pre></div></div>

<p><span style="color: #ff0000;"><span style="text-decoration: underline;"><strong>Warning:</strong></span></span> Drupal is still not totally compatible with PHP5.3 and if you run Drupal sites, be sure to investigate things before upgrading.<br />
<h3>Related Posts</h3>
<ul class="related_post">
<li><a href="http://gofedora.com/red-hat-launches-opensource-com/"  title="Red Hat Launches OpenSource.Com">Red Hat Launches OpenSource.Com</a></li>
</ul>
<p><a href="http://gofedora.com/" >Fedora Tutorials</a> and <a href="http://cachevideos.com/" >Videocache</a> by <a href="http://saini.co.in/" >Kulbir Saini</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://gofedora.com/how-to-install-php-on-centos-red-hat-rhel/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Memepress Ready to be Translated (Supports Turkish now)</title>
		<link>http://gofedora.com/memepress-ready-translated-supports-turkish/</link>
		<comments>http://gofedora.com/memepress-ready-translated-supports-turkish/#comments</comments>
		<pubDate>Thu, 17 Sep 2009 20:34:36 +0000</pubDate>
		<dc:creator>Kulbir Saini</dc:creator>
				<category><![CDATA[Hacks]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Memepress]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[i18n]]></category>
		<category><![CDATA[Internationalization]]></category>
		<category><![CDATA[Meme]]></category>
		<category><![CDATA[Plugin]]></category>
		<category><![CDATA[Translation]]></category>
		<category><![CDATA[Turkish]]></category>
		<category><![CDATA[Yahoo]]></category>
		<category><![CDATA[Yahoo Meme]]></category>

		<guid isPermaLink="false">http://gofedora.com/?p=909</guid>
		<description><![CDATA[
Thanks for an awesome response to the Memepress (Yahoo! Meme) Wordpress plugin. A lot of people have blogged about it and contacted me via email for enhancements. New version also fixes the bug regarding image size in posts. I have also updated the plugin to support internationalization(i18n). Now you can translate about 20 strings in [...]<p><a href="http://gofedora.com/">Fedora Tutorials</a> and <a href="http://cachevideos.com/">Videocache</a> by <a href="http://saini.co.in/">Kulbir Saini</a>.</p>
]]></description>
			<content:encoded><![CDATA[<p><a href="http://gofedora.com/memepress-ready-translated-supports-turkish/" class="post_image_link"  title="Permanent link to Memepress Ready to be Translated (Supports Turkish now)"><img class="post_image alignnone" src="http://gofedora.com/wp-content/uploads/2009/09/Yahoo-Meme-Memepress-Wordpress-Plugin2.png" width="488" height="216" alt="Yahoo Meme Memepress Wordpress Plugin" title="Memepress Ready to be Translated (Supports Turkish now)" /></a>
</p><p>Thanks for an awesome response to the <a rel="nofollow" href="http://gofedora.com/goto/http://wordpress.org/extend/plugins/memepress-yahoo-meme"  target="_blank">Memepress (Yahoo! Meme) Wordpress plugin</a>. A lot of people have blogged about it and contacted me via email for enhancements. New version also fixes the bug regarding image size in posts. I have also updated the plugin to support internationalization(i18n). Now you can translate about 20 strings in your local language and you&#8217;ll have Memepress in your own language.</p>
<h3><span style="text-decoration: underline;"><strong>Turkish Translation</strong></span></h3>
<p>Huge thanks to <span><a rel="nofollow" href="http://gofedora.com/goto/http://y4lcin.com/"  target="_blank">Yalçın Erdemir</a> for translating the plugin to Turkish <img src='http://gofedora.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' title="Memepress Ready to be Translated (Supports Turkish now)" /><br />
</span></p>
<h3><span style="text-decoration: underline;"><strong>How To Translate</strong></span></h3>
<p>If you are interested in translating Memepress plugin in your language, then download the <a rel="nofollow" href="http://gofedora.com/goto/http://plugins.svn.wordpress.org/memepress-yahoo-meme/trunk/i18n/memepress.pot"  target="_blank">memepress.pot (POT file)</a> and open it in your favourite text editor. Now for every string against msgid should be translated to your language and populated in quotes against msgstr. See the example below.</p>
<p><span style="text-decoration: underline;"><strong>Before translation</strong></span></p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#: memepress.php:37
</span>msgid <span style="color: #0000ff;">&quot;Title&quot;</span>
msgstr <span style="color: #0000ff;">&quot;&quot;</span></pre></div></div>

<p><span style="text-decoration: underline;"><strong>After translation</strong></span></p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#: memepress.php:37
</span>msgid <span style="color: #0000ff;">&quot;Title&quot;</span>
msgstr <span style="color: #0000ff;">&quot;_WHATEVER_TITLE_IS_WRITTEN_AS_IN_YOUR_LANGUAGE_&quot;</span></pre></div></div>

<p>Once you are done with translating all the strings, save the file and mail me at kulbirsaini25 [AT] gmail.com .<br />
<h3>Related Posts</h3>
<ul class="related_post">
<li><a href="http://gofedora.com/news-memepress-yahoo-meme-wordpress-plugin-version-0-3/"  title="News : Memepress (Yahoo! Meme) Wordpress Plugin Version 0.3 is available">News : Memepress (Yahoo! Meme) Wordpress Plugin Version 0.3 is available</a></li>
<li><a href="http://gofedora.com/news-memepress-yahoo-meme-wordpress-plugin/"  title="News: Memepress (Yahoo! Meme) Wordpress Plugin is out!">News: Memepress (Yahoo! Meme) Wordpress Plugin is out!</a></li>
<li><a href="http://gofedora.com/how-to-save-stupid-tech-support-questions/"  title="How To: Save yourself from stupid Tech Support Questions">How To: Save yourself from stupid Tech Support Questions</a></li>
<li><a href="http://gofedora.com/how-to-new-email-notification/"  title="How To: New Mail Notification">How To: New Mail Notification</a></li>
<li><a href="http://gofedora.com/intelligentmirror-rpm-deb-caching-improved-05/"  title="IntelligentMirror: RPM and DEB Caching Improved (0.5)">IntelligentMirror: RPM and DEB Caching Improved (0.5)</a></li>
</ul>
<p><a href="http://gofedora.com/" >Fedora Tutorials</a> and <a href="http://cachevideos.com/" >Videocache</a> by <a href="http://saini.co.in/" >Kulbir Saini</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://gofedora.com/memepress-ready-translated-supports-turkish/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>News: Memepress (Yahoo! Meme) Wordpress Plugin is out!</title>
		<link>http://gofedora.com/news-memepress-yahoo-meme-wordpress-plugin/</link>
		<comments>http://gofedora.com/news-memepress-yahoo-meme-wordpress-plugin/#comments</comments>
		<pubDate>Fri, 11 Sep 2009 04:03:10 +0000</pubDate>
		<dc:creator>Kulbir Saini</dc:creator>
				<category><![CDATA[Hacks]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Memepress]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Plugin]]></category>
		<category><![CDATA[Sidebar]]></category>
		<category><![CDATA[Twitter]]></category>
		<category><![CDATA[Widget]]></category>
		<category><![CDATA[Yahoo]]></category>
		<category><![CDATA[Yahoo Meme]]></category>

		<guid isPermaLink="false">http://gofedora.com/?p=869</guid>
		<description><![CDATA[
Yahoo! Meme is a new Twitter like service in testing by Yahoo!. But its much better than Twitter. It has got facility to post text, photos, video and music. The best thing about Meme is the user interface. I am just loving it. Such a clean interface   I liked twitter&#8217;s web interface very [...]<p><a href="http://gofedora.com/">Fedora Tutorials</a> and <a href="http://cachevideos.com/">Videocache</a> by <a href="http://saini.co.in/">Kulbir Saini</a>.</p>
]]></description>
			<content:encoded><![CDATA[<p><a href="http://gofedora.com/news-memepress-yahoo-meme-wordpress-plugin/" class="post_image_link"  title="Permanent link to News: Memepress (Yahoo! Meme) Wordpress Plugin is out!"><img class="post_image alignnone" src="http://gofedora.com/wp-content/uploads/2009/09/Yahoo-Meme-Memepress-Wordpress-Plugin.png" width="488" height="216" alt="Yahoo Meme (Memepress Wordpress Plugin)" title="News: Memepress (Yahoo! Meme) Wordpress Plugin is out!" /></a>
</p><p><a rel="nofollow" href="http://gofedora.com/goto/http://meme.yahoo.com/"  target="_blank">Yahoo! Meme</a> is a new Twitter like service in testing by Yahoo!. But its much better than Twitter. It has got facility to post text, photos, video and music. The best thing about Meme is the user interface. I am just loving it. Such a clean interface <img src='http://gofedora.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' title="News: Memepress (Yahoo! Meme) Wordpress Plugin is out!" />  I liked twitter&#8217;s web interface very much because it was not cluttered like facebook and others. But meme&#8217;s interface is much better than twitter&#8217;s interface.</p>
<p>As I felt hooked to it, I thought it&#8217;ll be a good idea to have wordpress widget to display latest posts from Yahoo! Meme. I took <a rel="nofollow" href="http://gofedora.com/goto/http://wordpress.org/extend/plugins/twitter-for-wordpress"  target="_blank">Twitter for Wordpress</a> plugin&#8217;s source code and started modifying it to work for Yahoo! Meme and in a few hours, I managed to get a full fledged plugin for Yahoo! Meme and a few extra features and minor bug fixes as well <img src='http://gofedora.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' title="News: Memepress (Yahoo! Meme) Wordpress Plugin is out!" /> </p>
<p>I have named it Memepress. For more details and latest updates about the plugin, please visit <a rel="nofollow" href="http://gofedora.com/goto/http://wordpress.org/extend/plugins/memepress-yahoo-meme/"  target="_blank">plugin homepage on wordpress</a>. The plugin is really easy to setup and doesn&#8217;t have any dependencies and doesn&#8217;t even need to authenticate with Yahoo! Meme.</p>
<p>Comments/Suggestions?</p>
<p><span style="text-decoration: underline;"><strong>Note:</strong></span> Yahoo! Meme is still invite only. If you need an account, send me an email using <a href="../contact">this contact form</a>.<br />
<h3>Related Posts</h3>
<ul class="related_post">
<li><a href="http://gofedora.com/news-memepress-yahoo-meme-wordpress-plugin-version-0-3/"  title="News : Memepress (Yahoo! Meme) Wordpress Plugin Version 0.3 is available">News : Memepress (Yahoo! Meme) Wordpress Plugin Version 0.3 is available</a></li>
<li><a href="http://gofedora.com/memepress-ready-translated-supports-turkish/"  title="Memepress Ready to be Translated (Supports Turkish now)">Memepress Ready to be Translated (Supports Turkish now)</a></li>
<li><a href="http://gofedora.com/how-to-save-stupid-tech-support-questions/"  title="How To: Save yourself from stupid Tech Support Questions">How To: Save yourself from stupid Tech Support Questions</a></li>
<li><a href="http://gofedora.com/how-to-new-email-notification/"  title="How To: New Mail Notification">How To: New Mail Notification</a></li>
<li><a href="http://gofedora.com/intelligentmirror-rpm-deb-caching-improved-05/"  title="IntelligentMirror: RPM and DEB Caching Improved (0.5)">IntelligentMirror: RPM and DEB Caching Improved (0.5)</a></li>
</ul>
<p><a href="http://gofedora.com/" >Fedora Tutorials</a> and <a href="http://cachevideos.com/" >Videocache</a> by <a href="http://saini.co.in/" >Kulbir Saini</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://gofedora.com/news-memepress-yahoo-meme-wordpress-plugin/feed/</wfw:commentRss>
		<slash:comments>21</slash:comments>
		</item>
		<item>
		<title>How To: Install FFMPEG and FFMPEG-PHP</title>
		<link>http://gofedora.com/how-to-install-ffmpeg-ffmpeg-php/</link>
		<comments>http://gofedora.com/how-to-install-ffmpeg-ffmpeg-php/#comments</comments>
		<pubDate>Mon, 10 Dec 2007 18:50:27 +0000</pubDate>
		<dc:creator>Kulbir Saini</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Configuration]]></category>
		<category><![CDATA[FFMPEG]]></category>
		<category><![CDATA[Hacks]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Installation]]></category>
		<category><![CDATA[LAMP]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Library]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tips - Tricks]]></category>
		<category><![CDATA[Video Conversion]]></category>

		<guid isPermaLink="false">http://172.17.8.64/gofedora/?p=182</guid>
		<description><![CDATA[I was randomly browsing the internet and reading about making a website look better and I encountered ffmpeg-php. ffmpeg is a very powerful tool to record, convert and stream audio and video. Its a very rich tool almost supporting every format out there in the world. It can convert any format to any other format [...]<p><a href="http://gofedora.com/">Fedora Tutorials</a> and <a href="http://cachevideos.com/">Videocache</a> by <a href="http://saini.co.in/">Kulbir Saini</a>.</p>
]]></description>
			<content:encoded><![CDATA[<p></p><p>I was randomly browsing the internet and reading about making a website look better and I encountered ffmpeg-php. <a rel="nofollow" href="http://gofedora.com/goto/http://ffmpeg.mplayerhq.hu/"  target="_blank">ffmpeg</a> is a very powerful tool to record, convert and stream audio and video. Its a very rich tool almost supporting every format out there in the world. It can convert any format to any other format provided the codec. <a rel="nofollow" href="http://gofedora.com/goto/http://ffmpeg-php.sourceforge.net/"  target="_blank">ffmpeg-php</a> is an extension for <a rel="nofollow" href="http://gofedora.com/goto/http://php.net/"  target="_blank">PHP</a> that provides a rich library to access info about audio and video files. The good thing about ffmpeg-php is that it can retrieve all info about any audio/video file subjected to the condition that the particular audio/video format is supported by your ffmpeg installation. So, now you have a clear idea that you can do wonders with audio/videos while showing them on your site <img src='http://gofedora.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' title="How To: Install FFMPEG and FFMPEG PHP" /> </p>
<p>I tried some of the functionalities and they worked out of the box. Here&#8217;s is complete how to on installing ffmpeg and ffmpeg-php.</p>
<h3><strong><span style="text-decoration: underline;">FFMPEG:</span></strong></h3>
<p>I tried installing ffmpeg from rpms provided by several Fedora repositories but after installation ffmpeg doesn&#8217;t seem to work. After several tries, I installed ffmpeg from source rpms  and it worked. Below, I will describe how to install ffmpeg from source rpm.</p>
<h4><strong><span style="text-decoration: underline;">Step 1:</span></strong></h4>
<p>Make sure that you have &#8216;rpmbuild&#8217; installed by issuing</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>bordeaux saini<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># rpm -q rpmbuild [Enter]</span></pre></div></div>

<p>command. If the above says that rpmbuild is not installed, then install it using yum as given below</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>bordeaux saini<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># yum install rpmbuild [Enter] (do as root)</span></pre></div></div>

<h4><strong><span style="text-decoration: underline;">Step 2:</span></strong></h4>
<p>Download the latest src rpm of ffmpeg from <a rel="nofollow" href="http://gofedora.com/goto/http://rpmfind.net/linux/rpm2html/search.php?query=ffmpeg&amp;submit=Search+...&amp;system=&amp;arch=src"  target="_blank">rpmfind.net</a>. Issue the command given below</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>bordeaux saini<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># rpm -hiv ffmpeg-x.x.x.xx-xxx.src.rpm [Enter] (do as root)</span></pre></div></div>

<h4><strong><span style="text-decoration: underline;">Step 3:</span></strong></h4>
<p>Go to &#8216;/usr/src/redhat/SPECS/&#8217; directory and issue the command given below</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>bordeaux saini<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># cd /usr/src/redhat/SPECS/ [Enter]</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>bordeaux SPECS<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># rpmbuild -ba ffmpeg.spec [Enter] (do as root)</span></pre></td></tr></table></div>

<p>If it gives an error like package &#8216;xyz&#8217; is need by ffmpeg. Then install the package &#8216;xyz&#8217; using yum as</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>bordeaux SPECS<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># yum install xyz [Enter] (do as root)</span></pre></div></div>

<p>After installing the dependencies, issue the rpmbuild command &#8216;rpmbuild -ba ffmpeg.spec&#8217;. Now ffmpeg rpms will be build and they will be stored in &#8216;/usr/src/redhat/RPMS/i386/&#8217;.</p>
<h4><strong><span style="text-decoration: underline;">Step 4:</span></strong></h4>
<p>Go the &#8216;/usr/src/redhat/RPMS/i386/&#8217; (x86_64 instead of i386 if your OS is 64 bit). Install all the rpms that were built by rpmbuild.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>bordeaux saini<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># rpm -hiv *.rpm [Enter] (do as root)</span></pre></div></div>

<p>Thats it. ffmpeg is now successfully installed on your computer. Half the job is done. Now lets proceed with ffmpeg-php installation.</p>
<h3><strong><span style="text-decoration: underline;">FFMPEG-PHP:</span></strong></h3>
<p>We will install ffmpeg-php from source bundle.</p>
<h4><strong><span style="text-decoration: underline;">Step 1:</span></strong></h4>
<p>Make sure that &#8216;php-devel&#8217; installed on your machine by issuing</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>bordeaux saini<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># rpm -q php-devel [Enter]</span></pre></div></div>

<p>command. If the above command says the &#8216;php-devel&#8217; is not installed, then install it using the following command.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>bordeaux saini<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># yum install php-devel [Enter] (do as root)</span></pre></div></div>

<h4><strong><span style="text-decoration: underline;">Step 2:</span></strong></h4>
<p>Download the latest version of ffmpeg-php from <a rel="nofollow" href="http://gofedora.com/goto/http://sourceforge.net/project/showfiles.php?group_id=122353&amp;package_id=133626"  target="_blank">here</a>. Unpack the file you have downloaded.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>bordeaux saini<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># bunzip2 -d ffmpeg-php-0.5.1.tbz2 [Enter]</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>bordeaux saini<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># tar -xvf ffmpeg-php-0.5.1.tar [Enter]</span></pre></td></tr></table></div>

<h4><strong><span style="text-decoration: underline;">Step 3:</span></strong></h4>
<p>Issue the following command in sequence if everything goes fine.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>bordeaux saini<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># cd ffmpeg-php-0.5.1 [Enter]</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>bordeaux ffmpeg-php-0.5.1<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># phpize [Enter]</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>bordeaux ffmpeg-php-0.5.1<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># ./configure [Enter]</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>bordeaux ffmpeg-php-0.5.1<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># make [Enter]</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>bordeaux ffmpeg-php-0.5.1<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># make install [Enter] (do as root)</span></pre></td></tr></table></div>

<h4><strong><span style="text-decoration: underline;">Step 4:</span></strong></h4>
<p>Open &#8216;/etc/php.ini&#8217; and add a line &#8216;extension=ffmpeg.so&#8217; in the category &#8216;Dynamic Extensions&#8217;. For help see the image below.<br />
<a href="http://gofedora.com/wp-content/uploads/2007/12/ffmpeg-php-phpini-module.jpg" ><img class="alignnone size-full wp-image-184" title="FFMPEG PHP PHPini Module" src="http://gofedora.com/wp-content/uploads/2007/12/ffmpeg-php-phpini-module.jpg" alt="FFMPEG PHP PHPini Module" width="308" height="344" /></a></p>
<h4><strong><span style="text-decoration: underline;">Step 5:</span></strong></h4>
<p>Restart apache web server aka &#8216;httpd&#8217; service by issuing the command.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>bordeaux saini<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># service httpd restart [Enter] (do as root)</span></pre></div></div>

<h4><strong><span style="text-decoration: underline;">Step 6:</span></strong></h4>
<p>Write a test php file and test your ffmpeg-php installation.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">phpinfo<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>;</pre></div></div>

<p>Save the above code in &#8216;info.php&#8217; and save the file in &#8216;/var/www/html/&#8217; and browse <a rel="nofollow" href="http://gofedora.com/goto/http://localhost/info.php"  target="_blank">http://localhost/info.php</a> . If you see something like this.<br />
<a href="http://gofedora.com/wp-content/uploads/2007/12/ffmpeg-php-linux.jpg" ><img class="alignnone size-full wp-image-185" title="FFMPEG PHP Linux" src="http://gofedora.com/wp-content/uploads/2007/12/ffmpeg-php-linux.jpg" alt="FFMPEG PHP Linux" width="603" height="226" /></a><br />
Then the ffmpeg-php is successfully installed on your machine. Now you can jump into the world of video manipulation via your website.<br />
<h3>Related Posts</h3>
<ul class="related_post">
<li><a href="http://gofedora.com/how-to-install-phpming/"  title="How To: Install PHP-Ming">How To: Install PHP-Ming</a></li>
<li><a href="http://gofedora.com/how-to-install-wordpress-lamp/"  title="How To: Install Wordpress on LAMP">How To: Install Wordpress on LAMP</a></li>
<li><a href="http://gofedora.com/bug-strange-libstdcso5-problem-fedora-7/"  title="Bug: Strange libstdc++.so.5 Problem in Fedora 7">Bug: Strange libstdc++.so.5 Problem in Fedora 7</a></li>
</ul>
<p><a href="http://gofedora.com/" >Fedora Tutorials</a> and <a href="http://cachevideos.com/" >Videocache</a> by <a href="http://saini.co.in/" >Kulbir Saini</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://gofedora.com/how-to-install-ffmpeg-ffmpeg-php/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>How To: Install PHP-Ming</title>
		<link>http://gofedora.com/how-to-install-phpming/</link>
		<comments>http://gofedora.com/how-to-install-phpming/#comments</comments>
		<pubDate>Wed, 28 Nov 2007 19:27:11 +0000</pubDate>
		<dc:creator>Kulbir Saini</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Configuration]]></category>
		<category><![CDATA[Graphics]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Installation]]></category>
		<category><![CDATA[LAMP]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[libming]]></category>
		<category><![CDATA[Library]]></category>
		<category><![CDATA[Ming]]></category>
		<category><![CDATA[PHP-Ming]]></category>
		<category><![CDATA[SWF]]></category>

		<guid isPermaLink="false">http://172.17.8.64/gofedora/?p=370</guid>
		<description><![CDATA[Yesterday, I came across a library called ming for php which can do wonders while converting videos to .swf (flash), images to .swf and much more. The best thing is that ming provides wrappers in C/C++/PHP/Python/Perl/Tcl etc. So, can be used within any one of these languages. But, the damn thing drove me crazy while [...]<p><a href="http://gofedora.com/">Fedora Tutorials</a> and <a href="http://cachevideos.com/">Videocache</a> by <a href="http://saini.co.in/">Kulbir Saini</a>.</p>
]]></description>
			<content:encoded><![CDATA[<p></p><p>Yesterday, I came across a library called ming for php which can do wonders while converting videos to .swf (flash), images to .swf and much more. The best thing is that ming provides wrappers in C/C++/PHP/Python/Perl/Tcl etc. So, can be used within any one of these languages. But, the damn thing drove me crazy while installing. It was very tough experience installing it as the available howtos didn&#8217;t help much. But finally I somehow managed with the installation and it worked <img src='http://gofedora.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' title="How To: Install PHP Ming" />  So, I thought of writing this how to, so that anyone having the same problem can find it helpful.</p>
<p>Here is a complete howto on installing php-ming in Fedora. (I installed it on Fedora 7 and with php5, but howto is supposed to work with other versions as well.) Though there are rpms available for earlier versions of ming, but I wanted the latest, so installed from source.</p>
<p><strong><span style="text-decoration: underline;">Resources:</span></strong><br />
libming : <a rel="nofollow" href="http://gofedora.com/goto/http://www.libming.net/"  target="_blank">http://www.libming.net/</a><br />
PHP : <a rel="nofollow" href="http://gofedora.com/goto/http://php.net/"  target="_blank">http://php.net/</a></p>
<h4><span style="text-decoration: underline;">Step 1</span></h4>
<p>First of all make sure that you have php-devel package, otherwise you will not be able to install ming at all. Do the following as root.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>bordeaux root<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># rpm -q php-devel [Enter]</span></pre></div></div>

<p>If the above command says php-devel is not installed, then fetch php-devel for your php version from <a rel="nofollow" href="http://gofedora.com/goto/http://rpmfind.net"  target="_blank">here</a> and install as given below, else proceed to step 2.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>bordeaux root<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># rpm -hiv php-devel-5.2.2-3.i386.rpm [Enter]</span></pre></div></div>

<h4><span style="text-decoration: underline;">Step 2</span></h4>
<p>Download latest version of ming from <a rel="nofollow" href="http://gofedora.com/goto/http://www.libming.org/moin.cgi/Releases"  target="_blank">here</a>.</p>
<h4><span style="text-decoration: underline;">Step 3</span></h4>
<p>Untar the downloaded package.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>saini<span style="color: #000000; font-weight: bold;">@</span>bordeaux saini<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># tar -xvzf ming-0.4.0.beta5.tar.gz [Enter]</span></pre></div></div>

<h4><span style="text-decoration: underline;">Step 4</span></h4>
<p>Change directory to &#8216;./ming-0.4.0.beta5&#8242; and issue ./configure and make as given below</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>saini<span style="color: #000000; font-weight: bold;">@</span>bordeaux saini<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># cd ming-0.4.0.beta5 [Enter]</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>saini<span style="color: #000000; font-weight: bold;">@</span>bordeaux ming-0.4.0.beta5<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># ./configure --enable-cXX --enable-php [Enter]</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>saini<span style="color: #000000; font-weight: bold;">@</span>bordeaux ming-0.4.0.beta5<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># make [Enter]</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>bordeaux ming-0.4.0.beta5<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># make install [Enter] (as root)</span></pre></td></tr></table></div>

<h4><span style="text-decoration: underline;">Step 5</span></h4>
<p>Go to &#8216;./php_ext&#8217; directory and issue &#8216;make&#8217; and &#8216;make install&#8217;.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>saini<span style="color: #000000; font-weight: bold;">@</span>bordeaux ming-0.4.0.beta5<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># cd php_ext [Enter]</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>saini<span style="color: #000000; font-weight: bold;">@</span>bordeaux php_ext<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># make [Enter]</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>bordeaux php_ext<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># make install [Enter] (as root)</span></pre></td></tr></table></div>

<h4><span style="text-decoration: underline;">Step 6</span></h4>
<p>Open make_modules.sh in your favorite editor and uncomment the line &#8216;make install&#8217; and run make_modules.sh.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>bordeaux php_ext<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># bash make_modules.sh [Enter] (as root)</span></pre></div></div>

<h4><span style="text-decoration: underline;">Step 7</span></h4>
<p>Go to &#8216;./tmp/modules/&#8217; directory and copy ming.so to &#8216;/usr/lib/php/modules/&#8217;</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>bordeaux php_ext<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># cd tmp/modules/ [Enter]</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>bordeaux modules<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># cp ming.so /usr/lib/php/modules/ [Enter] (as root)</span></pre></td></tr></table></div>

<p>If ming.so is not found in &#8216;php_ext/tmp/modules/, then update your db using &#8216;updatedb&#8217; and locate ming.so and if found on locate, then copy it to &#8216;/usr/lib/php/modules/&#8217;. If not found at all, try recompiling or issue some random commands related to make.</p>
<h4><span style="text-decoration: underline;">Step 8</span></h4>
<p>Go to &#8216;/usr/local/lib/&#8217; and check if libming.so, libming.so.0 etc. are present there. If yes proceed else I don&#8217;t know what to do <img src='http://gofedora.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' title="How To: Install PHP Ming" /> </p>
<h4><span style="text-decoration: underline;">Step 9(a)</span></h4>
<p>Go to &#8216;/usr/lib/php/modules/&#8217; and issue these commands.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>bordeaux modules<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># ln -s /usr/local/lib/libming.so libming.so (as root)</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>bordeaux modules<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># ln -s /usr/local/lib/libming.so.0 libming.so.0 (as root)</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>bordeaux modules<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># ln -s /usr/local/lib/libming.so.0.3.0 libming.so.0.3.0 (as root)</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>bordeaux modules<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># ln -s /usr/local/lib/libming.so.0.4.0 libming.so.0.4.0 (as root)</span></pre></td></tr></table></div>

<h4><strong><span style="text-decoration: underline;">Step 9(b)</span></strong></h4>
<p>Go to &#8216;/usr/lib/&#8217; and issue these commands.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>bordeaux lib<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># ln -s /usr/local/lib/libming.so libming.so (as root)</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>bordeaux lib<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># ln -s /usr/local/lib/libming.so.0 libming.so.0 (as root)</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>bordeaux lib<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># ln -s /usr/local/lib/libming.so.0.3.0 libming.so.0.3.0 (as root)</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>bordeaux lib<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># ln -s /usr/local/lib/libming.so.0.4.0 libming.so.0.4.0 (as root)</span></pre></td></tr></table></div>

<h4><span style="text-decoration: underline;">Step 10</span></h4>
<p>Restart the httpd service by issuing the command below</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>bordeaux root<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># service httpd restart [Enter] (as root)</span></pre></div></div>

<h4><span style="text-decoration: underline;">Step 11</span></h4>
<p>Write a file &#8216;/var/www/html/info.php&#8217; with following contents</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #990000;">phpinfo</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>and point your web browser to <a rel="nofollow" href="http://gofedora.com/goto/http://localhost/info.php"  target="_blank">http://localhost/info.php</a> . Now search for &#8216;ming&#8217; and check whether its enabled or not.</p>
<p><a href="http://gofedora.com/wp-content/uploads/2007/11/php-ming-fedora-7.jpg" ><img class="alignnone size-full wp-image-373" title="PHP Ming in Fedora" src="http://gofedora.com/wp-content/uploads/2007/11/php-ming-fedora-7.jpg" alt="PHP Ming in Fedora" width="606" height="105" /></a></p>
<p>If enabled, yes you have successfully installed php-ming <img src='http://gofedora.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' title="How To: Install PHP Ming" />  Hope this helps.<br />
<h3>Related Posts</h3>
<ul class="related_post">
<li><a href="http://gofedora.com/how-to-install-ffmpeg-ffmpeg-php/"  title="How To: Install FFMPEG and FFMPEG-PHP">How To: Install FFMPEG and FFMPEG-PHP</a></li>
<li><a href="http://gofedora.com/bug-strange-libstdcso5-problem-fedora-7/"  title="Bug: Strange libstdc++.so.5 Problem in Fedora 7">Bug: Strange libstdc++.so.5 Problem in Fedora 7</a></li>
</ul>
<p><a href="http://gofedora.com/" >Fedora Tutorials</a> and <a href="http://cachevideos.com/" >Videocache</a> by <a href="http://saini.co.in/" >Kulbir Saini</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://gofedora.com/how-to-install-phpming/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>How To: Install Wordpress on LAMP</title>
		<link>http://gofedora.com/how-to-install-wordpress-lamp/</link>
		<comments>http://gofedora.com/how-to-install-wordpress-lamp/#comments</comments>
		<pubDate>Mon, 12 Nov 2007 16:03:36 +0000</pubDate>
		<dc:creator>Kulbir Saini</dc:creator>
				<category><![CDATA[Configuration]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Installation]]></category>
		<category><![CDATA[LAMP]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Blogging]]></category>
		<category><![CDATA[Hacks]]></category>
		<category><![CDATA[Import Blog]]></category>
		<category><![CDATA[Tips - Tricks]]></category>

		<guid isPermaLink="false">http://172.17.8.64/gofedora/?p=153</guid>
		<description><![CDATA[Recently, I bought this domain name and shifted all my blogs here on saini.co.in . As I chose wordpress as the software to blog. So, just installed it and started using it right away. Installing wordpress is one of the most easiest things that you&#8217;ll ever do. Below is a step by step howto on [...]<p><a href="http://gofedora.com/">Fedora Tutorials</a> and <a href="http://cachevideos.com/">Videocache</a> by <a href="http://saini.co.in/">Kulbir Saini</a>.</p>
]]></description>
			<content:encoded><![CDATA[<p></p><p>Recently, I bought this domain name and shifted all my blogs here on saini.co.in . As I chose wordpress as the software to blog. So, just installed it and started using it right away. Installing wordpress is one of the most easiest things that you&#8217;ll ever do. Below is a step by step howto on installing wordpress and importing your current wordpress.com blog to your domain.</p>
<h3><span style="text-decoration: underline;">Step 1:</span></h3>
<p>Download latest version of wordpress from <a rel="nofollow" href="http://gofedora.com/goto/http://wordpress.org/download/"  target="_blank">here</a>.</p>
<h3><span style="text-decoration: underline;">Step 2:</span></h3>
<p>Go to the directory where you want to install it. Here I am taking <a href="http://gofedora.com" >gofedora.com</a> as reference website where we want to install the wordpress and ~/htdocs/ as the web directory for <a href="http://gofedora.com" >gofedora.com</a> . Modify above details in accordance with your needs.</p>
<p>If you downloaded .zip format then do this</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>saini<span style="color: #000000; font-weight: bold;">@</span>bordeaux htdocs<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># unzip wordpress-X.X.X.zip [Enter]</span></pre></div></div>

<p>If you download .tar.gz format then do this</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>saini<span style="color: #000000; font-weight: bold;">@</span>bordeaux htdocs<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># tar -xvzf wordpress-X.X.X.zip [Enter]</span></pre></div></div>

<h3><span style="text-decoration: underline;">Step 3:</span></h3>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>saini<span style="color: #000000; font-weight: bold;">@</span>bordeaux htdocs<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># mv wordpress/* . [Enter]</span></pre></div></div>

<p>If you visit <a href="http://gofedora.com" >http://gofedora.com</a> now, you&#8217;ll get an error as shown in the image below &#8230;</p>
<p><a href="http://gofedora.com/wp-content/uploads/2007/11/1-wordpress-error-without-wp-config.jpg" ><img class="alignnone size-medium wp-image-158" title="Wordpress Error Without wp-config" src="http://gofedora.com/wp-content/uploads/2007/11/1-wordpress-error-without-wp-config-543x470.jpg" alt="Wordpress Error Without wp-config" width="543" height="470" /></a></p>
<h3><span style="text-decoration: underline;">Step 4:</span></h3>
<p>Open the file wp-config-sample.php in your favorite text editor and edit the things shown in the image below.</p>
<p><a href="http://gofedora.com/wp-content/uploads/2007/11/2-wp-sample-config.jpg" ><img class="alignnone size-medium wp-image-159" title="Sample wp-config" src="http://gofedora.com/wp-content/uploads/2007/11/2-wp-sample-config-620x440.jpg" alt="Sample wp-config" width="620" height="440" /></a></p>
<p>Enter your database name, database username, database password and the table prefix for the wordpress database. e.g. one can use linux_ as table prefix. If you have the database on the same system, then there is no need to change the database host otherwise change it accordingly.</p>
<h3><span style="text-decoration: underline;">Step 5:</span></h3>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>saini<span style="color: #000000; font-weight: bold;">@</span>bordeaux htdocs<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># mv wp-config-sample.php wp-config.php [Enter]</span></pre></div></div>

<h3><span style="text-decoration: underline;">Step 6:</span></h3>
<p>Go to <a href="http://gofedora.com" >http://gofedora.com/</a> and you&#8217;ll see a welcome page if you gave correct setting in wp-config.php . The page is like in the image below.</p>
<p><a href="http://gofedora.com/wp-content/uploads/2007/11/3-wordpress-blog-config.jpg" ><img class="alignnone size-medium wp-image-160" title="Wordpress Blog Config" src="http://gofedora.com/wp-content/uploads/2007/11/3-wordpress-blog-config-501x470.jpg" alt="Wordpress Blog Config" width="501" height="470" /></a></p>
<p>Fill the settings properly. Anyway you can change them afterwards. Fill the blog name and email id and click Install Wordpress.</p>
<h3><span style="text-decoration: underline;">Step 7:</span></h3>
<p>You&#8217;ll see a web-page like in the image below, if everything goes fine. Copy the password on the page and paste at some temporary place and click login.</p>
<p><a href="http://gofedora.com/wp-content/uploads/2007/11/4-wordpress-copy-password.jpg" ><img class="alignnone size-medium wp-image-161" title="Wordpress Copy Password" src="http://gofedora.com/wp-content/uploads/2007/11/4-wordpress-copy-password-506x470.jpg" alt="Wordpress Copy Password" width="506" height="470" /></a></p>
<h3><span style="text-decoration: underline;">Step 8:</span></h3>
<p>You&#8217;ll be presented with a login page. Enter &#8216;admin&#8217; as username and the password you copied from the previous page.</p>
<p><a href="http://gofedora.com/wp-content/uploads/2007/11/5-wordpress-admin-login.jpg" ><img class="alignnone size-medium wp-image-163" title="Wordpress Admin Login" src="http://gofedora.com/wp-content/uploads/2007/11/5-wordpress-admin-login-506x470.jpg" alt="Wordpress Admin Login" width="506" height="470" /></a></p>
<h3><span style="text-decoration: underline;">Step 9:</span></h3>
<p>Congratulations ! You have successfully installed wordpress and created the admin login. Go to Users -&gt; Authors &amp; Users and click Edit in the row with admin as author. Change the password on the next page as below ..</p>
<p><a href="http://gofedora.com/wp-content/uploads/2007/11/7-wordpress-change-password.jpg" ><img class="alignnone size-medium wp-image-164" title="Wordpress Change Password" src="http://gofedora.com/wp-content/uploads/2007/11/7-wordpress-change-password-613x470.jpg" alt="Wordpress Change Password" width="613" height="470" /></a></p>
<p>This is all you have to do to install wordpress. Below is how you import wordpress.com blog to your domain.</p>
<h3><span style="text-decoration: underline;">Step 1:</span></h3>
<p>Login as admin on you wordpress.com blog and go to Manage -&gt; Export and download the exported blog to your system as show in the image below.</p>
<p><a href="http://gofedora.com/wp-content/uploads/2007/11/8-wordpress-export-blog.jpg" ><img class="alignnone size-medium wp-image-165" title="Wordpress Export Blog" src="http://gofedora.com/wp-content/uploads/2007/11/8-wordpress-export-blog-620x463.jpg" alt="Wordpress Export Blog" width="620" height="463" /></a></p>
<h3><span style="text-decoration: underline;">Step 2:</span></h3>
<p>Create directory named &#8216;uploads&#8217; in ~/htdocs/wp-content/ and change permissions to 777 so that wordpress can upload your blog there.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>saini<span style="color: #000000; font-weight: bold;">@</span>bordeaux htdocs<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># cd wp-content [Enter]</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>saini<span style="color: #000000; font-weight: bold;">@</span>bordeaux wp-content<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># mkdir uploads [Enter]</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>saini<span style="color: #000000; font-weight: bold;">@</span>bordeaux wp-content<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># chmod 777 uploads [Enter]</span></pre></td></tr></table></div>

<h3><span style="text-decoration: underline;">Step 3:</span></h3>
<p>Go to Manager -&gt; Import section and click on &#8216;wordpress&#8217; . Upload the .xml file that you download from your wordpress.com blog in step 1 on the page as shown in the image below ..</p>
<p><a href="http://gofedora.com/wp-content/uploads/2007/11/9-wordpress-import-wordpress-blog.jpg" ><img class="alignnone size-medium wp-image-166" title="Wordpress Import Blog" src="http://gofedora.com/wp-content/uploads/2007/11/9-wordpress-import-wordpress-blog-620x463.jpg" alt="Wordpress Import Blog" width="620" height="463" /></a></p>
<h3><span style="text-decoration: underline;">Step 4:</span></h3>
<p>If uploading goes successful, then all your posts will be imported from your wordpress.com blog and will be stored in the database as <a href="http://gofedora.com" >gofedora.com</a> . Now it will ask you for the author of the new blog posts at <a href="http://gofedora.com" >gofedora.com</a> as show below &#8230;</p>
<p><a href="http://gofedora.com/wp-content/uploads/2007/11/10-wordpress-choose-new-blog-author.jpg" ><img class="alignnone size-medium wp-image-167" title="Choose New Author" src="http://gofedora.com/wp-content/uploads/2007/11/10-wordpress-choose-new-blog-author-620x463.jpg" alt="Choose New Author" width="620" height="463" /></a></p>
<h3><span style="text-decoration: underline;">Step 5:</span></h3>
<p>Change the permission of uploads back to normal as show below</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>saini<span style="color: #000000; font-weight: bold;">@</span>bordeaux wp-content<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># chmod 744 uploads [Enter]</span></pre></div></div>

<p>Everything is done. Now you blog has been shifted to your domain and you can go on with the new blog. But keep in the mind the the images you used in wordpress.com blog posts are not stored in your local database, they are still linked back to your wordpress.com blog images. So, don&#8217;t just go and delete your wordpress.com blog. That would be fatal.</p>
<p>The steps for installing wordpress on a windows system are the same, but you have to use some notepads and whatever to edit files <img src='http://gofedora.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' title="How To: Install Wordpress on LAMP" /> </p>
<p>Enjoy blogging at your domain. Hope the above howto helps.<br />
<h3>Related Posts</h3>
<ul class="related_post">
<li><a href="http://gofedora.com/how-to-install-ffmpeg-ffmpeg-php/"  title="How To: Install FFMPEG and FFMPEG-PHP">How To: Install FFMPEG and FFMPEG-PHP</a></li>
</ul>
<p><a href="http://gofedora.com/" >Fedora Tutorials</a> and <a href="http://cachevideos.com/" >Videocache</a> by <a href="http://saini.co.in/" >Kulbir Saini</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://gofedora.com/how-to-install-wordpress-lamp/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>
