I'm using Apache + PHP 5.3.3-7 on Debian Squeeze, installed from the repositories. The PHP distribution in Debian Squeeze includes Suhosin patch. I have problems uploading files bigger than cca 4 MB, some invisible limit prevents the PHP from accepting the upload.
php.ini I have:
- set upload_max_filesize = 50M
- set post_max_size = 50M
- set memory_limit = 256M
- set max_execution_time = 120
- set max_input_time = 120
- suhosin.memory_limit = 256M
- suhosin.post.max_value_length = 50000000
- suhosin.request.max_value_length = 50000000
- suhosin.post.max_vars = 200000
- suhosin.request.max_vars = 200000
I actually doubt the last two ones are important at all, but I was adviced to increase them as well.
I know for sure that PHP actually loads the config values correctly, since
phpinfo() matches my expectations. I'm expecting to be able to upload a file up to 50MB, but uploading of 4MB already fails. There are no logged errors in normal PHP per-site logs. And I'm sure there is enough space is available to save the uploaded file.
It seems like there is some other invisible limit preventing me from uploading the files. What could this be? Perhaps the Apache itself? Never heard of this limit though.
I spent nearly one week on this and I'm desperate, as well as my customer. Any hints are welcome.