MRatWork Forum by Mustafa Ramadhan

Sawo Project - Kloxo-MR Discussions => Kloxo-MR Development => Topic started by: chrisf on 2014-03-26, 09:43:38

Title: php error throws server 500 internal error
Post by: chrisf on 2014-03-26, 09:43:38
After latest update, I have been going crazy!  Php errors no longer display, and they throw 500 internal server error.  Hard to trace if it doesn't show what's wrong.

why is this happening and how to fix?  I'm using Apache as webserver.
Title: Re: php error throws server 500 internal error
Post by: MRatWork on 2014-03-26, 10:40:38
Better enable 'display error' and 'log error' in php config.

Web config in latest version more strict for security reason.

For comparing, what's happen when access to cp.domain.com and webmail.domain.com?. If normal, it's your website issue rather web and or php.
Title: Re: php error throws server 500 internal error
Post by: chrisf on 2014-03-26, 11:05:14
you misunderstand.

Php log and display errors are On.  But if php throws any error, I get a 500 internal server error.  This just happened in newest update.  However, it makes it impossible to debug.  Nothing is wrote to any logs!

Title: Re: php error throws server 500 internal error
Post by: chrisf on 2014-03-26, 11:38:52
php is working.  But when a error is thrown 500 internal error!  No display, no log!  Nothing!

ONLY change was update KloxoMR 6.5.1b to latest!
Title: Re: php error throws server 500 internal error
Post by: MRatWork on 2014-03-26, 15:01:28
Try fix-chownchmod and rename all .htaccess.
Title: Re: php error throws server 500 internal error
Post by: chrisf on 2014-03-26, 18:46:28
DO you read my posts?  I am not sure you understand.  ALL was working.  I have php display errors On.  If I make a mistake, or an error happened in php, I got the php error displayed.

Updated KloxoMR.
now a php error causes a 500 internal server error.

It is not a chown or a htaccess problem!  It is something you changed in the httpd configuration or php-fpm, it is a CHANGE implemented by recent update.

I do not use proxy, Apache webserver.

Code: [Select]
<?php
echo 'test;
?>


Missing ' throws a 500 internal server error!!!!!!!!!!
Title: Re: php error throws server 500 internal error
Post by: MRatWork on 2014-03-26, 19:04:04
Try change php-type.
Title: Re: php error throws server 500 internal error
Post by: Spacedust on 2014-03-27, 18:50:21
This happens to me too from time to time. I have a script that is restarting PHP subsystem when it happens.