<?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; LAMP</title>
	<atom:link href="http://gofedora.com/archives/category/lamp/feed/" rel="self" type="application/rss+xml" />
	<link>http://gofedora.com</link>
	<description>How Tos, Tutorials, Tips and Tricks</description>
	<lastBuildDate>Thu, 17 May 2012 04:44:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>How To: Install and Configure GitWeb</title>
		<link>http://gofedora.com/how-to-install-configure-gitweb/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-install-configure-gitweb</link>
		<comments>http://gofedora.com/how-to-install-configure-gitweb/#comments</comments>
		<pubDate>Wed, 28 Jan 2009 17:38:08 +0000</pubDate>
		<dc:creator>Kulbir Saini</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Configuration]]></category>
		<category><![CDATA[Git]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Installation]]></category>
		<category><![CDATA[LAMP]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Tips - Tricks]]></category>
		<category><![CDATA[Clean URL]]></category>
		<category><![CDATA[Code Repository]]></category>
		<category><![CDATA[GitWeb]]></category>
		<category><![CDATA[Repository Browser]]></category>
		<category><![CDATA[Source Code Management]]></category>

		<guid isPermaLink="false">http://172.17.8.64/gofedora/?p=288</guid>
		<description><![CDATA[Goal Setting up gitweb (web interface for SCM software git) for your project&#8217;s git repository for public access and developer commits via ssh. Assumptions You already have your project&#8217;s git repository. You have hosting space somewhere to host gitweb. You have root access. You are using Apache as webserver. Example for this howto Project : [...]<p><a href="http://gofedora.com/">Fedora Tutorials</a> by <a href="http://saini.co.in/">Kulbir Saini</a>.</p>
]]></description>
			<content:encoded><![CDATA[<div class="addthis_toolbox addthis_default_style " addthis:url='http://gofedora.com/how-to-install-configure-gitweb/' addthis:title='How To: Install and Configure GitWeb '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_button_google_plusone" g:plusone:size="medium"></a><a class="addthis_counter addthis_pill_style"></a></div><p></p><h4><span style="text-decoration: underline;"><strong>Goal</strong></span></h4>
<p>Setting up gitweb (web interface for SCM software git) for your project&#8217;s git repository for public access and developer commits via ssh.</p>
<h4><span style="text-decoration: underline;"><strong>Assumptions</strong></span></h4>
<ol>
<li>You already have your project&#8217;s git repository.</li>
<li>You have hosting space somewhere to host gitweb.</li>
<li>You have root access.</li>
<li>You are using Apache as webserver.</li>
</ol>
<h4><span style="text-decoration: underline;"><strong>Example for this howto</strong></span></h4>
<p>Project : <a href="http://cachevideos.com" target="_blank">VideoCache</a><br />
Domain for gitweb : <a href="http://git.cachevideos.com" target="_blank">git.cachevideos.com</a><br />
URL for git access for videocache : <a href="http://git.cachevideos.com/videocache.git" target="_blank">http://git.cachevideos.com/videocache.git</a><br />
Actual path on server : <em>/home/saini/domains/cachevideos.com/git</em><br />
Git repository : <em>/home/saini/projects/videocache/</em></p>
<h4><span style="text-decoration: underline;"><strong>Installation</strong></span></h4>
<p>Installation is pretty easy. Just one single command would do everything.</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>localhost ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># yum install gitweb (do as root)</span></pre></div></div>

<p>This will create a directory <em>/var/www/git</em> which is default for gitweb.</p>
<p>Copy the directory <em>/var/www/git/</em> to <em>/home/saini/domains/cachevideos.com/git</em></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>localhost ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># cp -r /var/www/git /home/saini/domains/cachevideos.com/git</span></pre></div></div>

<h4><span style="text-decoration: underline;"><strong>Configuration</strong></span></h4>
<p><span style="text-decoration: underline;"><strong>1. GitWeb</strong></span></p>
<p>Open the file <em>/etc/gitweb.conf</em> (it may or may not be there) and add the following lines to it.</p>

<div class="wp_syntax"><div class="code"><pre class="perl" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># Change This</span>
<span style="color: #0000ff;">$projectroot</span> <span style="color: #339933;">=</span> <span style="color: #ff0000;">'/home/saini/domains/cachevideos.com/git'</span><span style="color: #339933;">;</span>
<span style="color: #666666; font-style: italic;"># Change This</span>
<span style="color: #0000ff;">$site_name</span> <span style="color: #339933;">=</span> <span style="color: #ff0000;">&quot;Kulbir Saini's git trees.&quot;</span><span style="color: #339933;">;</span>
<span style="color: #666666; font-style: italic;"># Don't Change the variables below</span>
<span style="color: #0000ff;">$my_uri</span> <span style="color: #339933;">=</span> <span style="color: #ff0000;">&quot;/&quot;</span><span style="color: #339933;">;</span>
<span style="color: #0000ff;">$home_link</span> <span style="color: #339933;">=</span> <span style="color: #ff0000;">'/'</span><span style="color: #339933;">;</span>
<span style="color: #0000ff;">@stylesheets</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #ff0000;">&quot;/gitweb.css&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #0000ff;">$favicon</span> <span style="color: #339933;">=</span> <span style="color: #ff0000;">&quot;/git-favicon.png&quot;</span><span style="color: #339933;">;</span>
<span style="color: #0000ff;">$logo</span> <span style="color: #339933;">=</span> <span style="color: #ff0000;">&quot;/git-logo.png&quot;</span><span style="color: #339933;">;</span></pre></div></div>

<p><span style="text-decoration: underline;"><strong>2. Apache</strong></span></p>
<p>Open the file <em>/etc/httpd/conf.d/git.conf</em> and clear all the lines that are already there and add the following lines to it</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">  DocumentRoot <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>saini<span style="color: #000000; font-weight: bold;">/</span>domains<span style="color: #000000; font-weight: bold;">/</span>cachevideos.com<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">git</span>
  ServerName git.cachevideos.com
  ErrorLog <span style="color: #ff0000;">&quot;/home/saini/domains/cachevideos.com/logs/error_log&quot;</span>
  CustomLog <span style="color: #ff0000;">&quot;/home/saini/domains/cachevideos.com/logs/access_log&quot;</span> combined
  SetEnv  GITWEB_CONFIG  <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>gitweb.conf
  DirectoryIndex gitweb.cgi
&nbsp;
    Allow from all
    AllowOverride all
    Order allow,deny
    Options +ExecCGI
    AddHandler cgi-script .cgi
&nbsp;
      SetHandler cgi-script
&nbsp;
    RewriteEngine on
    RewriteRule ^<span style="color: #7a0874; font-weight: bold;">&#91;</span>a-zA-Z0-<span style="color: #000000;">9</span>_\-<span style="color: #7a0874; font-weight: bold;">&#93;</span>+\.git<span style="color: #000000; font-weight: bold;">/</span>?<span style="color: #7a0874; font-weight: bold;">&#40;</span>\?.<span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>?$ <span style="color: #000000; font-weight: bold;">/</span>gitweb.cgi<span style="color: #000000; font-weight: bold;">%</span><span style="color: #7a0874; font-weight: bold;">&#123;</span>REQUEST_URI<span style="color: #7a0874; font-weight: bold;">&#125;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>L,PT<span style="color: #7a0874; font-weight: bold;">&#93;</span></pre></div></div>

<p><span style="text-decoration: underline;"><strong>3. Git repository configuration</strong></span></p>
<p>Go to your git repository (<em>/home/saini/projects/videocache/</em>) and make the following changes.</p>
<p><strong>(a).</strong> Open file <em>.git/description</em> and add a short nice description for your project.</p>
<p>videocache  is  a  squid  url  rewriter plugin written in Python to facilitate youtube, metacafe, dailymotion, google, vimeo, msn soapbox,   tvuol.uol.com.br, blip.tv, break.com videos and wrzuta.pl audio caching.</p>
<p><strong>(b).</strong> Open file <em>.git/config</em> and append the following lines</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>gitweb<span style="color: #7a0874; font-weight: bold;">&#93;</span>
  owner = <span style="color: #ff0000;">&quot;Kulbir Saini&quot;</span></pre></div></div>

<h3><span style="text-decoration: underline;"><strong>Copy project&#8217;s git repository for gitweb</strong></span></h3>
<p>Copy the <em>/home/saini/projects/videocache/.git</em> directory to <em>/home/saini/domains/cachevideos.com/git/videocache.git</em></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>localhost ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># cp -r /home/saini/projects/videocache/.git /home/saini/domains/cachevideos.com/git/videocache.git</span></pre></div></div>

<h4><span style="text-decoration: underline;"><strong>Finishing Step</strong></span></h4>
<p>Restart Apache webserver.</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>localhost ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># service httpd restart</span></pre></div></div>

<p>Now you can browser a list of your projects&#8217; git repositories at <a href="http://git.cachevideos.com/" target="_blank">http://git.cachevideos.com/</a> .</p>
<h4><span style="text-decoration: underline;"><strong>Adding another project repository</strong></span></h4>
<p>Just copy the project repository&#8217;s .git directory to <em>/home/saini/domains/cachevideos.com/git/prjoect_name.git</em>. And it&#8217;ll be shown on the list.</p>
<h4><span style="text-decoration: underline;"><strong>Committing (pushing) to the repository</strong></span></h4>
<p>For committing to the repository via ssh use the following command.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># Pushing everything (Please see the username)</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>localhost videocache<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># git push --all ssh://saini@git.cachevideos.com/~saini/domains/cachevideos.com/git/videocache.git</span></pre></div></div>

<p>To update tags on the remote repository use this command.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># Pushing all tags</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>localhost videocache<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># git push --tags ssh://saini@git.cachevideos.com/~saini/domains/cachevideos.com/git/videocache.git</span></pre></div></div>

<p>Well, if you consider just the web interface and committing part for your project, thats all. But things can be fine tuned further. Below are few hacks!</p>
<p><span style="text-decoration: underline;"><strong>1. Enabling nice urls.</strong></span></p>
<p>By default the urls for browsing repository via git web are pretty crappy and difficult to remember. The <strong>RewriteRule</strong> and <strong>RewriteEngine</strong> lines in your Apache configuration file (<em>/etc/httpd/conf.d/git.conf</em>) takes care of that and produce nice and clean urls.</p>
<p>So you can browser the repository via <a href="http://git.cachevideos.com/videocache.git" target="_blank">http://git.cachevideos.com/videocache.git</a> instead of <a href="http://git.cachevideos.com/?p=videocache.git;a=summary" target="_blank">http://git.cachevideos.com/?p=videocache.git;a=summary</a>.</p>
<p><span style="text-decoration: underline;"><strong>2. Enabling remote ls (git-ls-remote or git ls-remote)</strong></span></p>
<p>This is the most trickiest part. If you try the command below, it won&#8217;t produce any output</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>localhost ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># git-ls-remote http://git.cachevideos.com/videocache.git</span></pre></div></div>

<p>You need to go to project&#8217;s repository in gitweb and then run the following command to update the server info for git.</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>localhost ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># cd /home/saini/domains/cachevideos.com/git/videocache.git/</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>localhost ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># git-update-server-info</span></pre></div></div>

<p>Try the ls-remote command now and it should succeed by producing all the branches and tags in the remote repository.</p>
<p>But there is a problem, you have to run the above command after every commit to the remote repository. To solve this issue, you can enable post-update hook for the project&#8217;s repository in gitweb. Use the following command to enable it.</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>localhost ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># cd /home/saini/domains/cachevideos.com/git/videocache.git/</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>localhost ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># chmod +x post-update</span></pre></div></div>

<p>The above command will update the server info automatically every time you commit.</p>
<p>Thats all you need to do for setting up gitweb. I hope this will be helpful.</p>
<p class="link-exchange">We are the world leaders in providing best <a href="http://www.thepass4sure.us/MB5-858-dumps.html">MB5-858</a> and  <a href="http://www.thepass4sure.biz/MB6-818.html">MB6-818</a> prep solutions. Our incredible offers for <a href="http://www.thepass4sure.me/MB7-840.html">MB7-840</a> and <a href="http://www.mypass4sure.info/70-297-dumps.html">70-297</a> exams are accessible at reasonable prices; <a href="http://www.pass4sures.biz/70-236-testking.html">70-236</a> is very rare in IT world sense.</p>
<p><a href="http://gofedora.com/">Fedora Tutorials</a> by <a href="http://saini.co.in/">Kulbir Saini</a>.</p>
<div class="addthis_toolbox addthis_default_style " addthis:url='http://gofedora.com/how-to-install-configure-gitweb/' addthis:title='How To: Install and Configure GitWeb '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_button_google_plusone" g:plusone:size="medium"></a><a class="addthis_counter addthis_pill_style"></a></div>]]></content:encoded>
			<wfw:commentRss>http://gofedora.com/how-to-install-configure-gitweb/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>How To: Install FFMPEG and FFMPEG-PHP</title>
		<link>http://gofedora.com/how-to-install-ffmpeg-ffmpeg-php/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=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> by <a href="http://saini.co.in/">Kulbir Saini</a>.</p>
]]></description>
			<content:encoded><![CDATA[<div class="addthis_toolbox addthis_default_style " addthis:url='http://gofedora.com/how-to-install-ffmpeg-ffmpeg-php/' addthis:title='How To: Install FFMPEG and FFMPEG-PHP '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_button_google_plusone" g:plusone:size="medium"></a><a class="addthis_counter addthis_pill_style"></a></div><p></p><p>I was randomly browsing the internet and reading about making a website look better and I encountered ffmpeg-php. <a href="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 href="http://ffmpeg-php.sourceforge.net/" target="_blank">ffmpeg-php</a> is an extension for <a href="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 href="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 href="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 href="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.</p>
<p><a href="http://gofedora.com/">Fedora Tutorials</a> by <a href="http://saini.co.in/">Kulbir Saini</a>.</p>
<div class="addthis_toolbox addthis_default_style " addthis:url='http://gofedora.com/how-to-install-ffmpeg-ffmpeg-php/' addthis:title='How To: Install FFMPEG and FFMPEG-PHP '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_button_google_plusone" g:plusone:size="medium"></a><a class="addthis_counter addthis_pill_style"></a></div>]]></content:encoded>
			<wfw:commentRss>http://gofedora.com/how-to-install-ffmpeg-ffmpeg-php/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>How To: Install PHP-Ming</title>
		<link>http://gofedora.com/how-to-install-phpming/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=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> by <a href="http://saini.co.in/">Kulbir Saini</a>.</p>
]]></description>
			<content:encoded><![CDATA[<div class="addthis_toolbox addthis_default_style " addthis:url='http://gofedora.com/how-to-install-phpming/' addthis:title='How To: Install PHP-Ming '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_button_google_plusone" g:plusone:size="medium"></a><a class="addthis_counter addthis_pill_style"></a></div><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 href="http://www.libming.net/" target="_blank">http://www.libming.net/</a><br />
PHP : <a href="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 href="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 href="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 href="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.</p>
<p><a href="http://gofedora.com/">Fedora Tutorials</a> by <a href="http://saini.co.in/">Kulbir Saini</a>.</p>
<div class="addthis_toolbox addthis_default_style " addthis:url='http://gofedora.com/how-to-install-phpming/' addthis:title='How To: Install PHP-Ming '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_button_google_plusone" g:plusone:size="medium"></a><a class="addthis_counter addthis_pill_style"></a></div>]]></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/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=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> by <a href="http://saini.co.in/">Kulbir Saini</a>.</p>
]]></description>
			<content:encoded><![CDATA[<div class="addthis_toolbox addthis_default_style " addthis:url='http://gofedora.com/how-to-install-wordpress-lamp/' addthis:title='How To: Install WordPress on LAMP '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_button_google_plusone" g:plusone:size="medium"></a><a class="addthis_counter addthis_pill_style"></a></div><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 href="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.</p>
<p><a href="http://gofedora.com/">Fedora Tutorials</a> by <a href="http://saini.co.in/">Kulbir Saini</a>.</p>
<div class="addthis_toolbox addthis_default_style " addthis:url='http://gofedora.com/how-to-install-wordpress-lamp/' addthis:title='How To: Install WordPress on LAMP '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_button_google_plusone" g:plusone:size="medium"></a><a class="addthis_counter addthis_pill_style"></a></div>]]></content:encoded>
			<wfw:commentRss>http://gofedora.com/how-to-install-wordpress-lamp/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

