Another memory exhausted problem Another memory exhausted problem
 

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

Another memory exhausted problem

Started by phill104, April 03, 2008, 10:23:21 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

phill104

I'm struggling to work our what needs changing with my php build here.

At first I was getting memory exhausted errors when uploading even small files (300*200 ad roughly 30k) so I changed the php.ini to

memory_limit = 64M
upload_max_filesize = 50M
post_max_size = 50M
max_input_time = 60
max_execution_time = 30

which allows me to upload those small files. Now if I try a file that is 3000*4000 at 250k ig get a 500 server error. It must be something to do with the php build but I'm a bit lost as to what to try next.

http://www.windwise.net/gallery

All albums are open to guests at the moment

It is a mistake to think you can solve any major problems just with potatoes.

Stramm

Memory usage doesn't depend on the filesize but on width+height+colordepth. For a pic the size you try to upload you'll neede approx 60M. That's why an app like Photoshop consumes all possible memory on your local PC and not just eg. 100k.

Some values you set in your php.ini just don't make sense and are way to huge. Read some php configuration docs to find values that mach your server specs.

phill104

Still trying to sort this. The error logs show this but I do not quite understand what it means.

windwise.net [Fri Apr 04 13:39:43 2008] [error] [client 79.170.40.31] FATAL: emalloc(): Unable to allocate 13808 bytes, referer: http://www.windwise.net/gallery/upload.php
windwise.net [Fri Apr 04 13:39:43 2008] [error] [client 79.170.40.31] Premature end of script headers: upload.php, referer: http://www.windwise.net/gallery/upload.php
It is a mistake to think you can solve any major problems just with potatoes.

Nibbler

Looks like you hit a hard memory limit imposed by your host.