<?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>Ring Of Blogs &#187; WPMU tips</title>
	<atom:link href="http://www.ringofblogs.com/category/wpmu-tips/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ringofblogs.com</link>
	<description>Blogging, WordPress MU, monetization, tips, how to and reviews</description>
	<lastBuildDate>Sun, 21 Feb 2010 11:23:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>WordPress on Amazon RDS</title>
		<link>http://www.ringofblogs.com/2009/10/29/wordpress-on-amazon-rds/</link>
		<comments>http://www.ringofblogs.com/2009/10/29/wordpress-on-amazon-rds/#comments</comments>
		<pubDate>Thu, 29 Oct 2009 05:29:18 +0000</pubDate>
		<dc:creator>Elad</dc:creator>
				<category><![CDATA[Hosting & domains]]></category>
		<category><![CDATA[WPMU tips]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Wordpress MU]]></category>
		<category><![CDATA[rds]]></category>
		<category><![CDATA[s3]]></category>

		<guid isPermaLink="false">http://www.ringofblogs.com/?p=284</guid>
		<description><![CDATA[Every WordPress blog must have a database to store all its data (posts, comments, settings and so on). WordPress uses the MySQL database. Usually the database is stored locally ob the web server of the blog. In some cases one would want to have the database installed elsewhere for many reasons (loads, capacity, backups). This [...]]]></description>
			<content:encoded><![CDATA[<p>Every <a href="http://wordpress.org/">WordPress</a> blog must have a database to store all its data (posts, comments, settings and so on). WordPress uses the <a href="http://dev.mysql.com/">MySQL</a> database. Usually the database is stored locally ob the web server of the blog. In some cases one would want to have the database installed elsewhere for many reasons (loads, capacity, backups). This is where <a title="Amazon Relational Database Service" href="http://aws.amazon.com/rds/">Amazon RDS</a> kicks in.</p>
<p><strong>What is Amazon RDS?</strong></p>
<p>Amazon Relational Database Service (Amazon <span>RDS</span>) is a web service that makes it easy to set up, operate, and scale a relational database in the cloud. That means that you can have your MySQL database operate on Amazon&#8217;s cloud computers located all over the world. Just like they say:</p>
<blockquote><p>Amazon <span>RDS</span> gives you access to the full capabilities of a familiar MySQL database. This means the code, applications, and tools you already use today with your existing MySQL databases work seamlessly with Amazon <span>RDS</span>.  Amazon <span>RDS</span> automatically patches the database software and backs up your database, storing the backups for a user-defined retention period. You also benefit from the flexibility of being able to scale the compute resources or storage capacity associated with your relational database instance via a single <span>API</span> call.</p></blockquote>
<p>According to Amazon there is no need to make any changes to your application in order to use Amazon RDS. <strong>Well, at least for WordPress and WordPress-MU they are right.</strong></p>
<p>A standard WordPress installation, using Amazon RDS, is located at <a title="WordPress on Amazon RDS" href="http://www.wordpressrds.com">WordPressRDS.com</a> and a WordPress-MU (the kind of WordPress that <a href="http://wordpress.com">wordpress.com</a> uses) is located at <a title="WordPress MU on Amazon RDS" href="http://mu.wordpressrds.com">mu.WordPressRDS.com</a>. I will keep this installation alive for a few days and then take it down since the use of Amazon RDS is not free.</p>
<p style="text-align: left;">If you would like to help me finance this demo please consider a <strong><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&amp;business=elad.salomons@gmail.com&amp;currency_code=USD&amp;amount=&amp;return=&amp;item_name=Help finance this demo of WordPress and Amazon RDS integration">donation via PayPal</a></strong>.</p>
<p>Amazon RDS is charged by the hour + storage + I/O requests and in and out data transfer (see full <a title="Amazon RDS pricing" href="http://aws.amazon.com/rds/#pricing">pricing</a>). The smallest database instance you can get is with 1.7GB RAM with the cost of 0.11$ per hour. If you run a full month it sums up to about 82$/month. The next level is a huge jump to a large instance of 7.5GB RAM with the cost of 0.44$ per hour (~330$/month). However, for those who are seeking a multi-db solution for WordPress MU may consider testing two or three small instances.</p>
<p><strong>So lets get started!</strong></p>
<p>The first thing you will have to do is setup an Amazon RDS instance. If you don&#8217;t have an account with Amazon you should <a href="https://aws-portal.amazon.com/gp/aws/developer/registration/index.html">creat an AWS account</a>. Once you have an account you may <a href="http://aws.amazon.com/rds/">signup for Amazon RDS</a>.</p>
<p>To set up the RDS instance read some of the <a href="http://aws.amazon.com/rds/#resources">resources</a> available. If you use WordPress you probably would start with the <a href="http://developer.amazonwebservices.com/connect/entry.jspa?externalID=2945&amp;categoryID=293">PHP sample code</a>. I may give specific code samples at a later time but you will have to use the following APIs (in this order):</p>
<ol>
<li><a href="http://docs.amazonwebservices.com/AmazonRDS/latest/APIReference/index.html?APICreateDBSecurityGroup.html">CreateDBSecurityGroup</a> &#8211; setup a database security group.</li>
<li><a href="http://docs.amazonwebservices.com/AmazonRDS/latest/APIReference/index.html?APIAuthorizeDBSecurityGroupIngress.html">AuthorizeDBSecurityGroupIngress</a> &#8211; authorize access from your servers IP for the above group.</li>
<li><a href="http://docs.amazonwebservices.com/AmazonRDS/latest/APIReference/index.html?APICreateDBInstance.html">CreateDBInstance</a> &#8211; set up the instance and first database (including root user, password and database name).</li>
</ol>
<p>If all goes well you may check the instance using the <a href="http://docs.amazonwebservices.com/AmazonRDS/latest/APIReference/index.html?APIDescribeDBInstances.html"><em>DescribeDBInstances API</em></a> call and look for the &#8216;<em>Status</em>&#8216; field making sure it is in &#8216;<em>Available</em>&#8216; state. In the results of this call you will also see the unique host name of the database. Amazon calls it &#8216;<em>endpoint address</em>&#8216;. If you got it your are done!</p>
<p><strong>Now setup WordPress (or WordPress Mu)</strong></p>
<p>The final step is to run a regular setup of WordPress (or WordPress MU). You are probably familiar with the setup screen (click on the image to enlarge):</p>
<p><a href="http://www.ringofblogs.com/wp-content/uploads/2009/10/wp-rds-install-3.PNG" rel="lightbox[284]"><img class="aligncenter size-medium wp-image-304" title="wp-rds-install-3" src="http://www.ringofblogs.com/wp-content/uploads/2009/10/wp-rds-install-3-300x207.PNG" alt="wp-rds-install-3" width="300" height="207" /></a></p>
<p>See the &#8216;<strong>DataBase Host</strong>&#8216; field? That is where the &#8216;<em>endpoint address</em>&#8216; goes. I guess this is one of those other 1% cases. Now just continue the installation as usual.</p>
<p>A WordPress MU installation is just the same:</p>
<p><a href="http://www.ringofblogs.com/wp-content/uploads/2009/10/wpmu-rds-install-1.PNG" rel="lightbox[284]"><img class="aligncenter size-full wp-image-308" title="wpmu-rds-install-1" src="http://www.ringofblogs.com/wp-content/uploads/2009/10/wpmu-rds-install-1.PNG" alt="wpmu-rds-install-1" width="474" height="218" /></a></p>
<p>I have installed <a title="WordPress" href="http://www.wordpress.org/">WordPress</a> and <a href="http://mu.wordpress.org/">WordPress-MU</a> on <a title="Amazon Relational Database Service" href="http://aws.amazon.com/rds/">Amazon RDS</a> at <a title="WordPress on Amazon RDS" href="http://www.wordpressrds.com/" target="_blank">WordPressRDS.com</a>. Check it out and please consider a donation via PayPal to keep these installation running.</p>
<p style="text-align: center;"><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&amp;business=elad.salomons@gmail.com&amp;currency_code=USD&amp;amount=&amp;return=&amp;item_name=Help finance this demo of WordPress and Amazon RDS integration"><img class="aligncenter size-full wp-image-313" title="btn_donate_LG" src="http://www.ringofblogs.com/wp-content/uploads/2009/10/btn_donate_LG.gif" alt="btn_donate_LG" width="92" height="26" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ringofblogs.com/2009/10/29/wordpress-on-amazon-rds/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Using WP-Super Cache plugin with WordPress MU</title>
		<link>http://www.ringofblogs.com/2008/01/17/using-wp-super-cache-plugin-with-wordpress-mu/</link>
		<comments>http://www.ringofblogs.com/2008/01/17/using-wp-super-cache-plugin-with-wordpress-mu/#comments</comments>
		<pubDate>Thu, 17 Jan 2008 20:07:04 +0000</pubDate>
		<dc:creator>Elad</dc:creator>
				<category><![CDATA[WPMU tips]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Wordpress MU]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://www.ringofblogs.com/2008/01/17/using-wp-super-cache-plugin-with-wordpress-mu/</guid>
		<description><![CDATA[Using the WP-Super Cache plugin with WordPress-MU is very simple. WP Super Cache is a static caching plugin for WordPress. It generates html files that are served directly by Apache without processing comparatively heavy PHP scripts. By using this plugin you will speed up your WordPress blog significantly. Instructions on how to install the plugin [...]]]></description>
			<content:encoded><![CDATA[<p>Using the <a href="http://ocaoimh.ie/wp-super-cache/">WP-Super Cache plugin</a> with WordPress-MU is very simple.</p>
<blockquote><p>WP Super Cache is a static caching plugin for WordPress. It generates html files that are served directly by Apache without processing comparatively heavy PHP scripts. By using this plugin you will speed up your WordPress blog significantly.</p></blockquote>
<p>Instructions on how to install the plugin can be found in the readme file that comes with the plugin. As noted in the file, installing the plugin for WordPress-Mu differs just a bit from the regular WordPress install:</p>
<blockquote><p>If you are using WordPress MU you will need to install this in &#8216;wp-content/mu-plugins/wp-super-cache/&#8217; and the file wp-cache.php must be copied into the mu-plugins directory.</p></blockquote>
<p>But there is a small problem with the plugin that I find very annoying. Although the cache is cleared with every post update and every theme change, when a user updates his blog&#8217;s widget settings the cache is not cleared and the user will not have a clue what is going on. This will result in a flood of support tickets.</p>
<p>I have been trying to solve this issue without changing any core files but came short. Finally I edited the wp-admin/widgets.php file and added just after <a href="http://trac.mu.wordpress.org/browser/tags/1.3/wp-admin/widgets.php#L266">line 266</a> the following code:</p>
<pre name="code" class="php" cols="60" rows="10">
// Added to clear WP-Super Cache after the widgets are updated.
// Code by Elad Salomons http://www.ringofblogs.com
if(function_exists('wp_cache_no_postid')) {
wp_cache_no_postid(0);
}
</pre>
<p>If someone finds a way to use a plugin for this please let me know. By the way, this should work just the same for the regular WordPress.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ringofblogs.com/2008/01/17/using-wp-super-cache-plugin-with-wordpress-mu/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>WPMU new blog settings plugin</title>
		<link>http://www.ringofblogs.com/2007/12/21/wpmu-new-blog-settings-plugin/</link>
		<comments>http://www.ringofblogs.com/2007/12/21/wpmu-new-blog-settings-plugin/#comments</comments>
		<pubDate>Fri, 21 Dec 2007 13:56:12 +0000</pubDate>
		<dc:creator>Elad</dc:creator>
				<category><![CDATA[WPMU tips]]></category>
		<category><![CDATA[Wordpress MU]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://www.ringofblogs.com/2007/12/21/wpmu-new-blog-settings-plugin/</guid>
		<description><![CDATA[This plugin was updated to work with version 2.6 &#8211; see here. In a new forum thread this week a WordPress MU user asked an old question: how to set the default timezone offset for new blogs? The solution proposed was to edit the wp-admin/includes/schema.php file (line 275). This of course should work but it [...]]]></description>
			<content:encoded><![CDATA[<p>This plugin was updated to work with version 2.6 &#8211; see <a href="http://www.ringofblogs.com/2008/07/31/wpmu-new-blog-settings-plugin-updated/">here</a>.</p>
<p>In a <a href="http://mu.wordpress.org/forums/topic.php?id=7097&amp;page">new</a> forum thread this week a WordPress MU user asked an <a href="http://mu.wordpress.org/forums/topic.php?id=4034&amp;page">old</a> question: <strong>how to set the default timezone offset for new blogs</strong>? The solution proposed was to edit the <a href="http://trac.mu.wordpress.org/browser/tags/1.3/wp-admin/includes/schema.php#L275">wp-admin/includes/schema.php</a> file (line 275). This of course should work but it involves in changing wpmu core files, an option I think is not the best one.</p>
<p>The option I propose is to set the default timezone offset option, and other options as well, using a plugin. This is really simple by using the <strong><em>wpmu_new_blog</em></strong> hook. The entire thing is less than 10 lines of code:</p>
<pre name="code" class="php" cols="60" rows="10">
&lt;?php
function new_blogs_setting( $blog_id )  {
//set your options here:
update_option('gmt_offset', 2);
// stop editing here
return;
}
add_action('wpmu_new_blog', 'new_blogs_setting');
?&gt;
</pre>
<p>The plugin can be downloaded from <a href="http://www.ringofblogs.com/wp-content/uploads/2007/12/wpmu_new_blog.zip">here</a> (<a title="wpmu_new_blog.zip" href="http://www.ringofblogs.com/wp-content/uploads/2007/12/wpmu_new_blog.zip">wpmu_new_blog.zip</a>) and needs to be droped in the <em>mu-plugins</em> directory. One can add any other default option settings. In the case were a change of an option for existing blogs is required, the <a href="http://www.ringofblogs.com/2007/09/05/a-script-to-set-global-options-for-all-wpmu-blogs/">script to set global options for all WPMU blogs</a> may be used.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ringofblogs.com/2007/12/21/wpmu-new-blog-settings-plugin/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>Favicon plugin for WordPress-MU</title>
		<link>http://www.ringofblogs.com/2007/11/07/favicon-plugin-for-wordpress-mu/</link>
		<comments>http://www.ringofblogs.com/2007/11/07/favicon-plugin-for-wordpress-mu/#comments</comments>
		<pubDate>Wed, 07 Nov 2007 20:21:24 +0000</pubDate>
		<dc:creator>Elad</dc:creator>
				<category><![CDATA[WPMU tips]]></category>
		<category><![CDATA[Wordpress MU]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://www.ringofblogs.com/2007/11/07/favicon-plugin-for-wordpress-mu/</guid>
		<description><![CDATA[After a little testing it seems that the Favicon Manager WordPress Plugin from Digital Ramble works just fine with WordPress-MU. You are probably familiar with the default favicon that comes with WordPress-MU &#8211; . This plugin allows each user to set his own favicon via the Options page.]]></description>
			<content:encoded><![CDATA[<p>After a little testing it seems that the <a href="http://www.digitalramble.com/favicon-manager-wordpress-plugin/">Favicon Manager WordPress Plugin</a> from <a href="http://www.digitalramble.com">Digital Ramble</a> works just fine with WordPress-MU.</p>
<p>You are probably familiar with the default <a href="http://en.wikipedia.org/wiki/Favicon">favicon</a> that comes with WordPress-MU &#8211; <img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="16" alt="favicon" src="http://www.ringofblogs.com/wp-content/uploads/2007/11/favicon.png" width="16" border="0" />. This plugin allows each user to set his own favicon via the <em>Options</em> page.</p>
<p><a href="http://www.ringofblogs.com/wp-content/uploads/2007/11/favicon1.png" rel="lightbox[143]"><img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="328" alt="favicon" src="http://www.ringofblogs.com/wp-content/uploads/2007/11/favicon-thumb.png" width="434" border="0" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ringofblogs.com/2007/11/07/favicon-plugin-for-wordpress-mu/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Use one Themes Directory for Multiple of WordPress and WordPress-MU</title>
		<link>http://www.ringofblogs.com/2007/10/17/use-one-themes-directory-for-multiple-of-wordpress-and-wordpress-mu/</link>
		<comments>http://www.ringofblogs.com/2007/10/17/use-one-themes-directory-for-multiple-of-wordpress-and-wordpress-mu/#comments</comments>
		<pubDate>Wed, 17 Oct 2007 19:33:01 +0000</pubDate>
		<dc:creator>Elad</dc:creator>
				<category><![CDATA[WPMU tips]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Wordpress MU]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://www.ringofblogs.com/2007/10/17/use-one-themes-directory-for-multiple-of-wordpress-and-wordpress-mu/</guid>
		<description><![CDATA[If you are running several installs of WordPress and\or WordPress-MU and want to have only one themes directory, the common-themes plugin might be the answer for you. This plugin by zappoman allows you to set an absolute or relative path to a common themes directory.]]></description>
			<content:encoded><![CDATA[<p>If you are running several installs of WordPress and\or WordPress-MU and want to have only one themes directory, the <a href="http://heftagaub.wordpress.com/2007/05/27/common-themes-directory-for-multiple-instances-of-wordpress/"><strong><em>common-themes</em></strong></a> plugin might be the answer for you.</p>
<p>This plugin by <a href="http://heftagaub.wordpress.com">zappoman</a> allows you to set an absolute or relative path to a common themes directory.</p>
<p><img src="http://www.ringofblogs.com/wp-content/uploads/2007/10/common-themes.JPG" title="common-themes.JPG" alt="common-themes.JPG" border="1" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ringofblogs.com/2007/10/17/use-one-themes-directory-for-multiple-of-wordpress-and-wordpress-mu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
