hosted by liquidweb

Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : php.ini memory_limit 100M ignored

Forum Jump

php.ini memory_limit 100M ignored

Reply Post New Thread In Hosting Security and Technology Subscription
Send news tip View All Posts Thread Tools Search this Thread Display Modes
Old 11-21-2006, 05:41 AM
supafly supafly is offline
Join Date: Sep 2006
Posts: 8

php.ini memory_limit 100M ignored

This is a strange problem.

In php.ini I have the following settings:
memory_limit 100M
post_max_size 100M
max_execution_time 360

I can upload movies upto 100MB size easily with no problem.

However, if I try to upload images (6 images around 840kb each) 4.95MB total I get the following error:

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 9088 bytes) in /home/*edited*/public_html/upload.html on line 207

Now why is it saying the memory_limit is 8M, when php.ini and shows the memory_limit is set at 100M?

Sponsored Links
Old 11-21-2006, 05:47 AM
besty besty is offline
Web Hosting Master
Join Date: Mar 2006
Posts: 644
Some of the programmers try to define the limits within the script, So makesure with your script.

Live Your DreamZ

Old 11-21-2006, 06:53 AM
SparkSupport SparkSupport is offline
Web Hosting Master
Join Date: May 2006
Posts: 652
Please make sure that you have placed this php.ini in the folders where this script is being called.

SparkSupport.Com - The Premier Tech Company
IT Infrastructure Management|Software Development|
Cloud Solutions|Email |VOIP|Streaming
Contact us for a free quote:
Phone : 1- 408-335-0493 | Skype : spark.subhish

Sponsored Links
Old 11-21-2006, 03:24 PM
supafly supafly is offline
Join Date: Sep 2006
Posts: 8
As stated above php.ini definitely has these settings:

memory_limit 100M
post_max_size 100M
max_execution_time 360

Confirmed by uploading phpinfo.php to directory and loading in browser. Also by uploading 40MB movie file way beyond the 8MB limit experienced when uploading images.

8MB error is only occurring when uploading images which are resized by script using GD.

This is the message from programmer:
"hi there, well, the problem i don't think is from the php memory limit, but the memory limit of the GD image processing library of the php.
I have heard somewhere in the past, that it has some problems with processing quite big images like the ones you try to input.
So the problem isn't from the upload, but from the image resizing we do with the GD library. Thats why it happens only with the picture
galleries and not with the movie ones. Try getting your host support looking into the GD library settings, I have never played with it pretty deeply
and i don't know its exact settings."

Does anyone know how to edit the 8MB limit in GD library settings?

Old 11-22-2006, 06:36 PM
supafly supafly is offline
Join Date: Sep 2006
Posts: 8
Problem was a bug in php 4.4.4

I'm now using an older version of php and everything works great.


Related posts from
Title Type Date Posted
BGP Routing Table Size Limit Blamed for Tuesday’s Website Outages Web Hosting News 2014-08-13 10:36:33
ElasticHosts' New Scalable IaaS Offering Features Consumption-Based Pricing Web Hosting News 2014-05-01 08:34:00
App-Aware Storage Provider Tintri Raises $75M in Pre-IPO Funding Round Web Hosting News 2014-02-13 12:56:26
CloudLinux Releases New Inode Limits Feature for cPanel Web Hosting News 2013-08-28 16:38:27
Amazon Web Services Adds New EC2 Instances, Doubles IOPS for EBS Storage Volumes Web Hosting News 2012-11-02 16:46:48

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Log in with your username and password

Forgot Password?
Web Hosting News:
WHT Membership
WHT Membership



Welcome to

Create your username to jump into the discussion! is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.

(4 digit year)

Already a member?