<?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>Point 47 &#187; Wordpress</title>
	<atom:link href="http://point47.com/journal/category/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://point47.com/journal</link>
	<description>CSS, PHP and ActionScript 3 tutorials</description>
	<lastBuildDate>Tue, 06 Jul 2010 19:11:55 +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>How To Setup WordPress MU with Domain Mapping</title>
		<link>http://point47.com/journal/2009/12/how-to-setup-wordpress-mu-with-domain-mapping/</link>
		<comments>http://point47.com/journal/2009/12/how-to-setup-wordpress-mu-with-domain-mapping/#comments</comments>
		<pubDate>Thu, 17 Dec 2009 14:41:07 +0000</pubDate>
		<dc:creator>Sorin</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://point47.com/journal/?p=61</guid>
		<description><![CDATA[NOTE! Since WordPress 3.0 this post is outdated. In the new WordPress 3.0 the MU wordpress is already integrated. Here is explained how I made my WordPress MU install to work with domain mapping. There are some tutorials out there but they are plain crap and very poorly explained. And the explanations for the domain]]></description>
			<content:encoded><![CDATA[<p><strong>NOTE! Since WordPress 3.0 this post is outdated. In the new WordPress 3.0 the MU wordpress is already integrated.</strong></p>
<p>Here is explained how I made my WordPress MU install to work with domain mapping. There are some tutorials out there but they are plain crap and very poorly explained. And the explanations for the domain mapping plugins are even worse. But I managed to make it work in around two days with a lot of testing and trial and error.<br />
These are the steps that I followed. Well.. not really.. but in the end these would have been the steps that I should have followed.</p>
<p><em><strong>NOTE! This tutorial is based on the fact that you know how to install and configure a simple WordPress version because I will not offer detailed info about database creation and ftp uploading.</strong></em></p>
<h4>What we want to do here?</h4>
<p>- We want to have WordPress MU so we can create multiple WordPress blogs but with one main Administration area.<br />
- Create as many sub-domains as we want.<br />
- Map those sub-domains to other domains. (<em>subdomain.master-example.com</em> should be accessible from <em>addon-example.com</em> )</p>
<h4>I. Configure domains</h4>
<ul>
<li> First you need some domains, for this tutorial at least 2. One to be the master domain which we will call here <em>master-example.com</em> and the other domain that we will map to the blog created as a subdomain on master-example.com whitch we will call <em>addon-example.com</em>.</li>
<li>Next you need hosting witch offers <strong>WHM with CPanel</strong>. WHM not really needed I think. I added the domains and parked them from WHM but that can be done in CPanel also.</li>
<li>After you have the main domain configured on a hosting and you have acces to the CPanel you need to go to &#8220;<strong>Subdomains</strong>&#8221; and set the subdomains on a wildcard(<strong>*</strong>). So where it says &#8220;<strong>Create a Subdomain</strong>&#8221; enter <strong>*</strong> , check if your master domain is selected in the next drop down and in Document root is &#8220;<em>public_html/</em>&#8221; and click Create. </li>
<li>In the list of sub-domains now should be:<strong> &#8220;*  	.master-example.com  	Home/public_html  not redirected&#8221;</strong> . What this does it lets WordPress MU create any kind of sub-domain without first adding it manually in the CPanel.</li>
<li> Now we need to add the <em>addon-example.com</em> domain. Go to: &#8220;<strong>Parked Domains</strong>&#8221; and enter <em>addon-example.com</em> in the box and press &#8220;<strong>Add Domain</strong>&#8220;. This should park <em>addon-example.com</em> on top of<em>master-example.com</em>. Until I used the Park domain option my domain mapping in WordPress didn&#8217;t work.</li>
<li>Now go to <strong>&#8220;Simple DNS Zone Editor&#8221;</strong> and here you have to set an A record for <em>addon-example.com</em>. So select the addon domain <em>addon-example.com</em> and where it says <strong>Add an A Record </strong> in the <strong>&#8220;Name:&#8221;</strong> field write <strong>*.addon-example.com</strong>  and on the <strong>&#8220;Address&#8221; </strong>field put the <strong>master domain IP</strong> (you should find it in the left sidebar in CPanel.. for example: <strong>&#8220;Shared Ip Address: 127.0.0.20&#8243; </strong>.). Click <strong>&#8220;Add A Record&#8221;. </strong></li>
<li>Great. Now you are ready to install WordPress MU!</li>
</ul>
<p><strong>Note!</strong><em> I made all of this in the WHM administration but I saw those modifications in CPanel also and I checked if they correspond and it seems that it can be done from CPanel too. For WHM just use &#8220;Park a Domain&#8221; and &#8220;Edit DNS Zone&#8221; buttons and make the above modifications.</em></p>
<h4>II. Install WordPress MU.</h4>
<ul>
<li>Create a database and a user in CPanel .. or whatever.</li>
<li>Download the WordPress MU sources from <a href="http://mu.wordpress.org/download/">here</a> </li>
<li>Copy the files to your main domain. I uploaded them to my domain root but they say it can be installed to a folder or a sub-domain too.</li>
<li>Now navigate to your domain (master-example.com) and you should see the installation page. There are some errors for sure and the usual error is that you need to make some folder writable by WordPress. That means to give those folders 777 permission and you&#8217;ll have to reset those to 755 after successful install. </li>
<li>Just follow the steps and be careful to specify where it says Blog addresses <strong>to use sub-domains</strong> and at <strong>Server Address your domain without www or http://</strong></li>
<li>And, this is very important, after install go to Admin menu (upper right corner) in the WordPress admin interface and <strong>change your password</strong> to something you can remember. And don&#8217;t forget to change the folder permissions back to 755</li>
<li>Now is the time to see if it works. Go to Site <strong>Admin -> Blogs</strong> and add a new blog. Let&#8217;s say <em>subdomain.master-example.com</em>. If the email address is different from the one you used at install a new user will be created when you add a new blog. And this happens every time you use a different email address.</li>
<li>OK. Now navigate to: <strong>subdomain.master-example.com</strong> (or whatever you created) and you should see your blog. Congrats! Now you have a working installation of WordPress MU. If it doesn&#8217;t work repeat the above steps with more attention or if you just registered your domains wait a few hours for DNS registrations.</li>
</ul>
<h4>III. Install the Domain Mapping plugin and map a domain</h4>
<ul>
<li>First download the plugin <a href="http://wordpress.org/extend/plugins/wordpress-mu-domain-mapping/">WordPress MU Domain Mapping</a> (http://wordpress.org/extend/plugins/wordpress-mu-domain-mapping/). I used version 0.5. <strong>Many many thanks to those guys for creating this awesome plugin.</strong></li>
<li>Copy <strong>sunrise.php</strong> into wp-content/</li>
<li>Copy <strong>domain_mapping.php</strong> into wp-content/mu-plugins/</li>
<li>Edit <strong>wp-config.php</strong> and uncomment the SUNRISE definition line: <strong>define( &#8216;SUNRISE&#8217;, &#8216;on&#8217; );</strong></li>
<li>Now go to Plugins and activate the mapping plugin for the main domain.</li>
<li>After you done those login as the MU admin and go to <strong>Site Admin->Domain Mapping</strong> and set the server IP address. (you should know this from when you added the A record)
<li>Now this is the tricky part on what I wasted a lot of hours. Go to <strong>Site Admin -> Options</strong> and scroll down at the bottom. And after where it says <strong>&#8220;Site Wide Settings&#8221;</strong> click on the check box for the Plugins and click Update Options. This activates the plugins for the sub-domains. If you don&#8217;t do this you can&#8217;t map domains to the specific sub-domain because you will not see the plugin on your sub-domains admin area. (First I actually edited this directly in the database until I realized this.) </li>
<li>Now go to <strong>Site admin -> Blogs</strong> and when you hover over the added sub-domain some link will appear. Click on <strong>&#8220;Backend&#8221;</strong>. This will redirect you to that sub-domain WordPress administration panel.</li>
<li>While in this panel go to <strong>Plugins</strong> and you should see the mapping plugin. Activate it.</li>
<li>And now go to <strong>Tools -> Domain mapping</strong>. And here is the part that we worked so hard to get to. Under <strong>&#8220;Add new domain&#8221;</strong> write the domain that you want to map to this sub-domain.</li>
<li>After you clicked <strong>&#8220;Add&#8221;</strong> go to the domain that you wanted to map (<em>addon-example.com</em>) and you will see the contents of <em>subdomain.master-example.com</em></li>
</ul>
<p>Kind of a long tutorial but hopefully I didn&#8217;t forgot anything in the process.<br />
Let me know in the comments if it helped you or if you still got problems with the install flow.</p>
<p>Cheers!</p>
<img src="http://point47.com/journal/?ak_action=api_record_view&id=61&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://point47.com/journal/2009/12/how-to-setup-wordpress-mu-with-domain-mapping/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>How to block spamm comments in WordPress</title>
		<link>http://point47.com/journal/2009/04/how-to-block-spamm-comments-in-wordpress/</link>
		<comments>http://point47.com/journal/2009/04/how-to-block-spamm-comments-in-wordpress/#comments</comments>
		<pubDate>Wed, 22 Apr 2009 10:06:42 +0000</pubDate>
		<dc:creator>Sorin</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://point47.com/journal/?p=43</guid>
		<description><![CDATA[1. Activate Akismet 2. Add this in the .htaccess file. 123456RewriteEngine On RewriteCond %{REQUEST_METHOD} POST RewriteCond %{REQUEST_URI} .wp-comments-post\.php* RewriteCond %{HTTP_REFERER} !.*yourblog.com.* [OR] RewriteCond %{HTTP_USER_AGENT} ^$ RewriteRule (.*) ^http://%{REMOTE_ADDR}/$ [R=301,L] Replace yourblog.com with your blog address. It block all comments from direct access to wp-comments-post.php. 3. Add this to the .htaccess file also. Block all spammer]]></description>
			<content:encoded><![CDATA[<p>1. Activate Akismet<br />
2. Add this in the .htaccess file.</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:610px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">RewriteEngine On<br />
RewriteCond %{REQUEST_METHOD} POST<br />
RewriteCond %{REQUEST_URI} .wp-comments-post\.php*<br />
RewriteCond %{HTTP_REFERER} !.*yourblog.com.* [OR]<br />
RewriteCond %{HTTP_USER_AGENT} ^$<br />
RewriteRule (.*) ^http://%{REMOTE_ADDR}/$ [R=301,L]</div></td></tr></tbody></table></div>
<p>Replace <strong>yourblog.com</strong> with your blog address.<br />
It block all comments from direct access to wp-comments-post.php.</p>
<p>3. Add this to the .htaccess file also.<br />
Block all spammer IP&#8217;s one by one:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:610px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;Limit GET POST&gt;<br />
order allow,deny<br />
deny from 78.133.218.68<br />
deny from 219.159.67.187<br />
deny from 77.41.123.182<br />
allow from all<br />
&lt;/Limit&gt;</div></td></tr></tbody></table></div>
<p>Just add more IP to this list.</p>
<img src="http://point47.com/journal/?ak_action=api_record_view&id=43&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://point47.com/journal/2009/04/how-to-block-spamm-comments-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cute Bubbles &#8211; WordPress Theme &#8211; Updated</title>
		<link>http://point47.com/journal/2009/01/cute-bubbles-wordpress-theme/</link>
		<comments>http://point47.com/journal/2009/01/cute-bubbles-wordpress-theme/#comments</comments>
		<pubDate>Tue, 27 Jan 2009 09:37:19 +0000</pubDate>
		<dc:creator>Sorin</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://point47.com/journal/?p=29</guid>
		<description><![CDATA[Version 1.0 is live and it has full IE6 support, improved header graphic and some more tweaks here and there. You can download the theme from here Cute Bubbles WordPress Theme. Get some more premium templates from here:]]></description>
			<content:encoded><![CDATA[<p>Version 1.0 is live and it has full IE6 support, improved header graphic and some more tweaks here and there. </p>
<p><img src="http://wp-themes.com/wp-content/themes/cute-bubbles/screenshot.png" border="0" alt="cute bubbes wordpress theme" /></p>
<p>You can download the theme from here <a href="http://wp-themes.com/wp-content/themes/cute-bubbles/screenshot.png">Cute Bubbles WordPress Theme</a>.</p>
<p>Get some more premium templates from here:<br />
<a href="http://themeforest.net?ref=forapathy" title="wordpress themes, site templates, psd" target="_blank"><img src="http://envato.s3.amazonaws.com/referrer_adverts/tf_728x90_v2.gif" alt="wordpress themes, site templates" /></a></p>
<img src="http://point47.com/journal/?ak_action=api_record_view&id=29&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://point47.com/journal/2009/01/cute-bubbles-wordpress-theme/feed/</wfw:commentRss>
		<slash:comments>28</slash:comments>
		</item>
	</channel>
</rss>
