I’m having a problem with file permissions and I’m wondering if anyone had any luck resolving this on an Apache server. This is not a version-specific issue—it happens on both EE1.6.9 and EE2.1.x.
If I try to overwrite an existing file using the EE file upload wizard, I get the following error message:
“An error was encountered while attempting to replace the file. Please make sure your file directory is writable.”
The directory permissions are 777, owner: ftp_user / group: usergroup. I can upload a new file, but can’t replace an existing file under the following circumstances:
1. If a contributor uses the EE file upload wizard to upload a file, the permissions are set as 644, owner: apache / group: apache.
2. If a user uploads a file via FTP, the permissions are set as 644, owner: ftp_user / group: usergroup.
Ask a result, apache can’t delete or overwrite files uploaded by ftp_user and ftp_user can’t delete or overwrite files uploaded by apache.
Anyone have any solutions? I’ve seen this come up on the forums before, but I’ve never seen a posted solution.
Normally this wouldn’t be a problem, except more and more of our clients have a mix of users—some who prefer FTP and others who prefer EE’s file upload wizard. I need a solution where both FTP users and EE file uploaders can live harmoniously!