coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upload => Topic started by: lunadelrosa on July 05, 2007, 03:41:10 AM

Title: File php.ini - Where I found?
Post by: lunadelrosa on July 05, 2007, 03:41:10 AM
Error Message:
Fatal error: Allowed memory size of XXXXXXX bytes exhausted at (null):0 (tried to allocate XXXX bytes) in /var/www/html/include/picmgmt.inc.php

Meaning:  You have exceeded the memory allotment given to you in php.ini
Possible causes:

This error occurs when using GD and attempting to upload a high resoltuion image.  It's not the size of the file that matters here; it's the number of pixels that determine memory use in GD. 

Solutions:

Alternative 1 (ideal):Increase the memory limit allocation in php.ini. You must be the server's administrator to do this. Also, .htaccess files cannot change this configuration setting, and it cannot be changed using ini_set(). First, you locate the following block in php.ini:
 


Code:
;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;

max_execution_time = 30     ; Maximum execution time of each script, in seconds
max_input_time = 60        ; Maximum amount of time each script may spend parsing request data
memory_limit = 8M      ; Maximum amount of memory a script may consume (8MB)



Where I found the file php.ini?  ???
Title: Re: File php.ini - Where I found?
Post by: Sami on July 05, 2007, 06:22:31 AM
Ask your host for support
Title: Re: File php.ini - Where I found?
Post by: Joachim Müller on July 05, 2007, 06:38:02 AM
You probably can't edit it anyway...