17488 Posts in 4473 Topics by 1978 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1613 Views |
-
?stage=live not working

2 October 2008 at 11:47am
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
-
Re: ?stage=live not working

2 October 2008 at 11:58am Last edited: 2 October 2008 12:00pm
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.
-
Re: ?stage=live not working

2 October 2008 at 2:12pm Last edited: 2 October 2008 2:25pm
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
-
Re: ?stage=live not working

2 October 2008 at 5:39pm
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
| 1613 Views | ||
|
Page:
1
|
Go to Top |


