forum.coppermine-gallery.net
Support => cpg1.4.x Support => Older/other versions => cpg1.4 upload => Topic started by: calikw on December 31, 2006, 01:50:43 am
-
Greetings-
Request help with the following situation: I receive the below error message after clicking "upload file" with larger images.
INTERNAL SERVER ERROR
An internal server error has occured!
Please try again later.
No other debug/error info is provided on the page. I can upload smaller files just fine. GD appears to be resizing images fine, as the smaller ones still have thumbnails created.
Test site: http://ron.russak.org/photos
Test user/pass: test/Passw0rd (that's a zero)
Sample image giving error: http://ron.russak.org/photos/albums/userpics/10002/test.jpg
As might be evident by the sample image link above, the image actually uploads fine...just doesn't appear to add to the database or resize for thumbnails, etc...
Any help would be appreciated!
-rusty
-
The file is too large for the server to handle. Either resize the image yourself prior to upload or get more memory allocated for the task if you have control over the server.
-
What setting on the server would I need to modify/check?
I don't quite understand why the problem files are around 150kb, but I'm able to upload 120kb files fine...is it a limitation within a GD setting somewhere? A limit between 120-150kb sounds like a funny setting to me. All the "defaults" described in the coppermine documentation seem like they're well above what I'm attempting to upload:
- max_input_time - 60 seconds is the default time limit for uploading files.
This time limit includes the time it takes for the files to upload, so if you exceed this limit, the file will not even parse, and the browser will not get a response. You can workaround this by trying to upload smaller or fewer files, or you can try uploading over broadband. The best solution, of course, is to increase the time limit to something more in line with your needs. - upload_max_filesize - 2MB is the default limit for individual files.
- post_max_size - 8MB is the default limit for post requests.
- memory_limit - 8MB is the default size.
- PHP's LimitRequestBody - 512KB default limit. (mainly an issue on Redhat/Apache systems. Found in /etc/http/conf.d)
In general, upload_max_filesize < post_max_size < memory_limit in order for uploads to function properly. Coppermine may warn you if a file exceeds upload_max_filesize, but it cannot warn you if the total size of all the files exceeds the post limit or the memory limit. - file_uploads - This determines whether or not PHP will allow file uploads. It must be set to "On".
- upload_tmp_dir - This specifies the temporary directory where PHP stores uploaded files.
-
You need 12MB memory limit to upload that file
take a look at sticky:
http://forum.coppermine-gallery.net/index.php?topic=24088.msg110690#msg110690
-
Greetings-
I've checked my server settings and the below are what is configured. It looks like the memory limit is over the 12MB that I've been told I need in this post. So...what would be the next item to check?
max_input_time - "-1" (default)
upload_max_filesize - 20MB
post_max_size - 8MB
memory_limit - 20MB
-m
-
It requires 19M on my system, so try increasing it a little more.