wordpressのsql インポート時のエラー
413 Request Entity Too Large
# vi /etc/php/7.2/fpm/php.ini
; Maximum allowed size for uploaded files.
; http://php.net/upload-max-filesize
upload_max_filesize = 300M
; Maximum size of POST data that PHP will accept.
; Its value may be 0 to disable the limit. It is ignored if POST data reading
; is disabled through enable_post_data_reading.
; http://php.net/post-max-size
post_max_size = 300M
# vi /etc/nginx/nginx.conf
http {
##
# Basic Settings
##
client_max_body_size 300M;
fastcgi_read_timeout 180;
504 gateway time-out
# vi /etc/php/7.2/fpm/php.ini
; Maximum execution time of each script, in seconds
; http://php.net/max-execution-time
; Note: This directive is hardcoded to 0 for the CLI SAPI
max_execution_time = 180
コメント