Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to upload the largest file I can through apache using php and a flash upload program.

What variables do I need to adjust in my Apache configs or in my php configs to allow such a large upload size?

share|improve this question
I'm curious if this will just be local network based usage? Or are you going for real world internet uploads? – Jakub Nov 21 '10 at 5:08

In your php.ini file, you need to change the upload_max_filesize and post_max_size fields. It should look like this:

; Maximum allowed size for uploaded files.
upload_max_filesize = 2048M


; Maximum size of POST data that PHP will accept.
post_max_size = 2048M

Depending on your already existing settings you might need to also make changes in php.ini to the Resource Limits section, such as max_execution_time, max_input_time, and memory_limit.

Then restart Apache:

/etc/init.d/httpd restart
share|improve this answer

On Debian GNU/Linux, we have the file:


in which we need to adjust the values for the following settings:


And needless to say, memory_limit should be higher that those who follow, and max_post_size should be higher than upload_max_filesize. You as the administrator will need to determine those necessary sizes.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.