Forums / Suggestions / Extend memory on install/shared host

Extend memory on install/shared host

Author Message

Peter Szmulik

Monday 19 July 2004 5:37:21 am

Hi

I'm trying to install eZ Publish on a shared host. They use a default PHP memory size of 8MB which - as the eZ install script points out - is too small. To extend this I have the following options (Unix):
1. talk my host into extending the memory limit globally; won't happen
2. place a modified php.ini file in EACH directory of eZ publish that contains php scripts
3. place a symbolic link to a modified php.ini file in EACH directory of eZ publish that contains php scripts
4. edit all eZ php scripts with the following line: ini_set ( memory_limit, "24M" );

Wouldn't it be a good idea to extend the memory check thing in the install script to:
* identify any memory limitation as today
* ask the user how much memory to allocate
* set memory size globally using item 4. above?

Please?

Best Regards
Peter

Frederik Holljen

Tuesday 20 July 2004 2:24:14 am

Try this:

#!/bin/bash
# prepend header to 'php' files
echo "ini_set ( memory_limit, "24M" );" > tmp

for FILE in `find -name "*php"`; do
( cat tmp $FILE ) | cat > $FILE.new
mv $FILE.new $FILE

done

Björn [email protected]

Tuesday 20 July 2004 5:20:36 pm

<1. talk my host into extending the memory limit globally; won't happen

you can set the memory limit per vhost in apache. Ask your host about this. That is the easiest way.

 

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/