WordPress FTP Auto Upgrade on Ubuntu
Beware this content is over 7 years old and considered stale. It may no longer be accurate and/or reflect the understanding of the author but remains here for reference only. Please keep this in mind as you use this content.
More often than not, upgrading your WordPress platform can be a pain because it will involve various steps to ensure you don’t accidentally screw-up your entire site and database. And there is nothing wrong with it because backing-up your important data is always a good idea.
The annoying part is downloading the latest version of WordPress and then uploading those files to your server, ensuring you don’t accidentally overwrite your themes or plugins etc.
Using the built-in support for auto-upgrading via FTP is quite slick within WordPress 3.x and I’m sure will only improve.
I managed to be able to update WordPress from within the admin area using the following commands:
In this example I’m using VSFTPd as my FTP server and I’ve chosen to create a new user called ‘wordpress’.
sudo apt-get install vsftpd
Hopefully those commands should be self-explanatory but if you need clarification, drop a comment and I’ll try and make it plain.