Answer the question
In order to leave comments, you need to log in
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
Answer the question
In order to leave comments, you need to log in
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.
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
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 questionAsk a Question
731 491 924 answers to any question