0

When CakePHP create a new Folder or File, its always owned by nobody and is set to 0755 or 0644

and for so i cant run php in SuPHP mode under the cPanel server

to fix this i always run a Cron which set the normal permissions for the new created folders or files ...

how can i make CakePHP to create the new Folders and Files under the ownership of the user who run the CakePHP

Note: all core files of CakePHP and its controllers are runing under the ownership of the user, only new uploaded or created folders or files are set to nobody!

Tom O'Connor
  • 27,480
  • 10
  • 73
  • 148

1 Answers1

1

Just a quick idea - how about mounting the directory on a separate filesystem with a fixed UID?

http://linux.die.net/man/8/mount

d33tah
  • 321
  • 5
  • 15
  • thanks but it won't help because the server is runing cPanel and there is many users on the server –  Nov 04 '12 at 16:52