Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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!

share|improve this question

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

share|improve this answer
thanks but it won't help because the server is runing cPanel and there is many users on the server – Isaak Wahb Nov 4 '12 at 16:52

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.