ludo3389
(Ludovic Timbert)
February 1, 2012, 10:48am
1
Hi everybody,
Since a little period, i have a 500 Internal server error for all pages of my website, except the index page.
Sometimes, the page is displayed correctly, sometimes, i have an error 500. it’s like random.
My configuration DEBIAN :
PHP
PHP 5.3.3-7+squeeze3 with Suhosin-Patch (cli) (built: Jun 28 2011 08:24:40)
Copyright © 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright © 1998-2010 Zend Technologies
with Suhosin v0.9.32.1, Copyright (c) 2007-2010, by SektionEins GmbH
To check :
I put YII_DEBUG => true or false, same result.
No error in syslog php
No error in /var/log/apache2/error*.log
I put display_error => On or Off, same result.
I don’t know where is the problem.
Thank you for you reply.
Ludovic
Try this:
in config.php, section "components", find a "log" and change it to this:
'log' => array(
'class' => 'CLogRouter',
'routes' => array(
array(
'class' => 'CWebLogRoute',
),
),
),
ludo3389
(Ludovic Timbert)
February 1, 2012, 1:18pm
3
Thank you for your reply.
It’s the same thing. Same problem.
my brain is over !
And the index page is displayed correctly every time?
jogle05
(Josegonzalez)
February 10, 2012, 4:51am
5
Hi I have same issue,
in my case, when I load some pages shows 500 Internal Server Error but when I reload page it loads fine.
I think this is happening because my app is under shared hosts and recent days the server has been unstable and overhead. So could be that requests are not being completed due to lack of memory resources. App in my local pc works fine.
cg15
(Aosomcom)
February 10, 2012, 6:45am
6
‘log’ => array(
'class' => 'CLogRouter',
'routes' => array(
array(
'class' => 'CWebLogRoute',
),
),
),
right!!!!!!!