Please answer this simple SPAM challenge: two minus two?
(Example: nine)

The Note You're Voting On

bsd912 at 163 dot com
10 months ago
When in safe mode, mkdir creates folders with apache's UID, though the files you create in them are of your script's UID (usually the same as your FTP uid).

What this means is that if you create a folder, you won't be able to remove it, nor to remove any of the files you've created in it (because those operations require the UID to be the same).

Ideally mkdir should create the folder with the script's UID, but this has already been discussed and will not be fixed in the near future.

And my solution to fix this problem is:
1. You need append the apache group to your script's UID.
2. Turn on safe_mode_gid in the php.ini
3. Chgrp the script to apache, but don't change the UID
4. Now you can use safe_mode and mkdir now.

<< Back to user notes page

To Top