0

在我的 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).
4

0 回答 0