Page 1 of 1

cannot log in from proftpd in my local XAMPP created site

PostPosted: 04. June 2015 18:59
by mmyron
Hi all!
I recently installed xampp in a virtualbox machine running mint 17.1 xfce.
I tried to install wordpress but I can't use ftp with it because I can't log in.
In opt/lampp/etc in the proftpd.conf the user is "daemon".
I also tried fillezila but with the "daemon" credentials I still can't log in.
What am I missing here?

Re: cannot log in from proftpd in my local XAMPP created sit

PostPosted: 04. June 2015 21:08
by Nobbie
You have to apply real user data from your distribution.

Re: cannot log in from proftpd in my local XAMPP created sit

PostPosted: 05. June 2015 10:22
by mmyron
Nobbie wrote:You have to apply real user data from your distribution.


You mean I have to add an existing users credentials to proftpd.conf?
I've saw the user section in the file but the password is encrypted. How do I do this?

Re: cannot log in from proftpd in my local XAMPP created sit

PostPosted: 05. June 2015 15:53
by Nobbie
mmyron wrote:You mean I have to add an existing users credentials to proftpd.conf?


No, you simply have to enter an login an existing UNIX User from /etc/password.

For example. you can login to FTP with your personal UserID and your personal password, if you do so, FTP will start in your home directory. As there is no User for Xampp, you may create a new User (with the "adduser" command) for Xampp (for example call it "xampp") and provide /opt/lampp/ or /opt/lampp/htdocs as home directory.

If you do so, you also should change ownership of /opt/lampp/htdocs to User "xampp" and finally edit httpd.conf and apply "User = xampp", after then Apache will be started from User xampp. Otherwise you might get problems that the FTP User xampp does not have the same rights as the Apache process, which also reads and creates files. This is in fact basic Linux knowledge and not Xampp knowledge.

Re: cannot log in from proftpd in my local XAMPP created sit

PostPosted: 05. June 2015 18:08
by glitzi85
Aside from what Nobbie already said: The User-Directive in proftpd.conf describes under which user account the ftp server runs. It has nothing to do with login!