Results 1 to 5 of 5

Thread: How do i increase PHP Memory using ini_set

  1. #1
    Join Date
    Jan 2009
    Posts
    124

    How do i increase PHP Memory using ini_set

    I would like to know that how do i increase my PHP memory by using ini_set. Can any body tell me that how can i do it? Does any body knows about it? Kindly provide me the correct logical solution for the above issue. Any kind of help on the baove issue would be appreciated.

  2. #2
    Join Date
    Apr 2008
    Posts
    1,948

    Re: How do i increase PHP Memory using ini_set

    Hey you can try out the following steps in order to increase your PHP memory using ini_set:-

    1. Try to locate the php.ini file used by your web server. Then you can use the phpinfo() PHP function to find it. During installation Drupal checks the PHP Memory Limit and if it is less than 16M an error message also provides the path to the php.ini file.
    2. Then try to edit the memory_limit parameter in the php.ini file (usually in a section called Resource Limits)
    memory_limit = 16M ; Maximum amount of memory a script may consume (16MB)
    If there is no section already for this, place the above line at the end of the file.
    3. Then at last try to restart your Apache.

    Note: If you are using XAMPP, there may be two PHP.ini files (one under the PHP directory and the other under Apache/bin). To change your memory limit, edit the file in the XAMPP/Apache/bin directory.

  3. #3
    Join Date
    Apr 2008
    Posts
    2,005

    Re: How do i increase PHP Memory using ini_set

    In sapphire/main.php you can add ini_set('memory_limit', '32M'), which will resolve it for some cases. We can add this in somehow through the installer maybe. Would be a good idea in order to sort out the low memory problems.

  4. #4
    Join Date
    May 2008
    Posts
    2,297

    Re: How do i increase PHP Memory using ini_set

    In order to change the memory allocation limit permanently for all PHP scripts running on the server, you need to modify the PHP.INI configuration file
    on your server. Then try to search for memory_limit after opening the file in an editor. If the memory_limit doesn’t exist, then try to add the following line. If it’s there, modify the value of the memory_limit:
    memory_limit = 12M
    The 12M sets the limit to 12 megabytes (12582912 bytes). Then, change to the value in order to increase your memory in PHP.

  5. #5
    jennismortal Guest

    Re: How do i increase PHP Memory using ini_set

    Quote Originally Posted by Praetor View Post
    Hey you can try out the following steps in order to increase your PHP memory using ini_set:-

    1. Try to locate the php.ini file used by your web server. Then you can use the phpinfo() PHP function to find it. During installation Drupal checks the PHP Memory Limit and if it is less than 16M an error message also provides the path to the php.ini file.
    2. Then try to edit the memory_limit parameter in the php.ini file (usually in a section called Resource Limits)

    If there is no section already for this, place the above line at the end of the file.
    3. Then at last try to restart your Apache.

    Note: If you are using XAMPP, there may be two PHP.ini files (one under the PHP directory and the other under Apache/bin). To change your memory limit, edit the file in the XAMPP/Apache/bin directory.

    I do agree with your opinions, it's really a good and flexible job...
    Thank you for sharing your information.

Similar Threads

  1. Increase memory of Asus EEE PC
    By aalbaiz in forum Portable Devices
    Replies: 4
    Last Post: 02-01-2011, 08:02 AM
  2. How to set php ini_set smtp
    By Dharmesh Arora in forum Software Development
    Replies: 5
    Last Post: 20-08-2010, 01:17 AM
  3. How to increase Windows 7 memory
    By ARGYLE in forum Motherboard Processor & RAM
    Replies: 5
    Last Post: 09-01-2010, 11:44 AM
  4. How to increase video memory from 128 MB to 256 MB
    By Harmony60 in forum Monitor & Video Cards
    Replies: 3
    Last Post: 04-07-2009, 09:20 PM
  5. How to increase memory limit in php
    By Eleazar in forum Software Development
    Replies: 3
    Last Post: 20-05-2009, 11:13 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,562,901.68190 seconds with 17 queries