Php.ini settings (upload trouble) Php.ini settings (upload trouble)
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Php.ini settings (upload trouble)

Started by kezzer, November 11, 2006, 02:45:51 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

kezzer

after expericening some really random upload problems, a few 800x600 pics upload ok, mostly 640x480 will work and the only size that works without a problem is 320x240, which is no good as I really need the coppermine album to handle 1024x768 pics with no problem.

read the sticky and done everything I can from the access that I have (only reseller), so I think by reading the sticky I sure the problem lies here;

2. upload_max_filesize - 2MB is the default limit for individual files.  My server reports upload_max_filesize - 5MB

3. post_max_size - 8MB is the default limit for post requests.  My server reports post_max_size- 5MB

4. memory_limit - 8MB is the default size.  My server reports memory_limit - 20Mb

the only one I can see here that is less than require is 3 post_max_size is 5MB instead of 8Mb.

What should I ask my hosting company to increase and how much to, if indeed this is the problem?

thanks
Kez


lamama

I suppose you're talking about uploading via browser and not ftp-upload/batch-adding.

Big uploads take some time.
Maybe you should ask them about...

max_execution_time = 90     ; Maximum execution time of each script, in seconds
and/or
max_input_time = 90          ; Maximum amount of time each script may spend parsing request data

Your host hopefully knows about good values. If your line is fast enough, 90 seconds may be enough even for your big files, if you got a slow connection, you shouldn't use browser-upload. FTP-upload is recommended if you run the gallery.

kezzer

Yes sorry, via FTP

Thanks for the extra info, can I take it that those settings quoted would to the job? Only the ones on my server are not the same they are:

max_execution_time = 10

max_input_time = -1

Would these settings make a difference.  I have worked out that currently the max size for a file to be uploaded is only 220KB, me personally this is not a big deal as I can just resize my pics to 1024x768 and reduce the quality, it's the other users that i think will find it difficult and probably lose interest with it very quickly! and they will be taking pics straight off their camera (worst scenario)

link to my site http://www.diecastology.com/cpg1410/

Thanks
Kez

kezzer


lamama

AFAIK the defaults are:

max_execution_time = 30
max_input_time = 60

Quoteand they will be taking pics straight off their camera (worst scenario)
if you allow them to upload pics with 5 megapixels directly onto your server, you won't have much fun with your gallery anyway.