我上传文件的问题超过2 MB ......系统是Apache和Nginx。我尝试更改设置并使用相同设置在/ tmp /目录中使用.htaccess但没有发生任何事情..
在服务器上安装modsecurity但是Off:
SecRuleEngine Off
SecResponseBodyAccess Off
SecRequestBodyLimit 131072000
SecRequestBodyNoFilesLimit 131072
SecRequestBodyInMemoryLimit 131072
请帮忙!
/etc/php5/cli/php.ini和/etc/php5/apache2/php.ini
upload_max_filesize = 20M
post_max_size = 20M
max_execution_time = -1
max_input_time = 1800
memory_limit = -1
/etc/nginx/nginx.conf
client_max_body_size 0;
/etc/apache2/apache2.conf中
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
LimitRequestBody 2147483647
</Directory>
/etc/apache2/sites-enabled/domen.conf
<Directory /home/newboards/sites/domen.ru/>
AllowOverride All
Require all granted
LimitRequestBody 2147483647
</Directory>