Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
en:web:web-hosting:web-management:configure-php [2017/06/24 00:41] dedibox [Configuration of PHP] |
en:web:web-hosting:web-management:configure-php [2019/09/25 18:07] (current) dedibox [Error 500] |
||
---|---|---|---|
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. | ||
Line 209: | Line 213: | ||
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 350: | ||
You have to add the following line: | You have to add the following line: | ||
<code> | <code> | ||
- | AddHandler php7-fcgi php | + | AddHandler ${php7} php |
</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 361: | ||
===== Configuration of PHP ===== | ===== Configuration of PHP ===== | ||
- | ** This is only available for subscribers of WEB HOSTING PRO or BUSINESS and CLOUD HOSTING ** | + | 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 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 407: | 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 414: | 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]]. |