pureftpd and apache2 file permissions

Discussion in 'HOWTO-Related Questions' started by thesquib, Nov 28, 2007.

  1. thesquib

    thesquib New Member

    Hey all,
    I followed through the pureftpd with mysql backend tutorial. It works well! But I also have apache 2 running on the same machine.

    I'm not sure how to do the file permissions... pureftpd runs as ftpuser and apache runs as www-data. However I want an ftp user to be able to delete/upload/download files from a web folder. (www.domain.tld)

    Should I make apache and ftp run as the same user?
     
  2. falko

    falko Super Moderator ISPConfig Developer

    I'd chown the web folder to ftpuser. As long as you don't upload files through Apache (through a web form), this should work fine. If you are the only user on the server, you could as well do a chmod 777 on the web folder.
     

Share This Page