<?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>Thesis: Hosting &#187; WordPress Mu</title>
	<atom:link href="http://www.thesishosting.com/topics/wordpress/wordpress-mu/feed" rel="self" type="application/rss+xml" />
	<link>http://www.thesishosting.com</link>
	<description>Down &#38; Dirty Web Hosting Resource</description>
	<lastBuildDate>Mon, 21 Nov 2011 20:02:53 +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>Manually Adding an Admin User to a WP Database</title>
		<link>http://www.thesishosting.com/2010/04/topics/wordpress/manually-adding-an-admin-user-to-a-wp-database</link>
		<comments>http://www.thesishosting.com/2010/04/topics/wordpress/manually-adding-an-admin-user-to-a-wp-database#comments</comments>
		<pubDate>Tue, 13 Apr 2010 19:02:53 +0000</pubDate>
		<dc:creator>Dixie</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress Mu]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[WPMU]]></category>

		<guid isPermaLink="false">http://thesishosting.com/?p=406</guid>
		<description><![CDATA[Lost your admin password? Need in to the WP admin but client hasn't given you access? If you can access the database directly--easiest using a tool like PHPmyAdmin, you can give yourself whatever access you need.]]></description>
			<content:encoded><![CDATA[<p><a class="post_image_link" href="http://www.thesishosting.com/2010/04/topics/wordpress/manually-adding-an-admin-user-to-a-wp-database" title="Permanent link to Manually Adding an Admin User to a WP Database"><img class="post_image alignnone" src="http://farm2.static.flickr.com/1353/1209594912_1354c1716a.jpg" width="500" height="382" alt="Retrieving Lost WordPress WP Admin Password" /></a>
</p><p>Lost your admin password? Need in to the WP admin but client hasn&#8217;t given you access? If you can access the database directly&#8211;easiest using a tool like PHPmyAdmin&#8211;you can give yourself whatever access you need. <sup><a href="http://www.thesishosting.com/2010/04/topics/wordpress/manually-adding-an-admin-user-to-a-wp-database#footnote_0_406" id="identifier_0_406" class="footnote-link footnote-identifier-link" title="Big hugs and kisses out to DNA Web Agency for this uber-helpful information lifted for this tutorial.">1</a></sup></p>
<p><strong>Locate the right database</strong>&#8211;if you have FTP, looking at the wp-config.php file at the root of your WP installation is the fastest route. Otherwise, if you have multiple WP installs, check out the options table to match urls and make sure you&#8217;re looking in the right database.</p>
<p>In your<strong> wp_users table</strong>, you insert a new record:</p>
<ol>
<li><strong>user_login</strong> –username to access <a href="http://www.thesishosting.com/tag/wordpress" class="st_tag internal_tag" rel="tag" title="Posts tagged with WordPress">WordPress</a></li>
<li><strong>user_pass</strong> – password &#8211; be certain to select <strong>MD5</strong> from the phpMyAdmin  Function dropdown menu; it&#8217;s stored encrypted)</li>
<li><strong>user_nicename</strong> – how you&#8217;d like to refer to yourself, not login</li>
<li><strong>user_email</strong> – email for this user</li>
<li><strong>user_url</strong> – optional<a href="http://www.dnawebagency.com/"></a></li>
<li><strong>user_registered</strong> –   just select a date</li>
<li><strong>user_activation_key</strong> – leave this blank</li>
<li><strong>user_status</strong> – leave this set to 0</li>
<li><strong>display_name</strong> – what displays, can be same as nicename</li>
</ol>
<p>Note the user ID, as you&#8217;ll need it for the next steps.</p>
<p><strong>To give yourself access permissions, head on over to insert a record into the wp_usersmeta table.<br />
</strong></p>
<ol>
<li><strong>umeta_id </strong>- automatically  generated</li>
<li><strong>user_id</strong> – ID of the user you just created</li>
<li><strong>meta_key</strong> –  <strong>wp_capabilities</strong></li>
<li><strong>meta_value</strong> copy and paste this:</li>
</ol>
<p>1</p>
<p><strong>Insert another row</strong>, with this information:</p>
<ol>
<li><strong>umeta_id </strong>- automatically  generated</li>
<li><strong>user_id</strong> – use the ID you created</li>
<li><strong>meta_key</strong> – insert <strong>wp_user_level</strong></li>
<li><strong>meta_value</strong> – insert 10</li>
</ol>
<p>Save your work and go log in!</p>
<ol class="footnotes"><li id="footnote_0_406" class="footnote">Big hugs and kisses out to DNA Web Agency for <a title="Manually Adding Admin User to WP database" href="http://www.dnawebagency.com/how-to-add-an-admin-user-to-the-wordpress-database">this uber-helpful information</a> lifted for this tutorial.</li></ol>]]></content:encoded>
			<wfw:commentRss>http://www.thesishosting.com/2010/04/topics/wordpress/manually-adding-an-admin-user-to-a-wp-database/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WP Auto Updates for Servers Requiring 777 Permissions</title>
		<link>http://www.thesishosting.com/2010/04/topics/wordpress/wp-auto-updates-for-servers-requiring-777-permissions</link>
		<comments>http://www.thesishosting.com/2010/04/topics/wordpress/wp-auto-updates-for-servers-requiring-777-permissions#comments</comments>
		<pubDate>Fri, 02 Apr 2010 20:22:13 +0000</pubDate>
		<dc:creator>Dixie</dc:creator>
				<category><![CDATA[Config]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress Mu]]></category>
		<category><![CDATA[WPMU]]></category>

		<guid isPermaLink="false">http://thesishosting.com/?p=384</guid>
		<description><![CDATA[How to avoid WP and plugin update errors like "cannot copy file" or "cannot move file" or "cannot remove old plugin" and eliminate need to provide FTP info on each update for server configuraitons requiring 0777 writable permissions.]]></description>
			<content:encoded><![CDATA[<p><a class="post_image_link" href="http://www.thesishosting.com/2010/04/topics/wordpress/wp-auto-updates-for-servers-requiring-777-permissions" title="Permanent link to WP Auto Updates for Servers Requiring 777 Permissions"><img class="post_image alignnone" src="http://farm4.static.flickr.com/3456/3237164755_e34da6809e.jpg" width="500" height="419" alt="Secure WP WordPress Auto Updates Plugin Updates Servers Requring 0777 Permissions FTP info request" /></a>
</p><p>If you&#8221;ve got a WP installation on a server not running under suPHP (i.e. requiring some folders set to 777 permissions), you may find your WP requests FTP info to do any updates, and get miscellaneous errors even with this info provided.<sup><a href="http://www.thesishosting.com/2010/04/topics/wordpress/wp-auto-updates-for-servers-requiring-777-permissions#footnote_0_384" id="identifier_0_384" class="footnote-link footnote-identifier-link" title="Why not run under the more restrictive permissions provided by suPHP? Maybe you want to run opcache&nbsp; like e Accelerarter that requires a different configuration, for example. ">1</a></sup> The <a title="WP Auto FTP Plugin Saves FTP info" href="http://wordpress.org/extend/plugins/auto-ftp/">AutoFTP plugin</a> can help by saving the FTP credentials, but you may still see the errors. I did.</p>
<p>In addition to being annoying, this  can also be confusing for some webmasters. Since it&#8217;s a lousy idea to make your entire wp-content folder  world-writable to allow for easier plugin updates, let&#8217;s look at a better  solution:<sup><a href="http://www.thesishosting.com/2010/04/topics/wordpress/wp-auto-updates-for-servers-requiring-777-permissions#footnote_1_384" id="identifier_1_384" class="footnote-link footnote-identifier-link" title="Thanks to &amp;#8220;detroiter&amp;#8221; for this solution.">2</a></sup></p>
<p>First, let&#8217;s <strong>add some protection for your wp-config.php file to your .htaccess file</strong>:</p>
<p>1</p>
<p>Verify your <strong>&#8220;wp-content&#8221; folder permissions are set to 0755</strong>.</p>
<p>Then, <strong>chmod your wp-config.php file to 0644</strong>.</p>
<p><strong>In your wp-config.php file</strong> (at the root of your WP installation),<strong> add the code below.</strong> Be sure to provide the correct paths for your server, and do not add a port to your FTP host:</p>
<p>1</p>
<p>This should take care of the requirement to enter FTP information for every automatic update, and eliminates those annoying &#8220;cannot copy file&#8221; and &#8220;cannot move file&#8221; error messages when trying to do auto-upgrades of WP and plugins.</p>
<ol class="footnotes"><li id="footnote_0_384" class="footnote">Why not run under the more restrictive permissions provided by <a title="suPHP" href="http://www.suphp.org/Home.html">suPHP</a>? Maybe you want to run opcache  like <a title="eAccelerator caching" href="http://www.eaccelerator.net/">e Accelerarter</a> that requires a different configuration, for example. </li><li id="footnote_1_384" class="footnote">Thanks to &#8220;detroiter&#8221; for <a title="Help with WP plugin update errors" href="http://wordpress.org/support/topic/266008?replies=25#post-1462427">this solution</a>.</li></ol>]]></content:encoded>
			<wfw:commentRss>http://www.thesishosting.com/2010/04/topics/wordpress/wp-auto-updates-for-servers-requiring-777-permissions/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Setting up TimThumb in WPMU &#8211; Yes! It&#039;s Possible!</title>
		<link>http://www.thesishosting.com/2009/11/topics/wordpress/wordpress-mu/setting-up-timthumb-in-wpmu-yes-its-possible</link>
		<comments>http://www.thesishosting.com/2009/11/topics/wordpress/wordpress-mu/setting-up-timthumb-in-wpmu-yes-its-possible#comments</comments>
		<pubDate>Fri, 06 Nov 2009 20:27:30 +0000</pubDate>
		<dc:creator>Dixie</dc:creator>
				<category><![CDATA[WordPress Mu]]></category>
		<category><![CDATA[Customization]]></category>
		<category><![CDATA[hacking]]></category>
		<category><![CDATA[timthumb]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WPMU]]></category>

		<guid isPermaLink="false">http://thesishosting.com/?p=167</guid>
		<description><![CDATA[WPMU admins have long been frustrated by the fact TimThumb, the popular thumbnail generation script, doesn't play nicely with WPMU. This quick hack to the script allows you to use themes in your WPMU that require the script without setting up a specific instance of the script for each blog using it and hardcoding the path.]]></description>
			<content:encoded><![CDATA[<p><a class="post_image_link" href="http://www.thesishosting.com/2009/11/topics/wordpress/wordpress-mu/setting-up-timthumb-in-wpmu-yes-its-possible" title="Permanent link to Setting up TimThumb in WPMU &#8211; Yes! It&#39;s Possible!"><img class="post_image alignnone" src="http://thesishosting.dixiblog.com/files/2009/11/mu-header-logo.png" width="442" height="124" alt="timthumb working in wpmu" /></a>
</p><p><strong><a title="timthumb script wpmu" href="http://code.google.com/p/timthumb/">TimThumb</a> is a cool little thumbnail script in vogue for WP theme designers. It&#8217;s also notorious for not playing nicely with WPMU. </strong>Specifically, the rewrite magic used to run WPMU chokes the script in generating the thumbnail, as it&#8217;s looking for &#8220;/files/date/filename.ext&#8221; instead of &#8220;/blogs.dir/X/files/date/filename.ext&#8221;&#8211;where X is the $blog_id variable.</p>
<p>This is easy enough to fix if you want to hardcode your path into the script, but what if you want to set up a theme on WPMU that utilizes the script and open it to more than one blog? Maybe you&#8217;re a <a title="Thesis Theme" href="http://diythemes.com">Thesis</a> fan, perhaps? Well you can.</p>
<p class="alert"><strong>Please note</strong>: This technique requires hacking the timthumb script and as such, it&#8217;s never going to be an ideal solution. However, since many WP themes have timthumb deeply integrated and WPMU admins may well want to make such themes available to their users without requiring a users themes plugin, this IS an option that will allow multiple users to access a single version of the script and have it work properly.</p>
<p>Here&#8217;s how:</p>
<p>Towards the top of your script, you&#8217;ll need to <strong>include the wp-blog-header.php</strong> file.  This allows you to access <a href="http://www.thesishosting.com/tag/wordpress" class="st_tag internal_tag" rel="tag" title="Posts tagged with WordPress">WordPress</a> variables from within the external script. This path worked for the Thesis theme setup, where the timthumb script, &#8220;thumb.php,&#8221; is located in the folder &#8220;/wp-content/themes/thesis_16/lib/scripts/&#8221; &#8211; you will need to adjust the path as appropriate to go from your actual script location up to the root of your WPMU install.<sup><a href="http://www.thesishosting.com/2009/11/topics/wordpress/wordpress-mu/setting-up-timthumb-in-wpmu-yes-its-possible#footnote_0_167" id="identifier_0_167" class="footnote-link footnote-identifier-link" title="Code note: There are probably better ways of doing this. I am not a programmer; I am a hack. Feel free to share your wisdom in the comments. Also, I&amp;#8217;m squishing the declare global of $blog_id for these two functions we&amp;#8217;re editing into the same line as the new code in the interest of keeping line numbers consistent. If that bugs you, then adjust as required.">1</a></sup></p>
<pre class="brush: php; first-line: 17; title: ; notranslate">require_once('../../../../../wp-blog-header.php');</pre>
<p>From this:</p>
<pre class="brush: php; first-line: 450; title: ; notranslate">$src = get_document_root($src) . '/' . $src;</pre>
<p>To this:</p>
<pre class="brush: php; first-line: 450; title: ; notranslate">global $blog_id; $src = get_document_root($src) . '/wp-content/blogs.dir/'. $blog_id.'/' . $src;</pre>
<p>And from this:</p>
<pre class="brush: php; first-line: 459; title: ; notranslate">// check for unix servers
 if (@file_exists($_SERVER['DOCUMENT_ROOT'] . '/' . $src))</pre>
<p>To This</p>
<pre class="brush: php; first-line: 459; title: ; notranslate">global $blog_id;    // check for unix servers
 if (@file_exists($_SERVER['DOCUMENT_ROOT'] .'/wp-content/blogs.dir/'. $blog_id.'/' . $src))</pre>
<p><a href="../wp-content/uploads/Thumbs_up_by_Wakalani.jpg"><img class="alignright" title="Thumbs_up_by_Wakalani" src="../wp-content/uploads/Thumbs_up_by_Wakalani-150x150.jpg" alt="Thumbs_up_by_Wakalani" width="150" height="150" /></a>That&#8217;s it. You now should have thumbs showing up where they belong!</p>
<p>Troubleshooting quick tips:</p>
<ul>
<li>If you get an &#8220;failed to open stream: No such file or directory&#8221; error, then your path to wp-blog-header file is probably off.</li>
<li>If you&#8217;re getting a &#8220;file not found&#8221; error, trying replacing the $blog_id variable with a hardcoded number of the blog id to see if the problem is in your code itself or in accessing the variable.</li>
</ul>
<ol class="footnotes"><li id="footnote_0_167" class="footnote">Code note: There are probably better ways of doing this. I am not a programmer; I am a hack. Feel free to share your wisdom in the comments. Also, I&#8217;m squishing the declare global of $blog_id for these two functions we&#8217;re editing into the same line as the new code in the interest of keeping line numbers consistent. If that bugs you, then adjust as required.</li></ol>]]></content:encoded>
			<wfw:commentRss>http://www.thesishosting.com/2009/11/topics/wordpress/wordpress-mu/setting-up-timthumb-in-wpmu-yes-its-possible/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Setting Up Wildcard DNS for WPMU on cPanel</title>
		<link>http://www.thesishosting.com/2009/11/topics/wordpress/wordpress-mu/setting-up-wildcard-dns-for-wpmu</link>
		<comments>http://www.thesishosting.com/2009/11/topics/wordpress/wordpress-mu/setting-up-wildcard-dns-for-wpmu#comments</comments>
		<pubDate>Mon, 02 Nov 2009 21:44:12 +0000</pubDate>
		<dc:creator>Dixie</dc:creator>
				<category><![CDATA[DNS]]></category>
		<category><![CDATA[WHM/cPanel]]></category>
		<category><![CDATA[WordPress Mu]]></category>
		<category><![CDATA[cPanel]]></category>
		<category><![CDATA[Wildcard DNS]]></category>
		<category><![CDATA[WPMU]]></category>

		<guid isPermaLink="false">http://thesishosting.com/?p=148</guid>
		<description><![CDATA[Down and dirty method for setting up Wildcard DNS required for WPMU installation via cPanel. You'll never go back to editing DNS records again!]]></description>
			<content:encoded><![CDATA[<p><a class="post_image_link" href="http://www.thesishosting.com/2009/11/topics/wordpress/wordpress-mu/setting-up-wildcard-dns-for-wpmu" title="Permanent link to Setting Up Wildcard DNS for WPMU on cPanel"><img class="post_image alignnone" src="http://thesishosting.dixiblog.com/files/2009/11/mu-header-logo.png" width="442" height="124" alt="WordPress MU Wildcard DNS Setup" /></a>
</p><p><strong>Allowing people to set up blogs for <a href="http://www.thesishosting.com/tag/wordpress" class="st_tag internal_tag" rel="tag" title="Posts tagged with WordPress">WordPress</a> MU at blog.domain.tld requires installing your WPMU in the site root and setting up wildcard DNS. </strong>In setting up my first WPMU, I ran across <a title="Wildcard DNS" href="http://ma.tt/2003/10/wildcard-dns-and-sub-domains/">this tutorial</a> by Matt Mullenweg of WordPress fame, linked from the WordPress MU docs.</p>
<p>Since I&#8217;m not the queen of DNS or anything, I checked with my admin folks to make sure I got the Virtual Host entries correct. I found out this is extremely easy to do if you have a cPanel setup.</p>
<p>Here&#8217;s How from my SysAdmin:</p>
<blockquote><p>To add wildcard DNS and vhost settings in one swoop, simply add a new sub domain to the account and name it &#8216;*&#8217; (the asterisk character). Make sure it&#8217;s document root is pointed to the same directory that your WordPress MU is setup in and cPanel will add everything else to all of the configuration files.</p></blockquote>
<p>Sure enough, worked like a charm, took 30 seconds, and didn&#8217;t require anything scary like restarting Apache&#8211;there is no time that runs slower in the time-space continuum than waiting for httpd to restart, man.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thesishosting.com/2009/11/topics/wordpress/wordpress-mu/setting-up-wildcard-dns-for-wpmu/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

<!-- Served from: www.thesishosting.com @ 2012-02-07 00:06:52 by W3 Total Cache -->
