일요일, 6월 23, 2024
Homewordpresswordpress upload size limit

wordpress upload size limit

wordpress upload size limit

1.hhvm php.ini edit

php.ini 에
max_execution_time = 600
max_input_time = 600
memory_limit = 2048M
post_max_size = 2048M
upload_max_filesize = 2048M

추가합니다.


cat /etc/hhvm/php.ini 
; php options
session.save_handler = files
session.save_path = /var/lib/hhvm/sessions
session.gc_maxlifetime = 1440

; hhvm specific 
hhvm.log.level = Warning
hhvm.log.always_log_unhandled_exceptions = true
hhvm.log.runtime_error_reporting_level = 8191
hhvm.mysql.typed_results = false

max_execution_time = 600
max_input_time = 600
memory_limit = 2048M
post_max_size = 2048M
upload_max_filesize = 2048M


2.nginx.conf edit

location 블럭에
client_max_body_size 2048m;
추가합니다.


cat /etc/nginx/sites-enabled/default 
server {
	listen 80 default_server;
	listen [::]:80 default_server ipv6only=on;

	root /www/html/wordpress;
	index index.html index.htm index.php;

	client_max_body_size    2048m;

	server_name localhost;
	include hhvm.conf;

	location = /favicon.ico {
		log_not_found off;
		access_log off;
	}

	location = /robots.txt {
		allow all;
		log_not_found off;
		access_log off;
	}

        location / {
		client_max_body_size    2048m;
                try_files $uri $uri/ /index.php?$args;
        }
}


RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Time limit exceeded. Please complete the captcha once again.

Most Popular