I am running Drupal8.1.7 on OpenSUSE Leap 42.1. Apache2 runs as wwwrun, and my whole drupal8 directory is
chown -R wwwrun:www drupal8
But when I try to install the admin toolbar, I get permission errors:

Warning: mkdir(): Permission denied in Drupal\Component\PhpStorage\FileStorage->createDirectory() (line 176 of core/lib/Drupal/Component/PhpStorage/FileStorage.php).

What am I doing wrong?

Comments

yelvington’s picture

Never have the Drupal files owned by the webserver process. Only the files directory (sites/default/files) should be writable by Apache. The rest should be owned by you.

tjtj’s picture

If I follow https://www.drupal.org/node/244924, I can no longer install modules from the Web interface. How do I fix this?

I installed it manually and get:
×Error message The specified file temporary://fileKoW2PW could not be moved/copied because the destination directory is not properly configured. This may be caused by a problem with file or directory permissions. More information is available in the system log.

Doesn't the webserver need write permissions to the modules and themes directories (and maybe more) to do things like installing modules and themes?

and once again, my site is screwed up.