Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/274.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/wordpress/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 如何使文件夹可写_Php_Wordpress_Plugins_Directory - Fatal编程技术网

Php 如何使文件夹可写

Php 如何使文件夹可写,php,wordpress,plugins,directory,Php,Wordpress,Plugins,Directory,我正在使用wordpress和Woocomece开发一个网站。 但当我进入系统状态时,它会说: 要允许日志记录,请将C:\inetpub\wwwroot/wp content/uploads/wc logs/writable或定义自定义wc\u LOG\u DIR。 有人知道如何解决这个问题吗?能为我做一个循序渐进的小教程吗?因为我有点疯了。我在谷歌上搜索了一下,但什么都没用,所以。。。我来了。等待答案。检查下面的URL以获得理想的word press 检查下面的URL以获得理想的word pr

我正在使用wordpress和Woocomece开发一个网站。 但当我进入系统状态时,它会说:
要允许日志记录,请将C:\inetpub\wwwroot/wp content/uploads/wc logs/writable或定义自定义wc\u LOG\u DIR。


有人知道如何解决这个问题吗?能为我做一个循序渐进的小教程吗?因为我有点疯了。我在谷歌上搜索了一下,但什么都没用,所以。。。我来了。等待答案。

检查下面的URL以获得理想的word press


检查下面的URL以获得理想的word press


有关IIS7的权限设置,请参见以下内容

有关IIS7的权限设置,请参见以下内容

在wp配置中粘贴下一行。 这解决了我的问题

define( 'WC_LOG_DIR', dirname( __FILE__ ) . '/wp-content/uploads/wc-logs/' );

将下面的行粘贴到wp config中。 这解决了我的问题

define( 'WC_LOG_DIR', dirname( __FILE__ ) . '/wp-content/uploads/wc-logs/' );

使用类似filezilla的ftp客户端登录,并将目录的文件权限更改为可写664@chop62他在windows上,无法通过在ftp客户端(如filezilla)中设置666Log使目录可写,并将目录的文件权限更改为可写664@chop62他在窗户上,无法通过设置666使目录可写