Jump to content

Apache upload file size limit


pakenney38

Recommended Posts

I have a web form that is used to upload some 33 files at once to an "/uploads" folder on my web server, but am having an issue with Apache not wanting to deal with file sizes larger than 6-7MB per file. If I attempt to upload any file larger than that, I get "the page cannot be displayed" in the browser. At first, I blamed PHP. But then I rewrote the processing script in Perl, and now have the same issue with the Perl script. So I have to blame Apache.
Link to comment
Share on other sites

You mean like the Web Server? It has 250 GB of hard drive space, 82% of that is available. It also has 2 GB of RAM. I'm confused on how this cannot be adequate.
Or were you referring to the PC I am sending the files from? I still don't understand how a file that is at most 16MB would eat enough resources on either the client or server to cause this problem. Could you be more specific?
Link to comment
Share on other sites

It would be nice to have a serious reply to this topic. First of all, I recently updated all packages through yum, so I know everything is current version. Secondly, are you suggesting I update the RAM? Even the RAM is 2GB. If that's not enough to process say, and 16MB file, then there is some other problem.
Link to comment
Share on other sites

Few questions:

When you were working with PHP, did you modify PHP.ini so that PHP and the POST method can handle those file sizes? I haven't tried modding a Perl config, so I don't know if there are similar settings to look at, but in PHP.ini take a look at these settings (and change per your req's):

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

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

You also might want to try looking at the resource limits to make sure that PHP isn't hitting them, although you would be returned PHP errors, not page/access errors if that were the case.

Additionally... Is the server on your local machine? Do you get the same error when you upload via a localhost address? If not, then it may be a network timeout issue.

If you get the same error from localhost or you don't think its a network issue, the time it takes to process a large file maybe exceeding apache's Timeout setting which I believe defaults to 5 mins.

Good luck.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.