(Tips) Increasing PHP Memory Limit in Drupal 6

Tips : Increasing PHP Memory Limit in Drupal 6

If you had drupal 6 installed in your site and one day you found some memory limit eror in your pages then you have to increase memory limit. You can try this methods:

A PHP memory limit of 16MB is required for Drupal 6. Some sites may need more than 16MB if they are using many contributed modules. There are several techniques to increase the PHP memory limit and you only need to use one of them. The right one for you depends on your system configuration.

php.ini

This is the recommended approach if you have access to php.ini. This may not be possible in many shared hosting environments. Note that this change will affect all websites and PHP scripts on the server.

1. Locate the php.ini file used by your web server. 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. 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. Restart Apache.

The next two solutions are more restricted in scope and, in some cases, may be more appropriate choices than affecting all sites. [..]

| Read more..

Courtesy : Drublog.com