Proftpd and apache

LionRock

Verified User
Joined
Mar 30, 2007
Messages
93
Hi,

Im searching for this problem for a long time but nothing. When a user uploads some file thru ftp then files are owned like username:apache but if files are .php then apache returns error (Im using suphp) and when I chown files to user:user then everything works. Where I should make that files are owned with user:user so I dont nead to chown all files everytime my customer uploads something :/ Its realy annoying :/

Thans for the answers and have a nice day.

Best regards
 
So there is nothing that would fix this? This is the work that I must do it manually? Funny
 
Quickfix: Make a root-cron with the chown command in /home/user
SuPHP only works if you run PHP in (slow) CGI-mode. A better solution is to use Apache's mod_ruid.
 
Huhhh this is the only solution? A cronjob? Thats funny. That's not useful :(

Hummm so why the developers of DA dont use su_exec instead of suPHP ? o_O
 
The reason that a file would have an apache group on some OS's is because the public_html folder is chgrp to apache as well, and the OS is simply matching that.

If you change the permission of public_html to 755 and chown to username:username, then any uploaded files within that folder will be username:username as well. This only affects some OS's... it's a system thing that DA can't change.

You can go into DirectAdmin, and click the FileManager button.
Go to the /domains/domain.com path, then on the public_html folder, his "Reset Ownership" .. or the recursive version to also do all files under the public_html folder as well. (you need a recent version of DA to do this)

John
 
Are you shure that this is a system thing? Because on my other machin (no DA installed), where Im using the same OS (FreeBSD), and Im using vsftpd and all users are in jail (esjail), which is not the reason, it all works prfectly. Every user file that is uploaded thru FTP its chowned to his username:username which is correct :/

So I think thats not the system problem IMO.


Best regards
 
Is vsftpd doing something?

I don't have time to play with this issue now, but if someone can write a complete test scenario I can have one of our admins try it on a CentOS4 or CentOS5 testbed to see various scenarios.

Jeff
 
Back
Top