Welcome Guest, Not a member yet? Register   Sign In
rename and permissions denied (with same owner/group)
#1

[eluser]antonumia[/eluser]
I have CI running a file migration system. Everything work apart from the file archiving side where I am trying to use rename to move files.

Files are uploaded by user henry (group henry), ci reads them and copies relevant files elsewhere on gthe server where they are owned by apache (group: apache).

Whenever I try rename i got a permissions denied error so I added a cron job to chown all files to apache:apache and chmod them to 0777.

I assumed that if the files were also owned by apache, php (CI) wouldn't have a problem but i still get permission denied.

I added a copy/unlink subtask to the script if rename fails and the files get copied fine. Unlink also causes the error.

This is ultra-basic stuff but I'm scratching my hair out now.

hopefully,

anton




Theme © iAndrew 2016 - Forum software by © MyBB