How to update WordPress?

I isntalled WordPress in my VPS, now WordPress released a new version, I want to update it, how I should to do? When I click the WordPress update url, it need enter FTP username and password, but my VPS does not seem to install FTP.

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.

If you’re using Ubuntu, the relevant command is <code>sudo chown -R www-data:www-data /path/to/WordPress_directory</code>

If anyone else is on Ubuntu 16.04 use sudo chown -R www-data:www-data /var/www. Updates work for me now

@shanelharder: <br> <br>You are absolutely right. I only skimmed the tutorial to try and see what you did. The Wordpress folder should be in /var/www and the paste you post does indeed confirm that it is. Very sorry! So yes, <br> <br><pre> <br>sudo chown -R www-data:www-data /var/www <br></pre> <br> <br>is correct. <br> <br>As for being scared of the process, one of the great things about being able to take snapshots of your droplet and spin up temporary ones for pennies is that you can just test it out on a throw-away droplet with out worries. And always make a backup! =)