Eugeny / ajenti-v

Virtual Hosting addon for Ajenti
ajenti.org/#product-ajenti-v
MIT License
225 stars 79 forks source link

Cant login via FTP using FileZilla #58

Closed ghost closed 10 years ago

ghost commented 10 years ago

I created website via websites menu then go to FTP tab, user already created with has password, I set site directory to /srv/mysite After save all changes I try to login to FTP using FileZilla, but I got these responses

Response: 500 OOPS: cannot change directory:/var/www Error: Critical error Error: Could not connect to server

Could you help me how to solve this?

jadsonlourenco commented 10 years ago

try this:

ln -s /srv /var/www chown -R www-data:www-data /var/www

on you server, you root. And restart VSFTPD e try again on filezilla.

ghost commented 10 years ago

How about if I create another website? With that command, will each user have own site directory? I see using ls -l ajenti created /srv/mysite directory with this owner: www-data 6226

jadsonlourenco commented 10 years ago

see, the FTP system believes that their sites are in /var/www with these two command you will create a symbolic link to the correct folder (/srv) where the sites are and then make the user www-data master folder of your site, but do not worry the same user is allowed by FTP.

If you use a system user for each site then you need to add this user to group www-data.

ghost commented 10 years ago

okay I think you solve my problem, thanks for your help :)