Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2008
    Posts
    1
    Plugin Contributions
    0

    Default PHP Memory limit

    HI I have asked my host to increase my php memory limit after finding a post by Dr Byte, This is because sometimes my scripts were timing out, The hosting company sent me back this reply

    "PHP has a built-in limit on the amount of memory it will allocate. If that limit is reached, the process will exit with this error message. This is usually the result of the PHP script trying to load a large file, such as an image, into memory all at once. While it is better if you can arrange for the script not to do such things, it is also possible to increase the memory limit to avoid this problem. To do that, edit (or create in your script's folder if it does not exist) the php.ini file with your PHP scripts (create it if it does not exist) and add the following line:
    memory_limit=16M

    You should replace the '16' with whatever value is appropriate. The default is 8M (8 megabytes, the 8388608 bytes from the error message).

    If this does not resolve the problem, you can also increase the web server memory limit by editing (or creating in your script's folder if it does not exist) the ".htaccess" file and adding the following line:
    RLimitMem 128000000 "

    Sorry for the long post but can anybody point me in the right direction i cannot find a script folder or php.ini

    Many Thanks

    Jason

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: PHP Memory limit

    Sorry for the long post but can anybody point me in the right direction i cannot find a script folder or php.ini
    They are referring to the script "ZenCart" in your case... but this file "php.ini" can be at the "root" of your account and create in a plain text editor the following - save as php.ini and FTP it to the server


    Code:
    max_execution_time = 30     ; Maximum execution time of each script, in seconds
    max_input_time = 30	; Maximum amount of time each script may spend parsing request data
    memory_limit = 32M      ; Maximum amount of memory a script may consume (32MB)
    Zen-Venom Get Bitten

 

 

Similar Threads

  1. Replies: 12
    Last Post: 17 Mar 2014, 11:10 PM
  2. v150 PHP Fatal error: Out of memory in includes/modules/attributes.php
    By donnyb in forum General Questions
    Replies: 0
    Last Post: 6 Apr 2012, 12:15 AM
  3. Replies: 1
    Last Post: 9 Oct 2011, 06:24 AM
  4. 5 Out of memory - increased PHP Limit, still error persists
    By dmon_ng2 in forum Installing on a Linux/Unix Server
    Replies: 8
    Last Post: 10 Dec 2010, 12:17 AM
  5. Google checkout memory limit help
    By matchett64 in forum Addon Payment Modules
    Replies: 1
    Last Post: 8 Mar 2009, 05:53 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg