This article explains how to solve the “PHP Fatal error: Allowed memory size of 134217728 bytes exhausted ” problem on OpenShift. The issue is that the OpenShift application is using too much memory.
The solution was to put the following into the “.htaccess” file in the root of the OpenShift application.
php_value memory_limit 512M
TIP: If the “.htaccess” file doesn’t exist, create it. It can exist with as little as the above line or much more.