Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
litespeed_wiki:config:understanding_500 [2018/09/20 13:32]
Jackson Zhang [Bad PHP Code]
litespeed_wiki:config:understanding_500 [2018/09/20 13:32]
Jackson Zhang [PHP Code with wrong php configuration settings]
Line 135: Line 135:
 Sometimes, 500 error may be not easy to locate. If you move .htaccess to .htaccess.bak and move php.ini to php.ini, the 500 error still happens, it might be something wrong in the PHP code and it might be hard to find.  Sometimes, 500 error may be not easy to locate. If you move .htaccess to .htaccess.bak and move php.ini to php.ini, the 500 error still happens, it might be something wrong in the PHP code and it might be hard to find. 
  
-We experienced a case with WHMCS. In configuration.php,​ someone placed wrong php setting there:+We experienced a case with WHMCS. In configuration.php,​ someone placed ​**wrong php setting** there:
   $display_errors = E_All;   $display_errors = E_All;
 "​E_All"​ is an incorrect value for PHP setting "​$display_errors"​ and it is for "​$error_reporting"​. "​$display_errors"​ should be either "​true"/"​false",​ or "​on"/"​off"​. Changed it to the following as "​true"​ and it fixed the 500 error. "​E_All"​ is an incorrect value for PHP setting "​$display_errors"​ and it is for "​$error_reporting"​. "​$display_errors"​ should be either "​true"/"​false",​ or "​on"/"​off"​. Changed it to the following as "​true"​ and it fixed the 500 error.
  • Admin
  • Last modified: 2019/12/10 19:33
  • by Lisa Clarke