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
Previous revision
en:web:web-hosting:web-management:configure-php [2018/07/30 11:29]
dedibox [Configuration of PHP] ticket 74
en:web:web-hosting:web-management:configure-php [2019/09/25 18:07] (current)
dedibox [Error 500]
Line 350: Line 350:
 You have to add the following line:  You have to add the following line: 
 <​code>​ <​code>​
-AddHandler php7-fcgi php+AddHandler ​${php7php
 </​code>​ </​code>​
 Once you have uploaded the .htaccess file, the directory in question will use PHP 7.1. Once you have uploaded the .htaccess file, the directory in question will use PHP 7.1.
Line 408: Line 408:
  
 You will then create an empty .htaccess file and add the lines one by one until you find the lines that caused the error 500. You will then create an empty .htaccess file and add the lines one by one until you find the lines that caused the error 500.
 +
 +=== Error in a PHP Script ===
 +An error 500 can come from an error in the PHP code. In order to debug it, you can change the `error_reporting` and `display_errors` in a user.ini file as described in "​[[configure-php#​configuration_of_php|Configuration of PHP]]"
  
 === Timeout === === Timeout ===
Line 415: Line 418:
  
 If your CMS uses the phpmailer class (XOOPS, WAnewsletter for example) you will have to update it. If your CMS uses the phpmailer class (XOOPS, WAnewsletter for example) you will have to update it.
-Replace the phpmailer directory present in your CMS with  the latest version proposed here [[http://sourceforge.net/project/showfiles.php?​group_id=26031&​package_id=252700]].+Replace the phpmailer directory present in your CMS with  the latest version proposed here [[https://github.com/PHPMailer/PHPMailer]].