forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upload => Topic started by: The Grand Pooh-Bah on May 26, 2006, 07:49:44 pm

Title: Uploading files > 2MB
Post by: The Grand Pooh-Bah on May 26, 2006, 07:49:44 pm
I understand that PHP is set by default to a maximum of 2MB for files to be uploaded.  Are there any negative (other than bandwidth usage) consequences for increasing this to 4MB?

 If not does anyone here know where to make these changes within PHP.  I'm on a dedicated server so I have access.
Title: Re: Uploading files > 2MB
Post by: Joachim Müller on May 26, 2006, 07:54:02 pm
The memory assigned to PHP is being set in the server's php.ini file. The drawback is obvious: if there are multiple instances of script run simultaneously, the memory usage sums up. If more memory is being used than the server has, it will slow down (swapping) and eventually crash. I guess it's pretty safe to go to 4 MB (which is still a bit small for decent image resizing).
There are better places to ask for webserver setup than this board...