上传文件大小限制-wp

—————–上传文件大小限制,要改nginx 和PHP 的 .htaccess两个文件,解决问题

111
more /etc/nginx.conf
worker_processes 4;
worker_rlimit_nofile 40000;

events {
worker_connections 8192;
}
http {
# at the END of this segment!
client_max_body_size 500m;
sendfile on;
keepalive_timeout 1800;
}

222

html文件夹
# vim .htaccess

RewriteEngine On RewriteBase / RewriteRule ^index.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L]

php_value upload_max_filesize 512M
php_value post_max_size 512M
php_value max_execution_time 60000

Leave a Reply

Your email address will not be published. Required fields are marked *