I have a codeigniter application which creates folders using php. The owner of any folders created via php is apache , however if I want to upload a folder via ftp the owner is my ftp username.
I had an issue with php (apache) not being able to modify a file inside a folder that was uploaded via ftp because of permissions. In the meantime I have added my ftpuser to the apache group and apache to the ftpuser group but was wondering if there is a better way?