Thursday, November 12, 2009

PHP config change for Drupal in bluehost

在安裝Services module時出現底下的錯誤訊息:
"Fatal error: Allowed memory size of 33554432 bytes exhausted"

此一錯誤訊息 指出PHP需要分配更多的記憶體以完成Drupal 模組的安裝工作
The error message occurred during installing/enabling some modules.
It indicates that more memory is needed for PHP engine to process the requests.

[try]
  1. set your site to the php5 (single php.ini) settings in the PHP config of Bluehost's CPanel
  2. change to "memory_limit = 64M ;" in the php.ini
  3. change to "ini_set('memory_limit', '64M');" in ../sites/default/settings.php file or
    just remove it from ../sites/default/settings.php
  4. check Administer/Reports/Status report to verify that PHP's memory limit is increased to 64M


[ref] http://drupal.org/node/283579

No comments: