coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upload => Topic started by: bigone5500 on February 24, 2009, 03:03:34 AM

Title: Keep getting 500 server error
Post by: bigone5500 on February 24, 2009, 03:03:34 AM
I am getting a 500 server error when trying to either upload a single file or batch add. I have read your docs and all and have done the search thing but I can't find an answer to my question.

I have edited my php.ini file which reads:
max_input_time = 120
upload_max_filesize = 20M
post_max_size = 20M
memory_limit = 20M
file_uploads = ON

I have tried many different config panel settings. I have the directory set to CHMOD 777. When I do a batch add, it finds the files. I click on continue, then when I select an album and continue, I get to the page where it is supposed to say OK or DP PB NA. I get a red X in the place of that. It is as if the board script is not right in that it is not finding the right image or something to go in its place. When I click on the image to get more information, I get the 500 server error.

This also happens when I try to upload files via the browse... function. I select my files and click continue, then it says the files were added successfully. I click continue and get a 500 server error.

The photos I am working with are taken with a Nikon D60 10.2 MP camera. If coppermine is not able to handle this resolution please let me know and I'll resize al my photos. But it's supposed to do that for me right???
Title: Re: Keep getting 500 server error
Post by: persianprince on February 25, 2009, 09:11:07 AM
How big are the files you are uploading (resolution wise?)

Try setting the memory limit higher..perhaps 64M.
Title: Re: Keep getting 500 server error
Post by: bigone5500 on February 26, 2009, 12:43:47 AM
The files are 10.2 MP from a Nikon D60. They are 3872x3592. I did a little digging and found this in my web host's information:

The php.ini file contains the following default values:
upload_max_filesize:20 M
max_execution_time:300
memory_limit:40 M
post_max_size:8 M
SMTP:localhost

The PHP installation includes the following modules:
Module  Version
Expat 1.95.6
Sablotron 1.0
PCRE 4.5
OpenSSL 0.9.6
Libcurl 7.10.3
MySQL Client API 4
IMAP c-Client 4.1
GD 2.0 or higher (FreeType, TTF library, GIF Read/Create, JPG, PNG, WBMP)
GDBM 1.8.0
Zlib 1.2.1

Hope this information helps.
Title: Re: Keep getting 500 server error
Post by: Joachim Müller on February 26, 2009, 07:19:20 AM
Resize your pics on your client before uploading or get your webhost to increase the limits in php.ini (probably won't do).
Calculation is quite easy: 3872 x 3592 x 3 / 1048576 = 39.79 MB (without taking into account the overhead caused by the script in itself.
It only makes sense in very rare cases to store such huge pics on a webserver. Usually, it's a bright idea to resize them before uploading to a resolution that makes them fit on the screens of your visitors.
Title: Re: Keep getting 500 server error
Post by: bigone5500 on February 27, 2009, 12:09:09 AM
I suppose you're right Joachim. I really do like the galery so I'll resize the pics and see what happens then.

Thanks!
Title: Re: Keep getting 500 server error
Post by: bigone5500 on February 27, 2009, 01:20:38 AM
Joachim, your suggestion was the solution. Thanks.