0

I navigate to admin/config/media/file-system in the drupal admin interface. I get this error

Warning: mkdir(): Permission denied in Drupal\Core\File\FileSystem->mkdirCall() (line 244 of core/lib/Drupal/Core/File/FileSystem.php) .

I granted the permission to sites folder using the following commands chown -R www-data:www-data sites and chmod -R g+rw sites.
But still the error appears.

Any advice?

  • Are you sure that the owner is www-data ? – berramou Aug 24 at 13:10
  • @berramou I check the permissions using "ls -al" I found this "drwxrwxr-x 3 www-data www-data 4096 Aug 6 06:06 sites" – IDI Aug 25 at 13:00
  • OKay so it's not owner issue, give the /tmp Permission 777 and try ? – berramou Aug 25 at 13:07
  • And also check the permissions of your files directory not only sites folder – berramou Aug 25 at 13:09
  • @berramou the www/html/sites/default/files permission is "drwxrwxr-x 49 www-data www-data 4096 Aug 2 08:09 files" and I don't have /tmp folder! Should I create empty tmp foler? – IDI Aug 25 at 14:09
-1

First of all make sure that the files directory (sites/default/files by default) has the right owner and permissions.
And also directory of temporary files, in general /tmp if you don't have create one and give it the right permissions.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.