N
N
Nepofigist2012-09-27 21:14:28
PHP
Nepofigist, 2012-09-27 21:14:28

Why doesn't changing upload_max_filesize work?

Hello,

The condition of the task is: cloud server in Selectel, Debian 6, php5-fpm (with dotdeb), nginx and mysql. A small blog on Worpdress. It took the ability to upload files larger than 2 megabytes, but, suddenly, the old proven method did not work.

Here are the settings.

[email protected]*****:~# grep post_max_size /etc/php5/*/* &&  grep upload_max_filesize /etc/php5/*/* &&  grep max_file_uploads /etc/php5/*/*
/etc/php5/cgi/php.ini:post_max_size = 10M
/etc/php5/cli/php.ini:post_max_size = 100M
/etc/php5/fpm/php.ini:post_max_size = 10M
/etc/php5/cgi/php.ini:upload_max_filesize = 10M
/etc/php5/cli/php.ini:upload_max_filesize = 10M
/etc/php5/fpm/php.ini:upload_max_filesize = 10M
/etc/php5/cgi/php.ini:max_file_uploads = 100
/etc/php5/cli/php.ini:max_file_uploads = 100
/etc/php5/fpm/php.ini:max_file_uploads = 50


And judging by phpinfo - all the same 2Mb. What to do, where to dig?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
N
Nepofigist, 2012-09-27
@Nepofigist

Solved the problem. After each change of php options, I rebooted, but it did not help. Deleting php.ini and rewriting it helped. I don't know what it was.

V
Vladimir, 2012-09-27
@de1vin

when uploading large files, I most often encountered two problems:
upload_max_filesize and post_max_size. If .htaccess allows you to register these directives, then add
php_value upload_max_filesize 100M php_value post_max_size 100M
or what values ​​you need, if not, then similar parameters should be changed in php.ini

M
Maxim Dyachenko, 2012-09-27
@Mendel

I am a barbarian, in such cases I overload the server. Or at least httpd

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question