Results 1 to 7 of 7

Thread: VSFTPD on Ubuntu for Joomla! & FTP

  1. #1
    Join Date
    Aug 2007
    Location
    Nine Towers
    Beans
    336
    Distro
    Ubuntu 10.10 Maverick Meerkat

    VSFTPD on Ubuntu for Joomla! & FTP

    I am installing Joomla! on my local Ubuntu server. To make Joomla! run smoothly I need FTP access. I decided to install VSFTP
    Code:
     sudo apt-get install vsftpd
    started the service:
    Code:
     sudo /etc/init.d/vsftpd start
    Then I realized I needed to added myself to FTP users. I found info here: http://linux-hacks.blogspot.com/2008...to-vsftpd.html and created vsftpd.chroot_list in /etc/ using
    Code:
    sudo gedit vsftpd.chroot_list
    I added my user name and restarted the VSFTP service:
    Code:
    sudo /etc/init.d/vsftpd restart
    Then I resumed the J! setup. I entered the FTP details and clicked autofind path. I got the error: "Could not connect to FTP Server"
    Any ideas why? Password and user should be correct...
    process `skype' is using obsolete setsockopt SO_BSDCOMPAT

  2. #2
    Join Date
    Aug 2007
    Location
    Nine Towers
    Beans
    336
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: VSFTPD on Ubuntu for Joomla! & FTP

    made a few changes in vsftpd.conf:
    Code:
    # Uncomment this to allow local users to log in.
    local_enable=YES
    and
    Code:
    # You may restrict local users to their home directories.  See the FAQ for
    # the possible risks in this before using chroot_local_user or
    #chroot_list_enable below.
    chroot_local_user=YES
    Restarted the vsftpd service.
    Code:
    sudo /etc/init.d/vsftpd restart
    Had a new error: Not able to auto-detect the FTP root folder
    process `skype' is using obsolete setsockopt SO_BSDCOMPAT

  3. #3
    Join Date
    Aug 2007
    Location
    Nine Towers
    Beans
    336
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: VSFTPD on Ubuntu for Joomla! & FTP

    I made another change:
    Code:
    # Sets root directory for non-anonymous users
    local_root=/var/www/cms
    Restarted the service and tried again. Still getting: "Not able to auto-detect the FTP root folder"

    Just read:
    This option represents a directory which vsftpd will try to change into after a local (i.e. non-anonymous) login. Failure is
    silently ignored.

    So I guess my chroot is somehow not working??

    Here is my vsftpd.conf using
    Code:
    grep -v '^#' /etc/vsftpd.conf
    :
    Code:
    listen=YES
    anonymous_enable=NO
    local_enable=YES
    dirmessage_enable=YES
    xferlog_enable=YES
    connect_from_port_20=YES
    ftpd_banner=Welcome to Jubuntu FTP
    chroot_local_user=YES
    chroot_list_enable=YES
    chroot_list_file=/etc/vsftpd.chroot_list
    secure_chroot_dir=/var/run/vsftpd
    pam_service_name=vsftpd
    rsa_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
    rsa_private_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
    local_root=/var/www/cms
    Last edited by Stoneface; September 27th, 2009 at 10:26 AM. Reason: additional data
    process `skype' is using obsolete setsockopt SO_BSDCOMPAT

  4. #4
    Join Date
    Aug 2007
    Location
    Nine Towers
    Beans
    336
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: VSFTPD on Ubuntu for Joomla! & FTP

    New vsftpd.conf

    Code:
    listen=YES
    anonymous_enable=NO
    local_enable=YES
    write_enable=YES
    local_umask=022
    dirmessage_enable=YES
    xferlog_enable=YES
    connect_from_port_20=YES
    xferlog_std_format=YES
    ftpd_banner=Welcome to Jubuntu FTP
    chroot_local_user=YES
    chroot_list_enable=YES
    chroot_list_file=/etc/vsftpd.chroot_list
    secure_chroot_dir=/var/run/vsftpd
    pam_service_name=vsftpd
    rsa_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
    rsa_private_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
    When I use this configuration:
    Code:
    listen=YES
    anonymous_enable=NO
    local_enable=YES
    write_enable=YES
    local_umask=022
    dirmessage_enable=YES
    xferlog_enable=YES
    connect_from_port_20=YES
    xferlog_std_format=YES
    ftpd_banner=Welcome to Jubuntu FTP
    chroot_local_user=YES
    secure_chroot_dir=/var/run/vsftpd
    pam_service_name=vsftpd
    rsa_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
    rsa_private_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
    No change either...
    Still no FTP root path found!!!! Anybody????
    Last edited by Stoneface; September 27th, 2009 at 11:19 AM.
    process `skype' is using obsolete setsockopt SO_BSDCOMPAT

  5. #5
    Join Date
    Aug 2007
    Location
    Nine Towers
    Beans
    336
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: VSFTPD on Ubuntu for Joomla! & FTP

    The funny thing is that I can FTP to my local server now
    Code:
    me@my-laptop:/etc$ ftp localhost
    Connected to localhost.
    220 Welcome to Jubuntu FTP
    Name (localhost:me): me
    331 Please specify the password.
    Password:
    230 Login successful.
    Remote system type is UNIX.
    Using binary mode to transfer files.
    So why can't joomla! find the ftp root path???
    process `skype' is using obsolete setsockopt SO_BSDCOMPAT

  6. #6
    Join Date
    Aug 2007
    Location
    Nine Towers
    Beans
    336
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: VSFTPD on Ubuntu for Joomla! & FTP

    Maybe it has something to do with user permissions on my box?
    The joomla! folder is now in the group www-data and so is the user (me) I use to access the server by ftp. I can FTP to the localhost without any problems and wind up in the root folder I have set in the vsftpd.conf... So what is the problem here?
    process `skype' is using obsolete setsockopt SO_BSDCOMPAT

  7. #7
    Join Date
    Aug 2007
    Location
    Nine Towers
    Beans
    336
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: VSFTPD on Ubuntu for Joomla! & FTP

    Well I used / as path to ftp root. Finished the installation and removed the installation file. Now when I want to upload and unpack a component I have to enter FTP data. And then I still have issues:
    Code:
    JFTP::store: Bad response Warning! Failed to move file.
    This is starting to bug me... So I checked the file permissions on my joomla folder and saw this:
    Code:
    drwxr-xr-x 16 www-data   33     4096 2009-09-27 15:42 joomla
    well I
    Code:
    sudo chown -R me /var/www/joomla
    and got this doing ls -l
    Code:
    drwxr-xr-x 16 me   33     4096 2009-09-27 15:42 joomla
    Now I still need to replace 33 by an actual existing group..
    Did that
    Code:
    sudo chgrp -R me joomla
    Then I added the ftp details to configuration.php and all was cool. I guess it was a basic file and group permission issue in the end.
    Last edited by Stoneface; September 27th, 2009 at 01:20 PM.
    process `skype' is using obsolete setsockopt SO_BSDCOMPAT

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •