I am creating a Drupal 8 website with a custom theme. When css and js aggregation checkboxes are checked, js directory is created in sites/default/files/, however css folder does not get created.

Also all js and css is not working.

When I ran this command in terminal ls -l sites/default/ I get the following line for files folder

drwxrwxrwx 7 admin staff 224 May 10 10:30 files

Would there be any reason the site does not create css folder in sites/default/files?

Thanks in advance.

1 Answer 1


I believe this issue is due to incorrect permission. Can you check the permission on the folders. It will also be helpful if you print the related error/warning/notice logs with the question.


  • There is no specific error or logs for this issue. I edited the question adding permission code for sites/default/files directory
    – PHG
    May 10, 2018 at 14:45
  • What server are you using? Usually the server is the owner of the files/ folder (www-data). You can check for relevant notices on the Status report page and Recent log messages (Under Reports).
    – prkos
    May 10, 2018 at 16:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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