As you may have seen WordPress 3.7 just got released and with it automatic updates. Now, in some cases, people may discover that their particular sites can’t update automagically. In my findings in the sites, we manage for clients the most common reason is that you have had to update WordPress previously by entering your FTP credentials. If you’ve done that once, changes are WordPress remembered those for you, but in this case, those credentials need to be placed in your wp-config.php
file in order for the automatic updates to work.
Luckily, all you need to do is add the following:
define( 'FTP_USER', 'username' );
define( 'FTP_PASS', 'password' );
define( 'FTP_HOST', 'ftp.example.org' ); // this usually can be 127.0.0.1
If this doesn’t work, you may need to add a few more constants–find more here–but in my experience, this solved all the issues we encountered. If you need help from a WordPress specialist, feel free to contact me.
Are you sure it isn’t an issue of PHP running as a different user and failing this comparison. I usually set
define( 'FS_METHOD', 'direct' )
and all is good to go.That one works sometimes as well. I’ve found that with the older Plesk servers for instance, the FTP always works and the direct still doesn’t. But thanks for bringing that one to the attention as well!
Hi Remkus,
I have good results with this new plugin:
http://wordpress.org/plugins/ftp-access/
Also see this articles:
http://digwp.com/2010/11/ftp-in-wpconfig/
http://digwp.com/2013/10/background-updates/
But the plugin works like a charm so far!
Milan.