无法在IIS上设置upload_tmp_dir [英] Unable to set upload_tmp_dir on IIS

查看:144
本文介绍了无法在IIS上设置upload_tmp_dir的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我试图在IIS机器上设置 php upload_tmp_dir 设置。

So I'm trying to set the php upload_tmp_dir setting on an IIS machine.

设置 php.ini phpinfo()仍显示默认文件夹。我检查了有写,读,修改等 IIS_IUSRS 的权限。

I changed the setting in php.ini but phpinfo() still shows the default folder. I checked the permissions of IIS_IUSRS who have write, read, modify, etc.

如果新文件夹是可写的:

I also ran this to check if the new folder was writable:

$filename = 'C:\inetpub\temp\uploads';
if (is_writable($filename)) {
    echo $filename . ' is writable';
} else {
    echo $filename . ' is not writable';
}

我更改了 max_file_uploads value来测试正在加载的PHP配置是否是最新的,而且是最新的。

I changed the max_file_uploads value to test if the PHP config being loaded was the most up-to-date, and it was.

我缺少什么?

推荐答案

结果是 php.ini 配置文件有 upload_tmp_dir ,最后一个是默认文件夹 c:\windows \temp

And it turned out the php.ini config file had duplicate entries for upload_tmp_dir, the last of which was the default folderc:\windows\temp. I commented that setting out and everything is now fine.

线程让我去检查一下。

这篇关于无法在IIS上设置upload_tmp_dir的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆