Need a little help as I'm stuck.
I have a custom setup on the server and proftpd running (only when required).
The folder structure for websites is like this:
www = owner: www_users, group: www_users
domain.tld = owner: www_users, group: www_users
public_html = owner: www_users, group: www_users
All sites have the same owner and are in the same group as above.
Now I had to install suPHP which works fine.
For each site, I created a new user for proftpd and added the user to group www_users. So that the required sites (just a few of them) have their own username/password for ftp login.
Of course the problem here are the permissions.
If I leave it as it is, suPHP is working fine, proftpd can login, view files but cannot upload (550 permission denied error).
If I change (chown -R ftpuser1:www_users *) for a domain (public_html folder) the owner to "ftpuser1", group as "www_users", FTP is working fine, I can upload, delete,...
But the website gives the 500 error:
[Thu Jan 19 10:12:47 2012] [warn] Directory /home/www/domain.tld is not owned by ftpuser1
Even if I chown "domain.tld" folder, suphp still gives me the above warn.
I can't figure out how to convince suphp to allow ftpuser1 as the owner.
;Path to logfile
;User Apache is running as
;Path all scripts have to be in
;Path to chroot() to before executing script
; Security options
;Check wheter script is within DOCUMENT_ROOT
;Send minor error messages to browser
;PATH environment variable
;Umask to set, specify in octal notation
; Minimum UID
; Minimum GID
;Handler for php-scripts
;Handler for CGI-scripts
Current folder structure (suphp works, proftpd gives 550 error):
drwxr-xr-x 3 www_users www_users 4096 Aug 13 2009 domain.tld
drwxr-xr-x 21 www_users www_users 4096 Jan 19 10:12 public_html
Inside the "public_html" all files and folders are "www_users" owner and group.
uid=5003(ftpuser1) gid=5001(www_users) groups=5001(www_users)
Need help please.