Drupal Error - not allowed to access /tmp owned by uid 0

You may see these types of error message in your Drupal installation.

  • The script whose uid is xxxx is not allowed to access /tmp owned by uid 0
  • The directory /tmp does not exist and could not be created.

Solution

This error message happens mostly because your server has PHP running in safe mode.
If you have root access to server, you can disable safe mode in PHP configuration.
If you are on a shared hosting / Reseller hosting, contact your hosting provider to disable safe mode for PHP.

How to disable PHP safe mode on a cPanel server

If you have root access of server, you can disable PHP safe mode from WHM.
Home » Service Configuration » PHP Configuration Editor

Category: