Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Installing problem

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

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

Page: 1 2
Go to End
Author Topic: 3448 Views
  • blake
    Avatar
    Community Member
    4 Posts

    Installing problem Link to this post

    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?

  • simon_w
    Avatar
    Forum Moderator
    467 Posts

    Re: Installing problem Link to this post

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

  • piratemonkey
    Avatar
    Community Member
    2 Posts

    Re: Installing problem Link to this post

    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

  • simon_w
    Avatar
    Forum Moderator
    467 Posts

    Re: Installing problem Link to this post

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

  • piratemonkey
    Avatar
    Community Member
    2 Posts

    Re: Installing problem Link to this post

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

  • NetSage
    Avatar
    Community Member
    3 Posts

    Re: Installing problem Link to this post

    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 .

  • simon_w
    Avatar
    Forum Moderator
    467 Posts

    Re: Installing problem Link to this post

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

    sapphire/main.php, add:

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

  • blake
    Avatar
    Community Member
    4 Posts

    Re: Installing problem Link to this post

    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

    3448 Views
Page: 1 2
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.