<?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>[ themattreid ] &#187; NoSQL</title>
	<atom:link href="http://themattreid.com/wordpress/category/nosql/feed/" rel="self" type="application/rss+xml" />
	<link>http://themattreid.com/wordpress</link>
	<description>MySQL DBA &#124; Linux&#039;er</description>
	<lastBuildDate>Tue, 24 Apr 2012 01:21:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>How to install MongoDB on CentOS 5.4 / RHEL5 and interface with PHP 5</title>
		<link>http://themattreid.com/wordpress/2010/05/11/how-to-install-mongodb-on-centos-5-4-rhel5-and-interface-with-php-5/</link>
		<comments>http://themattreid.com/wordpress/2010/05/11/how-to-install-mongodb-on-centos-5-4-rhel5-and-interface-with-php-5/#comments</comments>
		<pubDate>Tue, 11 May 2010 20:53:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[NoSQL]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[denormalized]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mongodb]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[normalization]]></category>
		<category><![CDATA[oodb]]></category>
		<category><![CDATA[redhat]]></category>
		<category><![CDATA[relational]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://themattreid.com/wordpress/?p=310</guid>
		<description><![CDATA[<p>If you&#8217;ve been reading up on the various NoSQL offerings and have wanted to try out one but don&#8217;t know how to get started, this is one of the easiest ways. I chose MongoDB for this example because I&#8217;m going to start using it for a project that needs features that MySQL isn&#8217;t as fast at: namely denormalized data with billions of rows. MongoDB has plenty of drivers for other scripting and high-level languages but &#8230; <a href="http://themattreid.com/wordpress/2010/05/11/how-to-install-mongodb-on-centos-5-4-rhel5-and-interface-with-php-5/" class="read_more">Read the rest</a></p>]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;ve been reading up on the various NoSQL offerings and have wanted to try out one but don&#8217;t know how to get started, this is one of the easiest ways. I chose MongoDB for this example because I&#8217;m going to start using it for a project that needs features that MySQL isn&#8217;t as fast at: namely denormalized data with billions of rows. MongoDB has plenty of drivers for other scripting and high-level languages but I&#8217;ll focus on the PHP driver today. If there is interest I can do a write up on Python usage later. This example is limited to CentOS, Fedora, and Redhat 5 servers that use the yum package management system. For more information you can reference their download page: <a title="http://www.mongodb.org/display/DOCS/Downloads" href="http://www.mongodb.org/display/DOCS/Downloads" target="_blank">http://www.mongodb.org/display/DOCS/Downloads</a></p>
<p>First install the prerequisites:</p>
<ul>
<li>sudo yum install gcc php php-pear</li>
</ul>
<p>Then install the mogo php extension via pecl and add the extension to the ini file. (Increase the php.ini memory_limit to 32M if necessary). Then we restart apache to have the extension loaded. You can check your extensions via the phpinfo(); command in php.</p>
<ul>
<li>sudo pecl install mongo</li>
<li>sudo echo &#8220;extension=mongo.so&#8221; &gt;&gt; /etc/php.ini</li>
<li>sudo /etc/init.d/httpd restart</li>
</ul>
<p>For the last part we add the yum repo and get the actual MongoDB server and client installed</p>
<ul>
<li>cd /etc/yum.repos.d</li>
<li>sudo emacs mongodb.10gen.repo</li>
<li>paste in the following. This uses the repo for 64bit servers. See their download page for other architecture repo settings.</li>
<p><code>[10gen]<br />
name=10gen Repository<br />
baseurl=http://downloads.mongodb.org/distros/centos/5.4/os/x86_64/<br />
gpgcheck=0</code></p>
<li>sudo yum install mongo-stable-server</li>
<li>sudo /etc/init.d/monod start</li>
<li>chkconfig mongod on</li>
</ul>
<p>That&#8217;s it, you&#8217;re ready to start using Mongo! You can check the logfile to make sure things are running smoothly: &#8220;sudo cat /var/log/mongo/mongod.log&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://themattreid.com/wordpress/2010/05/11/how-to-install-mongodb-on-centos-5-4-rhel5-and-interface-with-php-5/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

