Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 23-05-2009
Member
 
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.
Reply With Quote
  #2  
Old 23-05-2009
Member
 
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)
Quote:
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.
Reply With Quote
  #3  
Old 23-05-2009
Member
 
Join Date: Apr 2008
Posts: 2,001
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.
Reply With Quote
  #4  
Old 23-05-2009
Member
 
Join Date: May 2008
Posts: 2,293
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:
Quote:
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.
Reply With Quote
  #5  
Old 24-05-2009
jennismortal
 
Posts: n/a
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.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "How do i increase PHP Memory using ini_set"
Thread Thread Starter Forum Replies Last Post
Increase memory of Asus EEE PC aalbaiz Portable Devices 4 02-01-2011 08:02 AM
How to set php ini_set smtp Dharmesh Arora Software Development 5 20-08-2010 01:17 AM
How to increase Windows 7 memory ARGYLE Motherboard Processor & RAM 5 09-01-2010 11:44 AM
How to increase video memory from 128 MB to 256 MB Harmony60 Monitor & Video Cards 3 04-07-2009 09:20 PM
How to increase memory limit in php Eleazar Software Development 3 20-05-2009 11:13 AM


All times are GMT +5.5. The time now is 01:22 PM.