If you are running into PHP memory limit problems at Dreamhost ( 8M by default) here's a tutorial on compiling your own PHP and getting your own php.ini. You might get memory problem when running a large number of modules or a large package like the ecommerce group.

I have tested this script several times in the last couple of days and been in contact with Dreamhost support. It does work. I am posting this because a point of frustration for many has been that they compile PHP set everything up and still get only 8M in memory.

http://www.hiveminds.co.uk/node/3201

Carl McDade
Hiveminds Magazine
http://www.hiveminds.co.uk

Comments

uzbekjon’s picture

1) Contact support
2) Ask for memory increase
3) Get polite reject
4) Wait for beter times :)

PS. Merry Christmas and happy new year everyone...

----------------------------------------
Sites for uzbek and Uzbekistan:
Uzbek Lyrics Database
Uzbekistan Forum

arava_phani’s picture

I use eaccelerator on Dreamhost for which i had to compile my own custom php. It works well

http://wiki.dreamhost.com/index.php/Installing_PHP5

carlmcdade’s picture

eAccelarator is next on the list of tasks. Any tips on how you accomplished a working install would be appreciated.

Hiveminds Magazine
http://www.hiveminds.co.uk
for web publishers and community builders
Questions? Try the CMS Demo Matrix

MemoryX2’s picture

If you are running a cPanel server, it is as simple as checking the module for eAccelarator when compiling your PHP. However if you do enable eAccelarator do not ennable xCache because they conflict with each other. Simply pick one or the other. I currently use eAccelarator though.

kbahey’s picture

A while back, I wrote a tutorial on compiling PHP on Dreamhost as well.

The reason was not memory at the time, but the PHPSESSID in the URL.

Of course, running PHP as CGI is suboptimal: it takes more resources, and will slow down a site.
--
Drupal development and customization: 2bits.com
Personal: Baheyeldin.com

--
Drupal performance tuning and optimization, hosting, development, and consulting: 2bits.com, Inc. and Twitter at: @2bits
Personal blog: Ba

carlmcdade’s picture

The script compiles PHP with FastCGI which is a preliminary step for installing eAccelerator. A tutorial on that is coming in a couple of days. Using both should give any busy site the ability to maintain speed.

Hiveminds Magazine
http://www.hiveminds.co.uk
for web publishers and community builders
Questions? Try the CMS Demo Matrix

kbahey’s picture

It must have changed since I did this, since it was not fastcgi then, but plain old CGI, which is significantly slower.

If they have since changed to FastCGI, then that is much better.
--
Drupal development and customization: 2bits.com
Personal: Baheyeldin.com

--
Drupal performance tuning and optimization, hosting, development, and consulting: 2bits.com, Inc. and Twitter at: @2bits
Personal blog: Ba

MemoryX2’s picture

Their is both CGI & Fast CGI.. to use fast cgi, the first cgi has to be enabled.

FastCGI is sorta like an add-on to CGI. (at least in cPanel.)

alexander allen’s picture

On what Dreamhost plan did u do this? Is it a private server or a regular account?

deathgod’s picture

Thanks, I am build an anime and manga downloads site and will be using dreamhost for my hosting. A lot of downloads are over 200MB and most are over 8MB, so thx, you have written an article that I'll probably find very useful.
------------------------------
Naruto - narutomonkey.net - Naruto Forums

wwwoliondorcom’s picture

Hi,

Do you know what is now the ini_set('memory_limit', 'xxxx'); limit at Dreamhost ?

How to change it if the default is still at 8M ? Can i add this in my settings.php ?
ini_set('memory_limit', '200M');

Thanks for help.

c-c-m’s picture

Hello wwwoliondorcom
By default Dreamhost's php memory limit is set to 90MB. You can read this documentation (http://wiki.dreamhost.com/PHP.ini) in order to increase it or use this simple script:
http://sxi.sabrextreme.com/phpini

Hope it helps

MemoryX2’s picture

You can simply edit the php.ini. Find the line you are talking about and change it from the default value to whatever you want. I don't use Dreamhost however that is how it works on my servers.

EDIT: Hope you have resolved this issue. Sorry I did not realize how old this thread is.

mattgilbert’s picture

This is an old thread, but I've found myself here several times. For what it's worth, I was able to finally increase the memory limit at Network Solutions by following the part under "If all else fails..." on this page:
http://wiki.dreamhost.com/Custom_PHP.ini#PHP_5.2

I tried the stuff above it, but it didn't work so I ended up reverting all those changes before the "If all else fails..." part finally did it for me. I hope this helps others. (And maybe me too, later on...)

orbistertius’s picture

I was trying alot today until I found this solution and it works.

orbistertius’s picture

this works for execution time as well