When running: Linux / Apache, my[1.3.27]
While using file commands mkdir, rmdir, chmod, ... etc has the user ID of Apache NOT of the perl script. This will cause some confusion when using mkdir then file command.
You will get this error even thought the script is self made the DIR whether or not the directory has 0777 for permissions.
Warning: SAFE MODE Restriction in effect. The script whose uid is 1000 is not allowed to access /usr/local/psa/home/httpsdocs owned by uid 2255 in /usr/local/psa/home/httpsdocs/php/test.php on line 17
Bug or Notice that’s left up to you.