Problem

Drupal gives you an error message:

The selected file .../tmp/file0E02iw could not be copied

Analysis

The reasons of this message might be several. Herein we discuss a problem where this message is generated because safe_mode is in effect but permissions of files and configuration of web server is incorrect.

Solution

The solution is the following:

  • turn on safe_mode_gid in php.ini
  • change perms to 2775 and user.group to {upload_tmp_dir}
  • change perms to 2775 and user.group to {DRUPAL_ROOT}/sites,{DRUPAL_ROOT}/sites/default, {DRUPAL_ROOT}/sites/all,{DRUPAL_ROOT}/sites/default/files, {DRUPAL_ROOT}/sites/default/files/tmp a {DRUPAL_ROOT}/sites/default/files/languages

References

  1. http://drupal.org/node/82223
Configuring safe_mode enabled PHP with Drupal

Leave a Reply

Your email address will not be published. Required fields are marked *