interfasys
Verified User
My public_html folders are user:apache and I use the access group.
After a move, public_html is user:user.
After a move, public_html is user:user.
/usr/local/directadmin/directadmin c | grep apache_public_html | cut -d= -f2
To clarify the apache_public_html=1 option is old old old.. and I don't really recommend mixing it with the secure_access_group option. (these are 2 different settings)
This doesn't work very well with open base_dir and includes (when files are called using relative paths I think). Sites were broken until I changed ownership.If you're using the secure_access_group option then you don't need apache group on the public_html, because /home/username is chmod 750 user:access, where the apache user is in the "access" group, thus that's where it's locked down.. way up at /home/user, and not down at the public_html level (except Admin/Resellers, it's at /home/reseller/domains due to backup directories)
The code changes the value for the top folder, but doesn't do it recursively, so sites break.I did some testing, and found that the code for this is already set in the move_domain.sh script. When I tested, the public_html directory did end up chgrp apache as expected...
This would be a head scratcher... can you paste any errors from the scripts? I'm not seeing how it would make a difference at what level the 750 is set, as if a process has access to a path, assuming it's 755 all the way down below it (or 750 with apache group), it shouldn't matter.This doesn't work very well with open base_dir and includes (when files are called using relative paths I think). Sites were broken until I changed ownership.
DA only set's one directory to be chgrp apache (or chgrp access with secure_access_group). Any files that end up with an apache group would have been set that way via the system (based on it's parent permissions perhaps), or via php upload... If you're referring to those files, then yes, they would break.. the script doesn't account for apache owned files added by clients... it would be something that would need to be looked at (the level of complexity goes up with this type of check). FYI, using suPhp wouldn't be affected by this.The code changes the value for the top folder, but doesn't do it recursively, so sites break.
I think there is some missing documentation regarding the permissions of public_html, apparently "apache_public_html" trumps "secure_access_group".Using them both at the same time shouldn't hurt anything, it's just redundant since the apache user is in the access group.
This would be a head scratcher... can you paste any errors from the scripts? I'm not seeing how it would make a difference at what level the 750 is set, as if a process has access to a path, assuming it's 755 all the way down below it (or 750 with apache group), it shouldn't matter.
I'm doing some tests and will paste my findings. I think it's a problem for apps that allow plugins, like Wordpress.DA only set's one directory to be chgrp apache (or chgrp access with secure_access_group). Any files that end up with an apache group would have been set that way via the system (based on it's parent permissions perhaps), or via php upload... If you're referring to those files, then yes, they would break.. the script doesn't account for apache owned files added by clients... it would be something that would need to be looked at (the level of complexity goes up with this type of check). FYI, using suPhp wouldn't be affected by this.