Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have installed wordpress on my ubuntu 10.10 desktop edition and I am trying to install plugin from the browser (I know I can drop it to the wp-content/plugin but I want to do it via the web browser using FTP) I get this screen when I am trying to set auto update or install a plugin from web browser.

alt text

I provide the hostname 127.0.0.1 and Username and password the ones that I use to login to wordpress. I get the error

Username/password Incorrect and cannot connect to 127.0.0.1:20

I think i'll have to grant a user with ftp password but I dont know how. I have already installed vsftp but when I try "ftp 127.0.0.1" I get -

gaurav@gaurav-desktop:~$ ftp 127.0.0.1

Connected to 127.0.0.1.

220 (vsFTPd 2.3.0)

Name (127.0.0.1:gaurav): root

331 Please specify the password.

Password:

530 Login incorrect.

Login failed. ftp>

Wordpress is running locally on my Ubuntu Desktop.

share|improve this question
add comment

3 Answers

up vote 8 down vote accepted

Well your Wordpress login and your FTP login are two different things. I have see that you use vsFTPd, so one easy thing that you can do it this :

Edit the vsFTPd configuration file :

gksu gedit /etc/vsftpd.conf

Add this at the end :

local_enable=YES

Restart your vsFTPd server :

sudo /etc/init.d/vsftpd restart

Now you should be able to connect to your FTP using your Ubuntu login.

share|improve this answer
    
and how can I grant a user (wordpress user) access to FTP who can use FTP over the network –  Gaurav Butola Nov 22 '10 at 7:55
    
I would also not login as root, but create a dummy user, make him part of your www-data group and use it to push updates/install –  csgeek Nov 22 '10 at 15:14
    
I had this same issue and just wanted to add for any others that are going through this that you need to use '127.0.0.1' and not 'localhost'. Or at least I did. Also had to use FTP not FTPS. –  Jay Jan 8 '11 at 8:31
add comment

If you are using the default file the problem I had was not seeing enable write access. That resolved my problems.

listen=YES
local_enable=YES
write_enable=YES
dirmessage_enable=YES
use_localtime=YES
xferlog_enable=YES
connect_from_port_20=YES
secure_chroot_dir=/var/run/vsftpd/empty
pam_service_name=vsftpd
rsa_cert_file=/etc/ssl/private/vsftpd.pem
share|improve this answer
add comment

To configure vsftpd, open vsftpd.conf in /etc and copy paste the following into your vsftpd.conf

listen=YES
anonymous_enable=YES
anon_root=/srv/ftp
dirmessage_enable=YES
use_localtime=YES
xferlog_enable=YES
connect_from_port_20=YES
ftpd_banner=Welcome to my FTP server.
chroot_local_user=YES
secure_chroot_dir=/var/run/vsftpd/empty
pam_service_name=vsftpd
rsa_cert_file=/etc/ssl/private/vsftpd.pem

Note:
You should create a new directory inside /srv in the name ftp or what ever name you prefer.If you prefer another name then you should change the line anon_root=/srv/ftp to anon_root=/srv/toyourfoldername Now place all your files inside the folder /srv/ftp

To test your settings in localhost type:

ftp://127.0.0.1
If you have any problems let me know.

To start/stop/restart vsftpd:

sudo service vsftpd start
sudo service vsftpd stop
sudo service vsftpd restart
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.