Setup FTP/SFTP server for ubuntu server 12.04 and wordpress
You can omit this section if you do have any ftp server setup already on your server.
Otherwise do the following to install ftp server called vsftd.
sudo apt-get install vsftpd
Now edit your vsftpd.conf file in order to disable anonymous connections and allowing your user to upload files to your server:
sudo nano /etc/vsftpd.conf
By default anonymous connections are allowed. So, you should change the following line and have it in this way:
anonymous_enable=NO
Also, by default, local system users are not allowed to login to FTP server. To change this setting, you should uncomment the following line:
#local_enable=YES
In the same way, users are allowed to download files from FTP server, but they are not allowed to upload files to FTP server. To change this setting, you should uncomment the following line:
#write_enable=YES
Save the changes made and start the vsftpd daemon running the following command:
sudo /etc/init.d/vsftpd start
If you receive error during wordpress installation
wordpress Username/Password incorrect
Then just restart vsftpd daemon
sudo /etc/init.d/vsftpd restart