Monday, May 07, 2012

Apache crashes when running Drupal on Uniserver 7.1.5 ( Orion )

While installing additional modules to Drupal 6 and 7 on UniServer 7.1.5 ( a portable server on Windows ), I have encountered multiple times Apache having problems starting. Looking at the Apache logs, there are entries for PHP Fatal error: Allowed memory size of 33554432 bytes exhausted.

This can quickly be resolved by increasing PHP Memory Limit to something higher than 32MB.

  1. From root of UniServer, go to usr > local > php and open in a text editor the php.ini file.
  2. Look for memory_limit and increase from 32M to 64M or 128M.

  3. Restart Apache service.

1 comment:

Anonymous said...

In addition to the helpful post above. It is worth noting that the max_execution_time variable should also be edited to around 300.
It is also in the php.ini file.

N.B. ou may have two or three php.ini files. One for production and another for development. By following the links to phpInfo you should be able to see which one is running.