<?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>Sean Hayes - professional WordPress consulting &#187; technical</title>
	<atom:link href="http://www.seanhayes.biz/tag/technical/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.seanhayes.biz</link>
	<description></description>
	<lastBuildDate>Mon, 26 Dec 2011 19:53:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>WordPress FTP Connection Information</title>
		<link>http://www.seanhayes.biz/2009/ftp-wordpress-connection-information/</link>
		<comments>http://www.seanhayes.biz/2009/ftp-wordpress-connection-information/#comments</comments>
		<pubDate>Tue, 28 Jul 2009 21:46:47 +0000</pubDate>
		<dc:creator>sean</dc:creator>
				<category><![CDATA[Technical]]></category>
		<category><![CDATA[upgrade]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[2.8]]></category>
		<category><![CDATA[connection]]></category>
		<category><![CDATA[ftp]]></category>
		<category><![CDATA[technical]]></category>

		<guid isPermaLink="false">http://www.seanhayes.biz/?p=102</guid>
		<description><![CDATA[Have you been working with the latest version of WordPress &#8211; 2.8 through 2.8.2 &#8211; and found you can&#8217;t update a plugin or in some cases update WordPress using the &#8220;Update Automatically&#8221; functionality? This easy or auto upgrade functionality is a great addition to WordPress and it was a little disappointing to encounter this issue. [...]]]></description>
			<content:encoded><![CDATA[<p>Have you been working with the latest version of WordPress &#8211; 2.8 through 2.8.2 &#8211; and found you can&#8217;t update a plugin or in some cases update WordPress using the &#8220;Update Automatically&#8221; functionality? This easy or auto upgrade functionality is a great addition to WordPress and it was a little disappointing to encounter this issue.<span id="more-102"></span></p>
<p>In this instance, I was doing a fresh install of WordPress for a client &#8211; WordPress version 2.8.2 &#8211; and I was at the stage of the process where I was installing the plugins. Every time I tried to upgrade a plugin I got the &#8220;FTP Connection Information&#8221; request screen. With a little research and knowing the FTP connection information I worked out what it needed in terms of username and password and I installed 1 or 2 plugins successfully. But it got me thinking that there must be an issue perhaps with file permissions or some other WordPress configuration issue.</p>
<p>First, I tried file permissions and working with the client&#8217;s hosting company I made some changes according to this page: <a rel="nofollow" href="http://www.seanhayes.biz/goto/http_codex_wordpress_org_Changing_File_Permissions/102/1">http://codex.wordpress.org/Changing_File_Permissions</a>. None of those settings actually fixed the issue but with the aid of the useful WP-Security Scan Plugin <a rel="nofollow" href="http://www.seanhayes.biz/goto/http_wordpress_org_extend_plugins_wp_security_scan_/102/2">http://wordpress.org/extend/plugins/wp-security-scan/</a> I had the permissions set to the suggested settings on key files / folders identified by the plugin.</p>
<p>But, it&#8217;s still not working as seamlessly as one would expect. In fact I was still getting the &#8220;FTP Connection Information&#8221; error.</p>
<p>I performed some more searching and finally stumbled upon this idea that required adding a line of code into wp-config.php. The code is:</p>
<p><code>define('FS_METHOD', 'direct');</code></p>
<p>I can&#8217;t find any documentation related directly to this particular define code but it resolved the issue and as a by product of researching this issue I also felt that I had improved the security of the site using the security plugin. However, after further investigation I did find this &#8220;define&#8221; in the following document in the WordPress Codex : <a rel="nofollow" href="http://www.seanhayes.biz/goto/http_codex_wordpress_org_Editing_wp_config_php/102/3">http://codex.wordpress.org/Editing_wp-config.php</a>. Suffice to say you&#8217;d have to be happy editing wp-config.php anyway to be comfortable with this fix.</p>
<p><strong>UPDATE</strong>: I&#8217;ve recently encountered this issue again and I stumbled on the fact that the &#8220;..&#8221; folder must also be owned by the webserver user id. In the case of my hosting service the user id Apache runs as is &#8220;www-data&#8221; so I ran &#8220;chown sean:www-data&#8221;. This time I didn&#8217;t receive the dreaded FTP Connection Information message.</p>
<p>Did you find this article helped you or perhaps you found another way around it? If so please comment.</p>
<p>With thanks to this article:</p>
<p><a rel="nofollow" href="http://www.seanhayes.biz/goto/http_www_kgarner_com_blog_archives_2009_06_13_direct_auto_update_on_wordpress_2_8_/102/4">http://www.kgarner.com/blog/archives/2009/06/13/direct-auto-update-on-wordpress-2-8/</a></p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-7086324732730099";
/* 468x60, created 12/11/09 */
google_ad_slot = "9716011971";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.seanhayes.biz/2009/ftp-wordpress-connection-information/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using apc (User agent is rejected)
Database Caching 1/9 queries in 0.009 seconds using apc
Object Caching 283/288 objects using apc

Served from: www.seanhayes.biz @ 2012-02-06 14:22:52 -->
