H
H
HellWalk2017-08-21 13:44:54
Nginx
HellWalk, 2017-08-21 13:44:54

Why doesn't the phpinfo max_file_size parameter change?

Costs:

nginx -v
nginx version: nginx/1.10.3 (Ubuntu)
php -v
PHP 5.6.31-1~ubuntu16.04.1+deb.sury.org+1 (cli)

phpinfo() outputs the following information:
opcache.max_file_size 0 0

When I try to upload a file ~ 200 mb I get an error:
413 Request Entity Too Large
nginx/1.10.3 (Ubuntu)

What I tried:
1. Added the line client_max_body_size 300m; in /etc/nginx/nginx.conf (+ restart nginx after that)
2. Changed the parameter: upload_max_filesize = 300M in /etc/php/5.6/cli/php.ini
- Didn't help. The setting in opcache.max_file_size remains the same (0, 0), "413 Request Entity Too Large" error also pops up.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nurlan, 2017-08-21
@daager

You don't set it up. And here opcache?
You also need to increase post_max_size in php.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question