2016-11-21 49 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

相關問題