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 [2017/03/14 10:27]
dedibox Correction (Elisabeth)
en:web:web-hosting:web-management:configure-php [2021/01/13 17:57] (current)
dedibox [PHP configuration at Online.net]
Line 25: Line 25:
  
   * [[http://​demo.online.net/​index.php4|PHP4]]   * [[http://​demo.online.net/​index.php4|PHP4]]
-  * [[http://​demo.online.net/​index.php5|PHP5.2]] +  * [[http://​demo.online.net/​index.php52|PHP5.2]] 
-  * [[http://​demo.online.net/​index.php|PHP5.4]]+  * [[http://​demo.online.net/​index.php54|PHP5.4]] 
 +  * [[http://​demo.online.net/​index.php55|PHP5.5]] 
 +  * [[http://​demo.online.net/​index.php56|PHP5.6]] 
 +  * [[http://​demo.online.net/​index.php70|PHP7.0]] 
 +  * [[http://​demo.online.net/​index.php71|PHP7.1]]
  
-The default version of PHP for all new hostings is PHP 5.+The default version of PHP for all new hostings is PHP 5.6.
 During the creation of your hosting, a phpinfo.php file will be created. During the creation of your hosting, a phpinfo.php file will be created.
  
Line 199: Line 203:
 ===== Sending of e-mails ===== ===== Sending of e-mails =====
  
-The function [[http://fr3.php.net/​manual/​en/​function.mail.php|mail()]] of PHP is activated, but with some limitations:​+The function [[https://www.php.net/​manual/​en/​function.mail.php|mail()]] of PHP is activated, but with some limitations:​
  
   * No more than 35 recipients per call of the function   * No more than 35 recipients per call of the function
-  * Size of the mails is limited to 2MB+  * Maximum 500 outgoing mails per day, with a limitation of 60 mails/​hour 
 +  * The size of mails is limited to 2MB
   * Antispam detection   * Antispam detection
  
Line 209: Line 214:
  
 We assume in this example that the domain is "​domain.ext"​. We assume in this example that the domain is "​domain.ext"​.
- 
-The sender of the message (From) must be the email account you use to authenticate. 
  
 <code php> <code php>
Line 348: Line 351:
 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 359: Line 362:
 ===== Configuration of PHP ===== ===== Configuration of PHP =====
  
-** This is only available ​for subscribers of PRO or UNLIMITED hosting packages ​**+Configuring PHP is possible ​for all our offers. However, ensure you are running at least **PHP version 5.3 and above**.\\
  
-You can configure PHP completely towards your need. +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.
 +
 +You can modify all values with **PHP_INI_ALL** changeable option you can find here :\\
 +http://​php.net/​manual/​en/​ini.list.php
 ===== Restrictions ===== ===== Restrictions =====
  
Line 404: Line 409:
  
 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 411: Line 419:
  
 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]].