Druapl7 Note-3: the directory sites/default/files is not writable.(FIXED)

本文提供了一种解决Drupal网站因文件权限设置不当导致的问题的方法。主要包括调整/var/www目录下Drupal站点的文件权限为777,并确保更改递归应用到所有子文件夹及文件,创建并设置tmp目录权限。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

The problem is here:

message

Guys this is an easy fix. It is only a Unix files permission problem. Here is the fix:

  • 1. Change directory to the root of your Drupal site.

cd /var/www

  • 2. Set your permissions to 777 and try it out.

You can back off permissions to lock it down later, but get it working for now. Ensure to do it RECURSIVE. the -R is what is killing people in this post because there are already files in the directory that need to be writable for Drupal to work properly.

chmod 777 -R sites/default/files

  • 3. Now create a directory called tmp at the root of your site.

mkdir tmp

  • 4. Set the permissions there too.

chmod 777 -R tmp

Enjoy!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值