Hi I am getting this error from the drupal site admin > settings page for www.rainbowplanet.com.au
* warning: mkdir() [function.mkdir]: SAFE MODE Restriction in effect. The script whose uid is 33340 is not allowed to access /tmp owned by uid 0 in /home2/gavanbr/public_html/rainbowplanet/includes/file.inc on line 91.
* The directory /tmp does not exist.
What does this mean, how am I supposed to fix it?
I am a newbie and unsure what to do.
Can anybody help, it would be greatly appreaciated.
Regards
Gavan Bright
System specs
I am running Drupal 5.0
Operating system Linux
Service Status Click to View
Kernel version 2.6.9-42.0.8.ELsmp
Machine Type i686
Apache version 1.3.37 (Unix)
PERL version 5.8.7
PHP version 5.2.0
MySQL version 5.0.24-standard
Comments
Comment #1
gbright commentedhere is the code from the file.inc
Comment #2
sparr commentedYou need to disable PHP's safe_mode directive (in php.ini or your httpd.conf or an htaccess file) in order to get access to /tmp (and a bunch of other places).
Comment #3
telegraf commentedI cannot turn SAFE MODE off.
And the error message 'The selected file %file could not be uploaded, because the destination %directory is not properly configured.' drove me crazy.
Luckily, I found solution on http://jan.baresovi.cz/dr/en/drupal-safe-mode
Following code added to file.inc worked for me: