Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-04-25, 00:10:54

Author Topic: php error throws server 500 internal error  (Read 4567 times)

0 Members and 1 Guest are viewing this topic.

Offline chrisf

  • Senior Master
  • **
  • Posts: 883
  • Karma: +11/-1
  • Gender: Male
  • Be the change that you wish to see in the world.
    • View Profile
    • Conviction's Hosting
php error throws server 500 internal error
« 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.
Christopher

Knowledge in: PHP, Perl, MySQL, Javascript, Actionscript, FLASH, HTML, CSS
Server Administrator / Developer: https://convictionshosting.com

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: php error throws server 500 internal error
« Reply #1 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.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline chrisf

  • Senior Master
  • **
  • Posts: 883
  • Karma: +11/-1
  • Gender: Male
  • Be the change that you wish to see in the world.
    • View Profile
    • Conviction's Hosting
Re: php error throws server 500 internal error
« Reply #2 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!

Christopher

Knowledge in: PHP, Perl, MySQL, Javascript, Actionscript, FLASH, HTML, CSS
Server Administrator / Developer: https://convictionshosting.com

Offline chrisf

  • Senior Master
  • **
  • Posts: 883
  • Karma: +11/-1
  • Gender: Male
  • Be the change that you wish to see in the world.
    • View Profile
    • Conviction's Hosting
Re: php error throws server 500 internal error
« Reply #3 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!
Christopher

Knowledge in: PHP, Perl, MySQL, Javascript, Actionscript, FLASH, HTML, CSS
Server Administrator / Developer: https://convictionshosting.com

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: php error throws server 500 internal error
« Reply #4 on: 2014-03-26, 15:01:28 »
Try fix-chownchmod and rename all .htaccess.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline chrisf

  • Senior Master
  • **
  • Posts: 883
  • Karma: +11/-1
  • Gender: Male
  • Be the change that you wish to see in the world.
    • View Profile
    • Conviction's Hosting
Re: php error throws server 500 internal error
« Reply #5 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!!!!!!!!!!
Christopher

Knowledge in: PHP, Perl, MySQL, Javascript, Actionscript, FLASH, HTML, CSS
Server Administrator / Developer: https://convictionshosting.com

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: php error throws server 500 internal error
« Reply #6 on: 2014-03-26, 19:04:04 »
Try change php-type.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: php error throws server 500 internal error
« Reply #7 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.

 


Top 4 Global Search Engines:    Google    Bing    Baidu    Yahoo
Click Here

Page created in 0.066 seconds with 18 queries.

web stats analysis