<?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>Rich Bui &#187; Media Temple</title>
	<atom:link href="http://richbui.com/tag/media-temple/feed/" rel="self" type="application/rss+xml" />
	<link>http://richbui.com</link>
	<description>Welcome to my website.</description>
	<lastBuildDate>Mon, 19 Sep 2011 15:23:49 +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>WordPress MU and File Upload Permission Issues</title>
		<link>http://richbui.com/2009/07/30/wordpress-mu-file-upload-permission-issues/</link>
		<comments>http://richbui.com/2009/07/30/wordpress-mu-file-upload-permission-issues/#comments</comments>
		<pubDate>Thu, 30 Jul 2009 19:56:09 +0000</pubDate>
		<dc:creator>Richard Bui</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[Dedicated Virtual]]></category>
		<category><![CDATA[Media Temple]]></category>
		<category><![CDATA[tips and tricks]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress MU]]></category>
		<category><![CDATA[WordPress Multi-User]]></category>

		<guid isPermaLink="false">http://bui4ever.com/?p=2663</guid>
		<description><![CDATA[Does this sound familiar to you: &#8220;The uploaded file could not be moved to the upload folder.&#8221; If it does and you&#8217;re trying to find a solution, read on. This took a bit for me to figure out, had me banging my head for a little awhile. I&#8217;m on Media Temple (dv) Dedicated Virtual hosting [...]]]></description>
			<content:encoded><![CDATA[<p>Does this sound familiar to you: &#8220;The uploaded file could not be moved to the upload folder.&#8221; If it does and you&#8217;re trying to find a solution, read on.<span id="more-2663"></span></p>
<p>This took a bit for me to figure out, had me banging my head for a little awhile. I&#8217;m on Media Temple (dv) Dedicated Virtual hosting and have two installations of WordPress Multi-User (MU) each pointing to a different IP address. One day, I was trying to upload a file via FireZilla FTP to my <em>/wp-contents/blogs.dir/[blog.id]/</em> folder and it said permission denied. I thought that was odd, but stupidly did a CHOWN on the entire httpdocs folder (this is Media Temple&#8217;s public_html folder) to set it to the account user. Problem solved. Unfortunately then the WordPress Media uploader stopped function and I was getting the message: &#8220;The uploaded file could not be moved to the upload folder.&#8221;</p>
<div class="text-adsense"><script type="text/javascript"><!--
	google_ad_client = "pub-2950609764289329";
	google_ad_slot = "0427355621";
	google_ad_width = 468;
	google_ad_height = 60;
	//-->
</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script></div>
<p>So did a Google search and found <a href="http://mu.wordpress.org/forums/topic/12397">a</a> <a href="http://mu.wordpress.org/forums/topic/9888">few</a> <a href="http://premium.wpmudev.org/forums/topic/user-cant-upload-files">informative</a> forum threads discussing the problem and possible solutions:</p>
<ul>
<li><em>CHMOD</em> the <em>wp-content</em> folder to <em>777</em>, which is a HUGE security risk. I don&#8217;t recommend you do this, but it works for some people.</li>
<li><em>CHMOD</em> the <em>wp-content</em> folder to <em>755</em>, doesn&#8217;t really work</li>
<li><em>CHOWN</em> the <em>blogs.dir</em> folder to <em>nobody</em>, BINGO!</li>
</ul>
<p>So the answer turns out to be that the <em>blogs.dir</em> folder&#8217;s ownership has to be set to nobody or essentially the server. If the ownership is set to the user account, you are able to upload content to the <em>blogs.dir</em> folder, but WordPress Media Uploader can no longer. So to solve the problem, I SSH into the server and browsed to the wp-content folder and:</p>
<pre>chown apache blogs.dir -R</pre>
<p>Afterwards, the WordPress Media Uploader was able to upload files once again. It&#8217;s funny because WPMU version 2.8.1 and prior never had an issue like this, so not sure what was changed.</p>
<p><strong>2009-01-25 UPDATE:</strong> So I ran into the permissions issue again. Oddly, it cropped up after I added another account on my MediaTemple (dv). I followed my steps above and it no longer seemed to work for me. After spending a couple of frustrating hours on Google for a solution, I decided to take some people&#8217;s <a href="http://www.wains.be/index.php/2007/07/19/wordpress-the-uploaded-file-could-not-be-moved-to/">advice</a> and <a href="http://kb.mediatemple.net/questions/050/How+can+I+turn+off+safe_mode+on+an+%28dv%29+Dedicated-Virtual+Server+with+Plesk%3F">turn-off Safe_Mode</a> (<a href="http://kb.mediatemple.net/questions/35/PHP+Safe+Mode,+problems+and+work-arounds">read more</a>). Obviously there are some inherent security issues with doing so, but since I don&#8217;t grant anyone else access to my web server, it shouldn&#8217;t be a huge problem. I also had to do:</p>
<pre>chown apache:apache blogs.dir -R</pre>
<p>since that was the account my web-server uses to write. Things are now working as they should.</p>
<p><strong>2011-01-14 UPDATE:</strong> See the directions on this website as well: http://hereshowi.com/wordpress/fix-wordpress-permissions-on-mediatemple-dv-server.</p>
]]></content:encoded>
			<wfw:commentRss>http://richbui.com/2009/07/30/wordpress-mu-file-upload-permission-issues/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Media Temple DV, Plesk, and Multiple FTP Accounts</title>
		<link>http://richbui.com/2009/06/26/media-temple-dv-plesk-multiple-ftp-accounts/</link>
		<comments>http://richbui.com/2009/06/26/media-temple-dv-plesk-multiple-ftp-accounts/#comments</comments>
		<pubDate>Fri, 26 Jun 2009 23:02:45 +0000</pubDate>
		<dc:creator>Richard Bui</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[Autica]]></category>
		<category><![CDATA[Dedicated Virtual]]></category>
		<category><![CDATA[FTP]]></category>
		<category><![CDATA[Media Temple]]></category>
		<category><![CDATA[mt]]></category>
		<category><![CDATA[Plesk]]></category>

		<guid isPermaLink="false">http://bui4ever.com/?p=2645</guid>
		<description><![CDATA[One of the things I didn&#8217;t realize when I switched from Autica to Media Temple Dedicated Virtual (dv) is that Plesk, unlike CPanel, doesn&#8217;t support creating multiple FTP accounts. Of course, this is by far would not sway my switching to Media Temple in the least bit as I hardly have the need for multiple [...]]]></description>
			<content:encoded><![CDATA[<p>One of the things I didn&#8217;t realize when I switched from Autica to Media Temple Dedicated Virtual (dv) is that Plesk, unlike CPanel, doesn&#8217;t support creating multiple FTP accounts. Of course, this is by far would not sway my switching to Media Temple in the least bit as I hardly have the need for multiple FTP accounts. In any case, this is what  I had to do.<span id="more-2645"></span></p>
<p>There are some rare cases that I do need to have more than 1 FTP account and while you can&#8217;t do anything about it with Plesk, fortunately by SSHing into your (dv), you can create multiple FTP accounts. I found these directions on <a href="http://marcgrabanski.com/article/plesk-multiple-ftp-accounts-per-domain">Marc Grabanski&#8217;s website</a> who found the directions on <a href="http://kb.parallels.com/en/415">Parallels&#8217; knowledge base</a> and I&#8217;m going to reproduce the directions here on my website for my reference (and others). And in case it isn&#8217;t obvious, you replace <strong>USER_NAME</strong> with the actual user name you wish to use.</p>
<p>[sourcecode language="bash"]<br />
ssh domain.tld -l root<br />
/usr/sbin/useradd -d /your_domain/some/location -s /bin/false USER_NAME<br />
/usr/sbin/usermod -G psacln USER_NAME<br />
chmod 755 $HTTPD_VHOSTS_D/your_domain/some/location<br />
chown USER_NAME:psacln $HTTPD_VHOSTS_D/your_domain/some/location<br />
chmod 751 $HTTPD_VHOSTS_D/your_domain/httpdocs<br />
passwd USER_NAME<br />
[/sourcecode]</p>
<p>Also one user, Dan, noted that if you don&#8217;t set the user password first, it chowns it to the user without a password and won&#8217;t allow you to connect, so he recommends this:</p>
<p>[sourcecode language="bash"]<br />
ssh domain.tld -l root<br />
/usr/sbin/useradd -d /your_domain/some/location -s /bin/false USER_NAME<br />
passwd USER_NAME<br />
/usr/sbin/usermod -G psacln USER_NAME<br />
chmod 755 $HTTPD_VHOSTS_D/your_domain/some/location<br />
chown USER_NAME:psacln $HTTPD_VHOSTS_D/your_domain/some/location<br />
chmod 751 $HTTPD_VHOSTS_D/your_domain/httpdocs<br />
[/sourcecode] </p>
]]></content:encoded>
			<wfw:commentRss>http://richbui.com/2009/06/26/media-temple-dv-plesk-multiple-ftp-accounts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Another Great WordPress Site To Bookmark: Clearskys.net</title>
		<link>http://richbui.com/2009/06/24/another-great-wordpress-site-to-bookmark-clearskysnet/</link>
		<comments>http://richbui.com/2009/06/24/another-great-wordpress-site-to-bookmark-clearskysnet/#comments</comments>
		<pubDate>Wed, 24 Jun 2009 16:59:03 +0000</pubDate>
		<dc:creator>Richard Bui</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[Clearskys.net]]></category>
		<category><![CDATA[KSES]]></category>
		<category><![CDATA[Media Temple]]></category>
		<category><![CDATA[search widget]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://richbui.com/?p=2643</guid>
		<description><![CDATA[I recently had to pull the latest three posts on a WordPress page and came across this great blog, Clearskys.net, that had the answer I was looking for. Figuring there as probably other great WordPress tips and tricks, I decided to browse around the site to see if there was other information that might be [...]]]></description>
			<content:encoded><![CDATA[<p>I recently had to <a href="http://richbui.com/2009/06/wordpresswordpress-mu-rss-on-a-wordpress-page/">pull the latest three posts on a WordPress page</a> and came across this great blog, <a href="http://blog.clearskys.net/">Clearskys.net</a>, that had the answer I was looking for. Figuring there as probably other great WordPress tips and tricks, I decided to browse around the site to see if there was other information that might be useful in the future and I definitely wasn&#8217;t disappointed at all.</p>
<p>Barry has a number of great posts on his blog that might be helpful for the WordPress developer such as:</p>
<ul>
<li><a href="http://blog.clearskys.net/2008/01/27/how-to-make-a-more-stylish-search-widget/">How to make a more stylish search widget</a></li>
<li><a href="http://blog.clearskys.net/2008/04/11/hacking-kses/#more-420">Hacking KSES</a></li>
<li><a href="http://blog.clearskys.net/2007/09/24/how-to-wordpress-23-upgrade-via-svn-on-mediatemple-grid-server/">How To: WordPress 2.3 upgrade via SVN on Media Temple Grid Server</a></li>
<li><a href="http://blog.clearskys.net/2009/06/18/snippet-of-the-day-selective-code-loading-for-plugins/">Snippet of the day: Selective code loading for plugins</a></li>
</ul>
<p>So if you get a chance, check out Barry&#8217;s blog at <a href="http://blog.clearskys.net">http://blog.clearskys.net</a> and be sure to bookmark it for future reference, I did.</p>
]]></content:encoded>
			<wfw:commentRss>http://richbui.com/2009/06/24/another-great-wordpress-site-to-bookmark-clearskysnet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

