文件系统问题

时间:2018-12-20 00:01:56

标签: ddev

在Mac上干净安装了ddev。

设置Drupal 8项目,并在sites / default / files文件夹上的文件权限有问题。由于某些原因,它会重置我设置的权限(chmod -R a + w),然后Web服务器之后将无法写入此文件夹。

文件归uid_1000 gid_50所有。

消息示例

Warning: file_put_contents(sites/default/files/php/twig/5c1ad9b345ce5_status-messages.html.twig_3IhisVoQLOYIb64NBegMDuHJs/.htaccess): failed to open stream: Permission denied in Drupal\Component\PhpStorage\FileStorage->ensureDirectory() (line 123 of core/lib/Drupal/Component/PhpStorage/FileStorage.php).

0 个答案:

没有答案