上传:无法在映像上将文件写入磁盘> 1MB
问题描述:
我的网站运行的是Wordpress 4.6.1。当我上传超过1MB这个错误出现上传:无法在映像上将文件写入磁盘> 1MB
上传的图像更大:无法写入文件到磁盘
这是我的服务器配置:
[email protected]:~# grep --color -R client_max_body_size /etc/nginx/nginx.conf
client_max_body_size 50M;
[email protected]:~# GET websitename.net/lainfo.php|egrep 'post_max_size|upload_max_filesize'
<tr><td class="e">post_max_size</td><td class="v">100M</td><td class="v">100M</td></tr>
<tr><td class="e">upload_max_filesize</td><td class="v">100M</td><td class="v">100M</td></tr>
[email protected]:~#
我选了以下常见问题无效:
- 硬盘满< - 未满
- 文件夹搭配chmod < - 用影像作品1MB 下
答
尝试使这一切的设置:
php_value upload_max_filesize 64M
php_value post_max_size 64M
php_value max_execution_time 300
php_value max_input_time 300
嗨@alex我有这样的配置:*道歉,我不知道该怎么报价code here: > root @ xxxx:〜#curl -s xxx.xxxx.xxx/info.php|egrep -i'upload_max_filesize | post_max_size | max_execution_time | max_input_time'| sed > -e#s#
什么PHP' memory_limit'? – Alex
也看WP设置'WP_MEMORY_LIMIT'。 – Alex