上传文件大小限制-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

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注