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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

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

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

Installing problem


Go to End


10 Posts   5206 Views

Avatar
blake

Community Member, 4 Posts

4 April 2008 at 10:14pm

Edited: 04/04/2008 10:17pm

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
(deleted)

Community Member, 473 Posts

5 April 2008 at 12:01pm

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

Avatar
piratemonkey

Community Member, 2 Posts

5 April 2008 at 3:22pm

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
(deleted)

Community Member, 473 Posts

5 April 2008 at 3:24pm

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

Avatar
piratemonkey

Community Member, 2 Posts

5 April 2008 at 3:50pm

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

Avatar
NetSage

Community Member, 3 Posts

5 April 2008 at 5:05pm

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
(deleted)

Community Member, 473 Posts

5 April 2008 at 5:08pm

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

sapphire/main.php, add:

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

Avatar
blake

Community Member, 4 Posts

5 April 2008 at 11:38pm

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