<?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>Interconnect IT - WordPress Consultants, Web Development and Web Design &#187; Domain</title>
	<atom:link href="http://interconnectit.com/tag/domain/feed/" rel="self" type="application/rss+xml" />
	<link>http://interconnectit.com</link>
	<description></description>
	<lastBuildDate>Wed, 08 Feb 2012 17:36:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Steps for installing WP Mu as domain manager</title>
		<link>http://interconnectit.com/22/steps-for-installing-wp-mu-as-domain-manager/</link>
		<comments>http://interconnectit.com/22/steps-for-installing-wp-mu-as-domain-manager/#comments</comments>
		<pubDate>Tue, 02 Oct 2007 12:27:39 +0000</pubDate>
		<dc:creator>James R Whitehead</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Domain]]></category>
		<category><![CDATA[MU]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://liverpoolwebdesigner.wordpress.com/2007/10/02/steps-for-installing-wp-mu-as-domain-manager/</guid>
		<description><![CDATA[The following is the basic procedure for installing WordPress mu with more than one domain name so that you only need one install to control several domains. I&#8217;m creating this document to help me see all the steps I&#8217;ve take so that I never have to figure it out from cold again and to help me with the writing of&#8230; <a class="more" href="http://interconnectit.com/22/steps-for-installing-wp-mu-as-domain-manager/">continue reading <span class="unicode">&#8674;</span></a>]]></description>
			<content:encoded><![CDATA[<p>The following is the basic procedure for installing WordPress mu with more than one domain name so that you only need one install to control several domains. I&#8217;m creating this document to help me see all the steps I&#8217;ve take so that I never have to figure it out from cold again and to help me with the writing of a plug-in that will allow me to do this via a very simple interface.</p>
<ol>
<li>Install mu on your domain {e.g. yourdomain.com} and ensure that wildcard domains are processed by mu. Entering [ramdom].yourdomain.com should take you to a prompt to create a blog of [ramdom].yourdomain.com unless it already exists that is.</li>
<li>Park the new domain {e.g. newdomain.com} using your servers management back end. This will be different on each hosting provider and may not even be available so if it is not obvious you&#8217;ll need to contact your provider.</li>
<li>Create a new blog {e.g. newdomain.yourdomain.com} and test it.</li>
<li>Get into a position where you can edit the db.</li>
<li>Run <code>SELECT * FROM wp_blogs WHERE 1</code>and look for the blog you just created and make a note of its blog_id.</li>
<li>Edit the domain cell. Will currently be set to newdomain.yourdomin.com and we want to change it to newdomain.com. If we assume the blog_id is 9 the following command would do. <code>UPDATE wp_blogs  SET domain="newdomain.com" WHERE blog_id  =9 LIMIT 1</code></li>
<li>We now need to edit the other references to the sub-domain and point them to the real domain name. If you run the following you will find 3 references back to http://newdomain.yourdomain.com change them to http://newdomain.com/ and be sure to keep anything that comes after the domain name. i.e. /files/. Again we assume the blog_is is 9 <code>SELECT * FROM wp_9_options WHERE option_value LIKE "http://%"</code></li>
<li>Your site should almost work at this point. Give it a test, you should find it all looks as you expected until you try to login to the backend. That is what we&#8217;ll fix next.</li>
<li> We need to add a new site to the wp_site table so that we can use the backend admin.<code> INSERT INTO wp_site (id,domain,path) VALUES ("9","newdomain.com","/");</code>We can use the blog_id as the value for id if it has not been used before, if it has been used then just pick a number that&#8217;s not been used and make a note of it. The value of domain should be that of the new domain {e.g. newdomain.com} and the value of path should normally be &#8220;/&#8221;.</li>
<li>We now need to go back to the wp_blogs table <code>SELECT * FROM wp_blogs  blog_id = 9</code> and edit the site_id to be that of the id we set up in step 9.  So that would be <code>UPDATE wp_blogs  SET site_id=9 WHERE blog_id  =9 LIMIT 1</code>. Change the site_id to that which you previously chose if it is not the same as the blog_id. I like to keep them the same to aid my admin but there is no technical need to do so.</li>
<li>Site meta needs to be configured to allow administrators to change the site settings. This command will set the user called admin as site_admin if site_id == 9 <code>INSERT INTO wp_sitemeta (site_id,meta_key,meta_value) VALUES ('9','site_admins','a:1:{i:0;s:5:"admin";}');</code>If you need to change the admin name to something else, say &#8220;administrator&#8221;, you will have to change the s:5 to match the size of the new word.  In the case of &#8220;administrator&#8221; it would be set to 13.</li>
<li>To enable site plugins the following is needed.<code> INSERT INTO wp_sitemeta (site_id,meta_key,meta_value) VALUES ('9','menu_items','a:1:{s:7:"plugins";s:1:"1";}');</code></li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://interconnectit.com/22/steps-for-installing-wp-mu-as-domain-manager/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

