Wordpress Automatic Update Asking for FTP
Friday, March 20. 2009
Thanks! I’ve started playing with this now.
It’s slightly more picky than just requiring write permissions – the file owner has to be the apache user too.
Regards,
Rob…
Sounds risky! If you’re on shared hosting and Apache can write to your PHP scripts, then depending on how the server is setup other users on the server can alter your PHP code?
Tim,
It’s been a very long time since I was on shared hosting :) If you are on shared hosting, then you’ll have FTP enabled which is handled nicely by WordPress.
Rob…
Thank you very much for that explanation. I just had this issue while moving one of my blog to another server.
I will now need to know which directory permissions I must change to make it work.
Guib: Start by making sure the whole wordpress directory is owned by the user your webserver runs as. Then make sure that user has write permissions to the main wordpress files and the plugins directory – and you should be good to go I think.
Thank you, it worked after installing the PHP Zlib extension and re-starting Apache.
Your Blog post just solved a problem that has been plaguing me for more than a year. At first I thought Wordpress didn’t update because it required FTP to update, and since my server has no FTP access I assumed I couldn’t use the feature.
Today, someone with FTP on their server had the same problem with auto update not working and providing a valid FTP password didn’t do anything!
So, 8 hours later, I chown -R apache:apache deactive the auto update plugin, and now update works on all my servers.
Thank you so much for this blog post, Wordpress documentation of their auto update is a miserable failure.
Hmm..I have that problem but how exactly do I do it? I am not familiar with the term and how to change the permission.
Could you please show me this step by step? if it’s not too much to ask maybe? or do you know if someone have mentioned the steps in wordpress forum?
thank you
Hey there !
I finally found a plugin that did the job for me without changing permissions : it is called fix-plugin-update and you can find it here : http://yoast.com/fix-automatic-plugin-update/
Hope that will help
regards, Guib
Excellent, this plugin is PERFECT for our situation. We install WP into a jailcell from the customer and it has all the correct permissions for them to upload into the right areas but the wp-content folder isn’t owned by apache. The yoast fix-plugin-update plugin overlooks the ownership on the plugin-install.php script and just puts the files where they should be – which is how it should be anyway!
Thanks for the tip.
Thanks,
I have this problem for 3 years because i don’t know it is problem. Until i have new web hosting that don’t need ftp account info.
Thanks for suggestion for plug in it work well in my old web server that need ftp for update wp plug in.
There is a easier way with WP>2.9.2 (maybe even earlier)
Just add in your wp-config.php:
define(‘FS_METHOD’,‘direct’);
That’s all.
Thanks for this, I was wondering why this was happening. Will have to look into the file permissions now.
great insight. thank you. I moved my blog and forgot what I needed to do to avoid ftp. your suggestion works like a charm.
Thanks so much to everyone that has dropped in and said that this tip is working for them – I had to refer back to this myself the other day to remind me how to get around the FTP prompt!



LornaJane wrote an article on her blog about Wordpress automatic update asking for FTP . As I’ve been having problems with the automatic update too and since I also don’t want to install FTP I changed permissions as she suggested. Unfortun…
Tracked: Jul 15, 18:37