Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » ?stage=live not working

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

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

Page: 1
Go to End
Author Topic: 1773 Views
  • Tecca
    Avatar
    Community Member
    2 Posts

    ?stage=live not working Link to this post

    hi,

    All of a sudden my working site (www.tecca.com.au) started throwing 500 internal server error. At least I am able to login now in the admin panel and see the draft site (?stage=stage) however the published site(?stage=live) is still showing 500 internal server error. Any clues?

    thanks

  • Blackdog
    Avatar
    Community Member
    156 Posts

    Re: ?stage=live not working Link to this post

    More than likely it is a common occurance that the site now needs more RAM.

    Try putting this into your _config.php file.

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

    If you have put custom functions into your page types and controllers you should check they are efficient, every bit of inefficient code will use more resources.

  • Tecca
    Avatar
    Community Member
    2 Posts

    Re: ?stage=live not working Link to this post

    I thought memory limit was handled in sapphire/main.php (see below)

    // Check we have at least 32M
    if($memory < (32 * 1024 * 1024)) {
       // Increase memory limit
       ini_set('memory_limit', '32M');

    Is is better to modify in main.php or _config.php? Can you also be more specific about which _config.php to modify as there are so many in different directories? The server error message says something about :

    mod_fcgid: read data from fastcgi server error.
    Premature end of script headers: main.php

    (not sure what that is). thanks

  • Blackdog
    Avatar
    Community Member
    156 Posts

    Re: ?stage=live not working Link to this post

    it is better to put it into the _config.php in your mysite folder as that is specific to your site.

    if you put it in main.php it could be overwritten if you upgrade the core.

    failing that put the following at the top of your .htaccess file to tell php to increase the memory limit.

    php_value memory_limit 128M

    1773 Views
Page: 1
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.