What is PHP? PHP is an open-source programming language mainly used to create dynamic web pages. It's one of the most commonly used programming languages on the web today, and is used by content managers such as Wordpress, Joomla! and Drupal. Why is OVH going to deactivate certain versions of PHP? Like all programming languages, PHP has changed over time: new features, bug fixes, etc., have been introduced. Old versions are supported for a defined period of time and then they reach their end-of-life. We are going to deactivate old, unsupported versions because they carry security risks for both OVH and our customers. What are the benefits of migrating to a new version of PHP? By migrating your website to a recent, supported version of PHP, you will hugely reduce your website's exposure to security risks and benefit from new features. OVH also offers free PHP-FPM optimisation (from version 5.3) to boost your website's performance. Click here for more information. Which versions will no longer be supported?
|Version|Date of end-of-life|Not been supported for [years] + [months] | |4.X|7 August 2008|6 years and 8 months| |5.2|6 January 2011|4 years and 3 months| |5.3|14 August 2014|8 months|
These versions were disabled on 24 September 2015. Which hosting plans does this apply to? This applies to all our web hosting plans on Linux, with the exception of 60Free and Demo1G plans. My website, or part of my website, uses old versions of PHP. What should I do? Your websites and planned tasks (CRON) will automatically be upgraded to PHP 5.6. We strongly advise you to start testing your websites with these new versions now. We will explain how you can do this shortly. Why won't OVH migrate my scripts automatically? You can modify your PHP version from your customer account by following this guide:
However, as all websites are different, OVH cannot cater for every customer, so customers will need to migrate their scripts themselves.
STEP 1: make sure your website is compatible
A) If you use a content manager like Wordpress, Joomla! Dotclear PHPBB etc. you first need to update your website by following their official guides:
- Wordpress: https://codex.wordpress.org/Updating_WordPress
- Joomla!: https://docs.joomla.org/Portal:Upgrading_Versions
- Drupal: https://www.drupal.org/node/1494290r
- Prestashop: [url="http://doc.prestashop.com/display/PS15/Updating+PrestaShop"][blue][u]http://doc.prestashop.com/display/PS15/Updating+PrestaShop[/u][/blue][/url]
B) If you run a customised solution on your website, follow theofficial PHP migration guides. If you're not the developer of your website, contact your webmaster.
STEP 2: configure your PHP version as soon as possible
There are two ways to do this: Modify the version of PHP your website is running from your customer account
You can use the following guide: You can also do this manually by following these instructions: Find your web root folder through FTP. You can follow this guide if you need: [url="https://www.ovh.co.uk/g1380.filezilla-user-guide"]ici
- If you do not have the .ovhconfig file, you need to create it. Using a text editor insert these four lines into a blank file: (our example uses version 5.6)
app.engine=php app.engine.version=5.6 http.firewall=none environment=production
Save this file under the name ".ovhconfig" and upload it to the root of your hosting system.
- If you already have a .ovhconfig file on your hosting system you can edit it with a text edit (Bloc-Notes) and check the content.
For more information on the specifications of this file, refer to this OVH guide here
How do I know which version of PHP my website uses? Simply download this file: info.php (right-click on it and then Save As). If you want to create the file yourself, simply create a text file containing then save it in .php format and name it 'info.php'.
Publish the file via FTP to the root of your website, or your websites (if you have several which are attached to sub-domains). For example /www/mywordpress/ With your web browser, go to info.php. For example: www.your-site.com/mywordpress/info.php
Users with old versions of PHP will shortly receive an email which lists the supported versions. Mám sub-domény a multi-domény. Musím aktivovat stejnou verzi PHP na každé z nich?
Ne, OVH umožňuje mít různé verze PHP pro každou Vaší sub-doménu (multi-doména je ve skutečnosti také sub-doménou). Pro toto stačí jednoduše vytvořit .ovhconfig soubor v kořenovém adresáři každé subdomény. Soubor .ovhconfig se načítá následovně:
- soubor je otevřen z kořenového adresáře domény. Jestliže tedy například www.priklad.com směřuje do adresáře /www a beta.priklad.com do /beta adresáře, soubor /www/.ovhconfig se načte pro http://www.priklad.com/index.php požadavek. Soubor /beta/.ovhconfig se však načte pro požadavky směrované na http://beta.example.com/index.php.
- Jestliže soubor .ovhconfig pro konkrétní doménu není nalezen, načte se nastavení z /.ovhconfig.
- Jestliže neexistuje žádný výše zmíněný soubor, Vás účt bude automaticky nastaven na PHP 5.6 s FPM.
I've configured an .htaccess file to force a version of PHP. What will happen to it? Your files will migrate to PHP 5.6 by default. If you want to force a more recent version of PHP (PHP 7 for example), you need to configure .ovhconfig (a file on your FTP). Any other directives on the .htaccess file, e.g. URL rewriting, redirection, etc., will remain active. Can I use PHP 7 PHP 7 is available on our webhosting packages. I'm having problems migrating. What can I do? Our support team can't migrate your website for you, however it can help you to update your version of PHP (using the .ovhconfig file). This team isn't liable for any issues that may occur.
Need more help? You can look for a web service provider among our list of partners who will be able to guide you in your website migration: http://www.ovh.biz/