Hi,
I noticed that the there is a error displayed on the configuration page about .htaccess file.
Warning: file_put_contents(temporary:///.htaccess): failed to open stream: "DrupalTemporaryStreamWrapper::stream_open" call failed in file_create_htaccess() (line 494 of /var/www/html/drupal/includes/file.inc).
I don't exactly know that it means, i checked the file but i can't translate the location on line 494 to the real location; can you help me?
Thanks in advance!
Regards,
David
Hi David,
Please set permission read, write for folder temporary : sites/default/files/temp, chmod for all folders and sub folders in sites/default/files to 755 and chmod for all files in sites/default/files to 644.
Hi Phuonght,
I changed it as requested but still see this error:
sites/default/files/temp is 0666
folders and sub folders of sites/default/files is 0755
all files in sites/default/files are 0644.
Thanks again!
regards
david
Please open /admin/config/media/file-system
and set permission for all folder in order drupal can read and write, especially folder Temporary directory
Hi Phuonght,
It worked; i changed the locations indeed and also neede to set Execute for the Owner on the temp folder; after that; the .htaccess was created. the temp is now: 0766; is that also OK?
Thanks!
David
Permission of temp is ok.
Also, we recommend some folders of Drupal as below:
- Folder sites/default/files: chmod 775
- Folder sites/default: chmod 755
- Other folder in sites/: chmod 755
file config of Drupal: chmode 444 (sites/default/settings.php)