2016-11-21 45 views
1

我的网站运行的是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]:~# 

我选了以下常见问题无效:

  1. 硬盘满< - 未满
  2. 文件夹搭配chmod < - 用影像作品1MB

回答

1

尝试使这一切的设置:

php_value upload_max_filesize 64M 
php_value post_max_size 64M 
php_value max_execution_time 300 
php_value max_input_time 300 
+0

嗨@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# ##克; s# 90 ## g;小号###G” >的max_execution_time 90 > max_input_time设置90 >的post_max_size 100M 100M >的upload_max_filesize 100M 100M >根@ XXXX:〜# –

+0

什么PHP' memory_limit'? – Alex

+0

也看WP设置'WP_MEMORY_LIMIT'。 – Alex

相关问题