Victor Aboytes
Forum Replies Created
-
Forum: Localhost Installs
In reply to: Failed to connect to FTP Server localhost:21Hi everyone, some days ago I ran into the same problem when I was installing my first WordPress server under Linux Ubuntu Server 12. As many of you, I tried some procedures with no good results so I’d like to share how I fixed this issue:
1.- Be sure that you have installed and configured ‘vsftpd’ in order to be able to FTP your server:
sudo apt-get install vsftpd2.- Edit your vsftpd.conf file in order to disable anonymous connections and allowing your user to upload files to your server:
sudo gedit /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 start3.- If you noticed.. your /var/www/wordpress folder (also files and sub-folders) by default owns to root, so you have to change the ownership to you be able to modify, add, delete files into the
Wordpress folder: (substitute ‘username’ by the user name you are using in linux)
sudo chown -R username wordpressIf you don’t want WordPress ask for FTP details every time you install or delete plugins, add this lines into your /var/www/wordpress/wp-config.php file:
define(‘FTP_HOST’, ‘localhost’);
define(‘FTP_USER’, ‘your_linux_Username’);
define(‘FTP_PASS’, ‘Your_linux_password’);And that’s it!!! If someone have questions regarding this procedure please write me at [email protected]
Thks