PDA

View Full Version : Apache memory_limit not working...



Hitman
18-04-2009, 02:49 PM
Hey, well I'm running XAMPP on my laptop for personal use. Basically, I want to upload files in a script I'm using, and it works for files that are 1MB or 2MB... but files that are like 56MB it chucks up an error (the script if fine btw, it does work for smaller files and there are no limits in the script).


Fatal error: Allowed memory size of 62914560 bytes exhausted (tried to allocate 5767168 bytes) in C:\xampp\htdocs\site\load.php on line 12I've edited 'memory_limit' to 60M, no use. It still gives an error... I've tried 'ini_set("memory_limit","64M");' in the php file, it doesn't want to work.

Any help? I'm on the verge of pulling my hair out! :(

Thanks.

Source
18-04-2009, 03:24 PM
upload_max_filesize = 100MB (thats mb)

and

post_max_size = 100MB ( again thats mb )


They should be the ones you need, for files.

Hitman
18-04-2009, 03:37 PM
upload_max_filesize = 100MB (thats mb)

and

post_max_size = 100MB ( again thats mb )


They should be the ones you need, for files.
I've also tried that, gives the same error... I did restart apache btw. I'm stumped. :S

Hitman
19-04-2009, 01:07 PM
Anybody else, any help?

I've tried pretty much every limit, none are working. phpinfo sees that I put 64MB... grr, it's annoying.

I've also tried editing the size at the beginning of the script.

Source
19-04-2009, 01:21 PM
I'm not overly familiar with XAMPP. Why don't you try WAMP, a personal favourite of mine.

Want to hide these adverts? Register an account for free!