[PHP] Memory limit Problem
Hi, I've got a problem with setting the memory limit in php.ini. I have memory_limit = 1024M ; set in php.ini Checking with phpinfo says I have memory_limit 1024M 1024M However when uploading a large file I get Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 81439166 bytes) (ie it seems I only have 128M available). There's plenty of RAM on the server. Any ideas? -- Graham Drabble http://www.drabble.me.uk/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Memory limit Problem
On 23 Jun 2011 ja...@nixsecurity.org wrote in news:23a261c.efc7a3a4b4a0468ab221437b2018e...@webmail.lomag.net: > > Check the value of the upload_max_filesize and post_max_size > directives in the php.ini. >From phpinfo() upload_max_filesize 800M 800M post_max_size 1000M 1000M (fwiw the file I'm uploading is ~85MB) -- Graham Drabble http://www.drabble.me.uk/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Memory limit Problem
On 23 Jun 2011 usene...@drabble.me.uk (Graham Drabble) wrote in news:xns9f0d980579291grahamdrabbleline...@id-77355.user.dfncis.de: > On 23 Jun 2011 ja...@nixsecurity.org wrote in > news:23a261c.efc7a3a4b4a0468ab221437b2018e...@webmail.lomag.net: > >> >> Check the value of the upload_max_filesize and post_max_size >> directives in the php.ini. > > From phpinfo() > > upload_max_filesize 800M 800M > post_max_size 1000M 1000M > > (fwiw the file I'm uploading is ~85MB) Any ideas from anyone? FWIW, the setup works on another server but doesn't work on this server. The upload_max_filesize, post_max_size and memory_limit are the same on both servers. Both are PHP Version 5.2.6-1+lenny9 -- Graham Drabble http://www.drabble.me.uk/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php