کد:
To avoid the server-can't-access-files-it-has-written error, the server administrator can enable PHP's safe_mode_gid by adding this line
safe_mode_gid = On to the the server's PHP configuration file (php.ini) and restarting the web server daemon.
Your web hosting provider should be willing to enable safe_mode_gid (manual page) for you because the security benefit probably exceeds the security risk. This is because
- files written in ordinary (non-SetGID) directories still will be blocked, and
- leaving it disabled encourages users to use world-writable directories and files.