You are here

Blog

Drupal - PHP Memory Limit

When using image processing like image field and image cache you may need to increase your PHP memory limit in these two places:

1) .htaccess (in your root directory - where drupal is installed)

add to this section:

# PHP 5, Apache 1 and 2.

Just above

The following code:

php_value post_max_size 24M
php_value upload_max_filesize 24M
php_value memory_limit 96M

2) settings.php (in your sites/default/ directory)

Under the section:
/**
* PHP settings:

Add the following code:

ini_set('memory_limit', '96M');

Drupal
PHP

Need A Developer? Contact Us