Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Archive

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Installing problem


Go to End
Reply

10 Posts   3583 Views

Avatar
blake

4 April 2008 at 10:14pm (Last edited: 4 April 2008 10:17pm), Community Member, 4 Posts

Ive tried to install SilverStripe 2.2.1 on to of my webserver. But ive got a memory limit problem.

"SilverStripe needs a minimum of 20M allocated to PHP, but recommends 32M. You only have 16M allocated"

"SilverStripe needs a minimum of 20M allocated to PHP, but recommends 32M. You only have 8M allocated"

I can't edit any apache configfiles because the hosts are commercial. Is there anyway to get around this?

Avatar
simon_w

5 April 2008 at 12:01pm Forum Moderator, 474 Posts

In both install.php and sapphire/main.php, add ini_set('memory_limit', '32M'); near to the top.

Avatar
piratemonkey

5 April 2008 at 3:22pm Community Member, 2 Posts

I have tried to install silverstripe a couple of times.. keep getting this error. Any suggestions anyone??

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 4980736 bytes) in /tmp/silverstripe-cache-home-classicallymodernphotography-public_html/cache.php on line 4

Avatar
simon_w

5 April 2008 at 3:24pm Forum Moderator, 474 Posts

Increase your memory limit from 32M to ~64M.

Avatar
piratemonkey

5 April 2008 at 3:50pm Community Member, 2 Posts

To be honest I am not exactly sure on how to go about doing that.

Avatar
NetSage

5 April 2008 at 5:05pm Community Member, 3 Posts

You would have to edit the php.ini which I'm guessing you don't have access to since your asking.

I'm also guessing your on shared hosting so well you'll probably be out of luck like me. Although I don't have this problem on install I can't flush anymore :( .

Avatar
simon_w

5 April 2008 at 5:08pm Forum Moderator, 474 Posts

Not having php.ini access isn't a problem.

sapphire/main.php, add:

ini_set('memory_limit', '64M');

Avatar
blake

5 April 2008 at 11:38pm Community Member, 4 Posts

I've added "ini_set('memory_limit', '64M');" in the top of "sapphire/main.php" but i still get this error message when im trying to install:

I am now running through the installation steps (this should take about 30 seconds)

If you receive a fatal error, refresh this page to continue the installation

Creating 'mysite/_config.php'...
Creating '.htaccess' file...
Building database schema...
Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 4864 bytes) in /customers/memaa.net/memaa.net/httpd.www/silverstripe/sapphire/forms/CustomRequiredFields.php on line 14

Thanx

Go to Top