Question

How do I enable Wordpress to update itself through its back end?

  • Posted on September 30, 2013
  • ethanAsked by ethan

On hosts where I didn’t have the control over the server that I have now, I could update Wordpress’ core, plugins, themes and the like from Wordpress’ back end. Now, running multiple sites on virtual servers, if I try to update something, I get the following prompt:

<b>To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed.</b> Under that are boxes for the Hostname, FTP User, and FTP Password, and then radio buttons for FTP or FTP (SSL).

I’ve tried the IP address of my server, the name of my server, ‘localhost’, and the domain name of the site I’m trying to update - none of which work. I’m able to log in to FTP (SSL) with Cyberduck with user/password when pointing to the server’s IP, but it seems Wordpress doesn’t know what to do with that.

Could someone help me fix this problem?

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Bingo! Permissions problems, indeed! <br> <br>Easy fix, my friend: <br> <br><code>sudo chown -R www-data:www-data /var/www</code>

Thanks, ethan. <br> <br>As far as I know, apache should be running as ‘www-data’. Try allowing www-data to write to /var/www/sitename.com/: <br> <br><pre>sudo chgrp -R www-data /var/www/sitename.com <br>sudo chmod -R g+w /var/www/sitename.com <br>find /var/www/sitename.com -type d -exec chmod g+s {} ;</pre> <br> <br>The first command changes the group owernship of every file in /var/www/sitename.com to be owned by the group ‘www-data’. The second command allows members of the file’s group to write to the file (+w). The third command searches for directories in /var/www/sitename.com and sets setgid so that new subdirectories/subfiles are also owned by the group ‘www-data’. <br> <br>Please let me know if that helps. <br> <br>Thanks.

This comment has been deleted