<?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>Contra Science</title>
	<atom:link href="http://contra.net.au/feed/" rel="self" type="application/rss+xml" />
	<link>http://contra.net.au</link>
	<description></description>
	<lastBuildDate>Mon, 05 Dec 2011 06:05:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Crap Punk Media Center</title>
		<link>http://contra.net.au/2011/12/05/crap-punk-media-center/</link>
		<comments>http://contra.net.au/2011/12/05/crap-punk-media-center/#comments</comments>
		<pubDate>Mon, 05 Dec 2011 06:04:17 +0000</pubDate>
		<dc:creator>adrigen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://contra.net.au/?p=277</guid>
		<description><![CDATA[Some of the guys at The Roost found this old valve amplified record player on the side of the road during council cleanup. The needle in the record player was broken, but otherwise it worked fine. Now it&#8217;s had some modifications such as the installation of a motherboard, old touch pad keyboard, usb port and [...]]]></description>
			<content:encoded><![CDATA[<p>Some of the guys at The Roost found this old valve amplified record player on the side of the road during council cleanup. <a href="http://contra.net.au/wp-content/uploads/2011/12/trash-punk-jukebox.jpg"><img class="alignright size-medium wp-image-278" title="trash-punk-jukebox" src="http://contra.net.au/wp-content/uploads/2011/12/trash-punk-jukebox-300x224.jpg" alt="" width="300" height="224" /></a> The needle in the record player was broken, but otherwise it worked fine. Now it&#8217;s had some modifications such as the installation of a motherboard, old touch pad keyboard, usb port and a 2nd hand LCD screen attached to it&#8217;s lid. So now it plays digital audio and video. Sounds nice too.</p>]]></content:encoded>
			<wfw:commentRss>http://contra.net.au/2011/12/05/crap-punk-media-center/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create a Network (WordPress 3 &amp; Nginx)</title>
		<link>http://contra.net.au/2010/10/12/create-a-network-wordpress-3-nginx/</link>
		<comments>http://contra.net.au/2010/10/12/create-a-network-wordpress-3-nginx/#comments</comments>
		<pubDate>Tue, 12 Oct 2010 09:05:18 +0000</pubDate>
		<dc:creator>adrigen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://adrigen.wordpress.com/?p=126</guid>
		<description><![CDATA[This an amalgamation of the information found on the following pages: Create a Network &#8211; wordpress.org HOWTO: Install WordPress on Nginx &#8211; elasticdog.com, If you don&#8217;t already have wordpress working, go here first wordpress rewrites on nginx &#8211; mu.wordpress.org There was another Russian site which I didn&#8217;t bookmark, so if anyone finds it let me [...]]]></description>
			<content:encoded><![CDATA[<p>This an amalgamation of the information found on the following pages:</p>
<ul>
<li><a href="http://codex.wordpress.org/Create_A_Network">Create a Network</a> &#8211; wordpress.org</li>
<li><a href="http://elasticdog.com/2008/02/howto-install-wordpress-on-nginx/">HOWTO: Install WordPress on Nginx</a> &#8211; elasticdog.com, <em>If you don&#8217;t already have wordpress working, go here first</em></li>
<li><a href="http://mu.wordpress.org/forums/topic/3410/page/2">wordpress rewrites on nginx</a> &#8211; mu.wordpress.org</li>
<li>There was another Russian site which I didn&#8217;t bookmark, so if anyone finds it let me know and I&#8217;ll link it.</li>
</ul>
<p>I don&#8217;t have the confidence to submit this to the official docs, perhaps you do?</p>
<h2>Before You Begin</h2>
<p><a id="Admin_Requirements" name="Admin_Requirements"></a></p>
<h3>Admin Requirements</h3>
<p>If you want to run a network of blogs you should at least have a  basic understanding of UNIX/Linux administration. A basic knowledge of  WordPress development, PHP, HTML and CSS is recommended as well.</p>
<p>Setting up and running a multi-site installation is more complex  than a single-site install. Reading this page should help you to decide  if you really need a multi-site install, and what might be involved with  creating one. If the instructions on this page make no sense to you, be  sure to test things on a development site first, rather than your live  site.</p>
<p><a id="Server_Requirements" name="Server_Requirements"></a></p>
<h3>Server Requirements</h3>
<p>Since this feature requires extra server setup and more technical  ability, please check with your webhost and ask if they support the use  of this feature. It is not recommended to try this on shared hosting.</p>
<p>You are given the choice between sub-domains or sub-directories in <a href="http://codex.wordpress.org/Create_A_Network#Step_4:_Installing_a_Network">Step 4: Installing a Network</a>. This means each additional site in your network will be created as a new virtual subdomain or subdirectory.</p>
<dl>
<dd>
<ul>
<li><strong>Sub-domains</strong> &#8212; like <code>site1.example.com</code> and <code>site2.example.com</code></li>
<li><strong>Sub-directories</strong> &#8212; like <code>example.com/site1</code> and <code>example.com/site2<br />
<em>At the time of writing I have not tested sub-directories with nginx.</em><br />
</code></li>
</ul>
</dd>
</dl>
<p>It is also possible later, through use of a plugin such as <a title="http://wordpress.org/extend/plugins/wordpress-mu-domain-mapping/" href="http://wordpress.org/extend/plugins/wordpress-mu-domain-mapping/">WordPress MU Domain Mapping</a>, to map individual sites to independent domain names.</p>
<dl>
<dt> Sub-domain sites </dt>
<dd> It works using <strong>wildcard subdomains</strong>. You must have this enabled in Nginx, and you must also add a wildcard subdomain to your DNS records. (See <a href="http://codex.wordpress.org/Create_A_Network#Step_2:_Setting_Wildcard_Subdomains">Step 2</a> how to set up.) </dd>
<dd> Some hosts have already set up the wildcard on the server side, which means all you need to add is the DNS record. </dd>
<dd> Some shared webhosts may not support this, so you may need to check your webhost before enabling this feature. </dd>
</dl>
<p><a id="WordPress_Settings_Requirements" name="WordPress_Settings_Requirements"></a></p>
<h3>WordPress Settings Requirements</h3>
<ul>
<li> <a title="Giving WordPress Its Own Directory" href="http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory">Giving WordPress its own directory</a> will not work in WordPress 3.0 with multisite enabled. It interferes with the member blog lookup.</li>
<li> You <strong>cannot create a network</strong> in the following cases:
<ul>
<li> &#8220;WordPress address (URL)&#8221; is different from &#8220;Site address (URL)&#8221;.</li>
<li> &#8220;WordPress address (URL)&#8221; uses a port number other than &#8216;:80&#8242;, &#8216;:443&#8242;.</li>
</ul>
</li>
<li> You <em>cannot choose <strong>Sub-domain</strong> Install</em> in the following cases:
<ul>
<li> WordPress install is in a directory (not in document root).</li>
<li> &#8220;WordPress address (URL)&#8221; is <code>localhost</code>.</li>
<li> &#8220;WordPress address (URL)&#8221; is IP address such as <var>127.0.0.1</var>.</li>
</ul>
</li>
<li> You <em>cannot choose <strong>Sub-directory</strong> Install</em> in the following cases:
<ul>
<li> If your existing WordPress installation has been set up for  more than a month, due to issues with existing permalinks. (This problem  will be fixed in a future version.)</li>
</ul>
</li>
</ul>
<p>(See <code><a title="http://core.trac.wordpress.org/browser/tags/3.0.1/wp-admin/network.php" href="http://core.trac.wordpress.org/browser/tags/3.0.1/wp-admin/network.php">wp-admin/network.php</a></code> for more detail)</p>
<p><a id="Step_1:_Backup_Your_WordPress" name="Step_1:_Backup_Your_WordPress"></a></p>
<h2>Step 1: Backup Your WordPress</h2>
<p>Your WordPress will be updated when creating a Network. Please <a title="WordPress Backups" href="http://codex.wordpress.org/WordPress_Backups">backup your database and files</a>.</p>
<p><a id="Step_2:_Setting_Wildcard_Subdomains" name="Step_2:_Setting_Wildcard_Subdomains"></a></p>
<h2>Step 2: Setting Wildcard Subdomains</h2>
<p>(If this is a Sub-directories Install, <a href="http://codex.wordpress.org/Create_A_Network#Step_3:_Allow_Multisite">skip this step</a>.)</p>
<p><strong>Sub-domain sites</strong> work with the use of wildcard subdomains. This is a two-step process:</p>
<ol>
<li> Apache must be configured to accept wildcards.
<ol>
<li> Find and edit up the <code>nginx.conf</code> file.</li>
<li> Check this line  (I have listed the server&#8217;s ip address too because I used it for DB_HOST in wp-config.php):
<pre>server_name  example.com 123.456.789.10;</pre>
</li>
</ol>
</li>
<li> In the DNS records on your server, add a wildcard subdomain that points to the main installation. It should look like:
<pre>A *.example.com</pre>
</li>
</ol>
<p>External links:</p>
<ul>
<li> <a title="wikipedia:Wildcard DNS record" href="http://en.wikipedia.org/wiki/Wildcard_DNS_record">Wildcard DNS record</a> (Wikipedia)</li>
</ul>
<p><a id="Step_3:_Allow_Multisite" name="Step_3:_Allow_Multisite"></a></p>
<h2>Step 3: Allow Multisite</h2>
<p>To enable the Network menu item, you must first define multisite in the <a title="Editing wp-config.php" href="http://codex.wordpress.org/Editing_wp-config.php"><code>wp-config.php</code></a> file.</p>
<p>Open up <code>wp-config.php</code> and add this line <strong>above</strong> where it says <code>/* That's all, stop editing! Happy blogging. */</code>:</p>
<pre>define('WP_ALLOW_MULTISITE', true);</pre>
<p><a id="Step_4:_Installing_a_Network" name="Step_4:_Installing_a_Network"></a></p>
<h2>Step 4: Installing a Network</h2>
<p>This will enable the Network menu item to appear in the Tools menu.  Visit <a title="Super Admin Menu" href="http://codex.wordpress.org/Super_Admin_Menu">Administration</a> &gt; <a title="Super Admin Menu" href="http://codex.wordpress.org/Super_Admin_Menu#Tools">Tools</a> &gt; <a title="Tools Network SubPanel" href="http://codex.wordpress.org/Tools_Network_SubPanel">Network</a> to see the screen where you will configure certain aspects of our network.</p>
<div>
<div><a title="Tools Network SubPanel" href="http://codex.wordpress.org/File:tools-network.png"><img src="http://codex.wordpress.org/images/thumb/7/7c/tools-network.png/180px-tools-network.png" border="0" alt="" width="180" height="113" /></a></p>
<div>
<div><a title="Enlarge" href="http://codex.wordpress.org/File:tools-network.png"><img src="http://codex.wordpress.org/skins/common/images/magnify-clip.png" alt="" width="15" height="11" /></a></div>
<p>Tools Network SubPanel</p>
</div>
</div>
</div>
<dl>
<h4>Addresses of Sites in your Network</h4>
<dd> You are given the choice between sub-domains or sub-directories (if none of <a href="http://codex.wordpress.org/Create_A_Network#WordPress_Settings_Requirements">the above</a> applies). This means each additional site in your network will be  created as a new virtual subdomain or subdirectory. you have to pick one  or the other, and <strong>you cannot change this unless you reconfigure your install</strong>. See also <a href="http://codex.wordpress.org/Create_A_Network#Before_you_Begin">Before you Begin</a>.</p>
<ul>
<li> <strong>Sub-domains</strong> &#8212; like <code>site1.example.com</code> and <code>site2.example.com</code></li>
<li> <strong>Sub-directories</strong> &#8212; like <code>example.com/site1</code> and <code>example.com/site2</code></li>
</ul>
</dd>
</dl>
<dl>
<h4>Network Details</h4>
<dd> These are filled in automatically.
<dl>
<dt> <strong>Server Address</strong> </dt>
<dd> The Internet address of your network will be <code>example.com</code>. </dd>
<dt> <strong>Network Title </strong></dt>
<dd> What would you like to call your network? </dd>
<dt> <strong>Admin E-mail Address </strong></dt>
<dd> Your email address. </dd>
</dl>
</dd>
</dl>
<p>Double-check they are correct and click the <strong>Install</strong> button.</p>
<p>You may receive a warning about wildcard subdomains. Check <a href="http://codex.wordpress.org/Create_A_Network#Step_2:_Setting_Wildcard_Subdomains">Setting Wildcard Subdomains</a>.</p>
<div>
<p><strong>Warning! Wildcard DNS may not be configured correctly!</strong></p>
<p>The installer attempted to contact a random hostname (<code>13cc09.example.com</code>) on your domain.</p>
<p>To use a subdomain configuration, you must have a wildcard entry in your DNS. This usually means adding a <code>*</code> hostname record pointing at your web server in your DNS configuration tool.</p>
<p>You can still use your site but any subdomain you create may not  be accessible. If you know your DNS is correct, ignore this message.</p>
</div>
<p><a id="Step_5:_Enabling_the_Network" name="Step_5:_Enabling_the_Network"></a></p>
<h2>Step 5: Enabling the Network</h2>
<p>The rest of the steps are ones you must complete in order to finish. <em>You are going to ignore the last message about adding to the .htaccess file!</em></p>
<div>
<div><a title="Tools Network Created" href="http://codex.wordpress.org/File:tools-network-created.png"><img src="http://codex.wordpress.org/images/thumb/5/5c/tools-network-created.png/180px-tools-network-created.png" border="0" alt="" width="180" height="149" /></a></p>
<div>
<div><a title="Enlarge" href="http://codex.wordpress.org/File:tools-network-created.png"><img src="http://codex.wordpress.org/skins/common/images/magnify-clip.png" alt="" width="15" height="11" /></a></div>
<p>Tools Network Created</p>
</div>
</div>
</div>
<dl>
<dt>0. First, back up your existing <code>wp-config.php</code>. </dt>
</dl>
<dl>
<dt>1. Create a <code>blogs.dir</code> directory under <code>/wp-content/</code> </dt>
<dd> This directory is used to stored uploaded media for your additional sites and must be <a title="Changing File Permissions" href="http://codex.wordpress.org/Changing_File_Permissions">writable</a> by the web server. They should be CHOWNed and CHMODed the same as your <code>wp-content</code> directory. </dd>
</dl>
<dl>
<dt>2. Add the extra lines your WordPress installation generates into your <a title="Editing wp-config.php" href="http://codex.wordpress.org/Editing_wp-config.php"><code>wp-config.php</code> file</a>. </dt>
<dd> These lines are dynamically generated for you based on your configuration. </dd>
<dd> Edit the <code>wp-config.php</code> file while you are logged in to your sites admin panel. </dd>
<dd> Paste the generated lines immediately <strong>above</strong> <code>/* That's all, stop editing! Happy blogging. */</code>. </dd>
<dd> Remove the earlier placed  <code>define('WP_ALLOW_MULTISITE', true);</code> line only if you wish to remove the Network menu in the admin area. You  may choose to leave this to be able to access the .htaccess rules  again.. </dd>
</dl>
<dl>
<dt>3. Add the green lines to your nginx.conf file:</dt>
<pre><span style="color: #008000;"><span style="color: #000000;">...
</span></span>#access_log  logs/host.access.log  main;
<span style="color: #008000;">
location ~* ^.+\.(xml|jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js|swf)$</span>
<span style="color: #008000;"> {</span>
<span style="color: #008000;"> root /usr/share/nginx/html;</span>
<span style="color: #008000;"> rewrite ^/files(/.*)$ /wp-content/blogs.php?file=$1 last;</span>
<span style="color: #008000;"> expires 10d;</span>
<span style="color: #008000;"> break;</span>
<span style="color: #008000;"> }</span>

 location / {
 root   /usr/share/nginx/html;
 index  index.html index.htm <span style="color: #008000;">index.php</span>;
 <span style="color: #008000;">if (!-e $request_filename) {</span>
<span style="color: #008000;"> rewrite ^.+/?(/wp-.*) $1 last;</span>
<span style="color: #008000;"> rewrite ^.+/?(/.*\.php)$ $1 last;</span>
<span style="color: #008000;"> rewrite ^(.+)$ /index.php?q=$1 last;</span>
<span style="color: #008000;"> }</span>

 }
...
location ~ \.php$ {
 <span style="color: #008000;">rewrite ^/.*(/wp-.*/.*.php)$ $1;</span>
 root           html;
 fastcgi_pass   127.0.0.1:9000;
 fastcgi_index  index.php;
 fastcgi_param  SCRIPT_FILENAME  /usr/share/nginx/html$fastcgi_script_name;
 include        fastcgi_params;
 }
...

4. Restart Nginx</pre>
</dl>
<dl>
<dt>5.Log in again. </dt>
<dd> Once the above steps are completed and the new wp-config.php  &amp; nginx.conf files are saved, your network is enabled and configured.  You will have to log in again. click &#8220;Log In&#8221; to refresh your  Adminstration Panel. If you have problems logging back in, please clear  your browser&#8217;s cache and cookies. </dd>
<dd> </dd>
</dl>
<p><a id="Step_6:_Super_Admin_Settings" name="Step_6:_Super_Admin_Settings"></a></p>
<h2>Step 6: Super Admin Settings</h2>
<p>You will now see a new menu section called <a title="Super Admin Menu" href="http://codex.wordpress.org/Super_Admin_Menu"><strong>Super Admin</strong></a>.  The menus contained in there are for adding and managing additional  sites in your network. Your base WordPress install is now the main site  in your network.</p>
<p>Go <a title="Super Admin Menu" href="http://codex.wordpress.org/Super_Admin_Menu#Super_Admin">Super Admin</a> &gt; <a title="Super Admin Options SubPanel" href="http://codex.wordpress.org/Super_Admin_Options_SubPanel">Options</a> panel to configure network options, and then create sites and users.</p>
<p><a id="Things_You_Need_To_Know" name="Things_You_Need_To_Know"></a></p>
<h2>Things You Need To Know</h2>
<p>Here are some additional things you might need to know about advanced administration of the blog network.</p>
<p><a id="WordPress_Plugins" name="WordPress_Plugins"></a></p>
<h3>WordPress Plugins</h3>
<dl>
<dd>WordPress Plugins now have additional flexibility, depending upon their implementation across the network. </dd>
</dl>
<ul>
<li> <strong>Site Specific Plugins:</strong> WordPress Plugins to be activated or deactivated by an individual blog owner are stored in the <tt>plugins</tt> directory. You need to enable the Plugins page for individual site administrators from Network &gt; Options.</li>
<li> <strong>Network Plugins:</strong> WordPress Plugins stored in the <tt>plugins</tt> directory can be activated across the network by the super admin.</li>
<li> <strong>Must-Use Plugins:</strong> Plugins to be used by all sites on the entire network may also be installed in the <tt>mu-plugins</tt> directory as single files, or a file to include a subfolder. Any files  within a folder will not be read. These files are not activated or  deactivated; if they exist, they are used.</li>
</ul>
<p><a id="Categories_and_Tags" name="Categories_and_Tags"></a></p>
<h3>Categories and Tags</h3>
<dl>
<dd>Global terms are disabled in WordPress 3.0 by default. You can use the <a title="http://wordpress.org/extend/plugins/wordpress-mu-sitewide-tags/" href="http://wordpress.org/extend/plugins/wordpress-mu-sitewide-tags/">Sitewide Tags WordPress Plugin</a> or other similar Plugins to incorporate global tags on the portal/front  page of the site or on specific pages or blogs within the network to  increase navigation based upon micro-categorized content. </dd>
</dl>
<p><a id=".htaccess_and_Mod_Rewrite" name=".htaccess_and_Mod_Rewrite"></a></p>
<h3>.htaccess and Mod Rewrite</h3>
<p>Unlike Single Site WordPress, which can work with &#8220;ugly&#8221; <a title="Using Permalinks" href="http://codex.wordpress.org/Using_Permalinks">Permalinks</a> and thus does not need Mod Rewrite, MultiSite <em>requires</em> its use to format URLs for your subsites. This necessitates the use of  an .htaccess file, the format of which will be slightly different if  you&#8217;re using SubFolders or SubDomains.  The examples below are the  standard .htaccess entries for WordPress SubFolders and SubDomains, when  WordPress is installed in the root folder of your website.  If you have  WordPress in it&#8217;s own folder, you will need to change the value for <tt>RewriteBase</tt> appropriately.</p>
<p><strong>SubFolder Example</strong></p>
<pre># BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]

# uploaded files
RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]

# add a trailing slash to /wp-admin
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule  ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
RewriteRule  ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
RewriteRule . index.php [L]
# END WordPress</pre>
<p><strong>SubDomain Example</strong></p>
<pre># BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]

# uploaded files
RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule . index.php [L]
# END WordPress</pre>]]></content:encoded>
			<wfw:commentRss>http://contra.net.au/2010/10/12/create-a-network-wordpress-3-nginx/feed/</wfw:commentRss>
		<slash:comments>327</slash:comments>
		</item>
	</channel>
</rss>

