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:17]
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 361: Line 361:
 ===== Configuration of PHP ===== ===== Configuration of PHP =====
  
-This is only available ​for subscribers of: +Configuring PHP is possible ​for all our offers. However, ensure you are running at least **PHP version 5.3 and above**.\\
-WEB HOSTING PRO +
-BUSINESS and CLOUD HOSTING +
-PERSONAL HOSTING (PHP version 5.3 or above)+
  
-You can configure PHP completely towards your need on PHP > 5.3 
 Simply upload a "​.user.ini"​ file to the folder corresponding to your sub domain (Folder "/​www"​ for example).\\ Simply upload a "​.user.ini"​ file to the folder corresponding to your sub domain (Folder "/​www"​ for example).\\
 The majority of options are configurable,​ except for those with an impact on the resources of the server. The majority of options are configurable,​ except for those with an impact on the resources of the server.
Line 412: 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 419: 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]].