Hi,

I was getting problems installing Drupal.

warning: is_file(): Stat failed for /upload_tmp/.htaccess (errno=13 - Permission denied) in /mounted-storage/home20a/sub001/sc19995-IHES/www/drupal/includes/file.inc on line 115.

warning: fopen(/upload_tmp/.htaccess): failed to open stream: Permission denied in /mounted-storage/home20a/sub001/sc19995-IHES/www/drupal/includes/file.inc on line 117.

Security warning: Couldn't write .htaccess file. Please create a .htaccess file in your /upload_tmp directory which contains the following lines:
SetHandler Drupal_Security_Do_Not_Remove_See_SA_2006_006
Options None

RewriteEngine off

in spite of going and creating said dirs and files and giving them right permissions.

The cure turned out to be to change the default listing of suggested temp dir from /upload_tmp to upload_tmp

I have no idea why this worked, but figure it might be important. If people think it might be common, maybe it's worth noting in the Handbook?

Comments

pwolanin’s picture

I think removing the leading slash means that Drupal puts this under your "files" directory. With the leading slash, it may be treated as an absolute system path (not sure).

---
Work: BioRAFT