php – 文件系统不可写

发布时间:2022-04-30 发布网站:脚本宝典
脚本宝典收集整理的这篇文章主要介绍了php – 文件系统不可写脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
我成功地在Web主机中安装了Drupal 7.
安装模块后,出现错误错误,状态报告给出了以下错误消息:
File system Not wrITable
The directory /Applications/MamP/tmp/PHP does not exist.
You may need to set the correct directory at the file system settings page or
change the current directory's PErmissions so that it is writable.

我检查(sites / default / files)的权限,它有755权限,我将其更改为777但没有任何反应,所以我将其返回.

我有(主页»管理»配置»媒体)的以下设置:

Public file system path
sites/default/files

Temporary directory
/Applications/MAMP/tmp/PHP

这是我得到的错误

Warning: file_put_contents(temporary://fileDyFbDg) [function.file-put-contents]: Failed to open stream: "DrupalTemporaryStreamWrapper::stream_open" call Failed in file_unmanaged_save_data() (line 1898 of /home/imamus/public_htML/includes/file.inc).
The file Could not be created.
Warning: file_put_contents(temporary://fileeTFMpl) [function.file-put-contents]: Failed to open stream: "DrupalTemporaryStreamWrapper::stream_open" call Failed in file_unmanaged_save_data() (line 1898 of /home/imamus/public_html/includes/file.inc).
The file Could not be created.
Warning: file_put_contents(temporary://fileuB8Tdu) [function.file-put-contents]: Failed to open stream: "DrupalTemporaryStreamWrapper::stream_open" call Failed in file_unmanaged_save_data() (line 1898 of /home/imamus/public_html/includes/file.inc).
The file Could not be created.
Warning: file_put_contents(temporary://filea1KYXG) [function.file-put-contents]: Failed to open stream: "DrupalTemporaryStreamWrapper::stream_open" call Failed in file_unmanaged_save_data() (line 1898 of /home/imamus/public_html/includes/file.inc).
The file Could not be created.

请指教.

为/ Applications / MAMP / tmp / PHP做同样的事情

脚本宝典总结

以上是脚本宝典为你收集整理的php – 文件系统不可写全部内容,希望文章能够帮你解决php – 文件系统不可写所遇到的问题。

如果觉得脚本宝典网站内容还不错,欢迎将脚本宝典推荐好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。