{"id":33405,"date":"2019-09-23T11:00:07","date_gmt":"2019-09-23T07:30:07","guid":{"rendered":"https:\/\/airoserver.com\/?p=1400"},"modified":"2023-10-04T16:12:38","modified_gmt":"2023-10-04T12:42:38","slug":"changing-the-php-version","status":"publish","type":"post","link":"https:\/\/airoserver.com\/fr\/dedie\/changer-la-version-de-php\/","title":{"rendered":"Changer la version de PHP"},"content":{"rendered":"<h4 class=\"wp-block-heading\"><strong>Pourquoi ?<\/strong><\/h4>\r\n\r\n\r\n\r\n<p>De temps en temps, une nouvelle version de <a href=\"https:\/\/en.wikipedia.org\/wiki\/PHP\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"PHP (s&#039;ouvre dans un nouvel onglet)\">PHP<\/a>. Lorsque cela se produit, il est pr\u00e9f\u00e9rable de changer votre version de PHP pour la plus r\u00e9cente. Il y a plusieurs raisons \u00e0 cela, que nous expliquerons plus loin :<\/p>\r\n\r\n\r\n\r\n<p>Versions obsol\u00e8tes : Lorsqu'une nouvelle version de PHP est publi\u00e9e, au bout d'un certain temps, les anciennes versions deviennent obsol\u00e8tes et ne fonctionnent plus.<\/p>\r\n\r\n\r\n\r\n<p>Meilleure s\u00e9curit\u00e9 : Les versions actualis\u00e9es de PHP offrent une meilleure s\u00e9curit\u00e9.<\/p>\r\n\r\n\r\n\r\n<p>Plug-ins et modules : Certains plug-ins et modules ne fonctionnent pas avec les anciennes versions de PHP.<\/p>\r\n\r\n\r\n\r\n<h4 class=\"wp-block-heading\"><strong>Comment ?<\/strong><\/h4>\r\n\r\n\r\n\r\n<p>Maintenant que vous en connaissez les raisons, voyons comment modifier vos versions de PHP.<\/p>\r\n\r\n\r\n\r\n<h4 class=\"wp-block-heading\"><strong>Si vous avez Cpanel comme panneau de contr\u00f4le :<\/strong><\/h4>\r\n\r\n\r\n\r\n<p>ce processus est beaucoup plus facile pour vous. Cpanel poss\u00e8de de nombreux avantages dont voici l'un d'entre eux : le support de plusieurs versions de PHP. Cela signifie que par d\u00e9faut, Cpanel vous donne l'option de changer votre version de PHP dans sa zone. Il vous suffit donc de vous rendre dans la section \"Select PHP version\" (si Cloudlinux est install\u00e9 sur votre serveur) ou \"Multi PHP manager\" (si Cloudlinux n'est pas install\u00e9 sur votre serveur) et de changer votre version de PHP.<\/p>\r\n\r\n\r\n\r\n<div class=\"wp-block-image\">\r\n<figure class=\"aligncenter\"><img decoding=\"async\" class=\"wp-image-1401\" src=\"https:\/\/airoserver.com\/wp-content\/uploads\/2019\/09\/images_text_chphp1.jpg\" alt=\"S\u00e9lectionner la version de PHP\" \/><\/figure>\r\n<\/div>\r\n\r\n\r\n\r\n<h4 class=\"wp-block-heading\"><strong>Si vous avez Direct Admin comme panneau de contr\u00f4le :<\/strong><\/h4>\r\n\r\n\r\n\r\n<p>Direct admin n'a pas les m\u00eames options que Cpanel. L'administrateur direct ne vous permet pas de changer facilement la version de PHP dans sa zone. C'est pourquoi vous ne pouvez changer la version de PHP que dans votre administration directe, en utilisant SSH (Remote Access). Cela signifie que vous devez avoir un acc\u00e8s root pour cela. Vous avez un acc\u00e8s root pour les serveurs d\u00e9di\u00e9s et les VPS. Si votre serveur est <a href=\"https:\/\/airoserver.com\/fr\/shared-hosting\/\">h\u00e9bergement mutualis\u00e9<\/a>Comme vous partagez ce serveur, vous ne pouvez pas avoir d'acc\u00e8s root.<\/p>\r\n\r\n\r\n\r\n<p>Si vous disposez d'un serveur d\u00e9di\u00e9 ou d'un VPS, suivez ces \u00e9tapes :<\/p>\r\n\r\n\r\n\r\n<ol class=\"wp-block-list\">\r\n<li>Faites une sauvegarde compl\u00e8te de vos donn\u00e9es.<\/li>\r\n<li>Connectez-vous \u00e0 SSH en utilisant le logiciel putty et la carte de votre serveur. <a href=\"https:\/\/airoserver.com\/fr\/blog\/what-is-ip\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"IP (s&#039;ouvre dans un nouvel onglet)\">IP<\/a>.<\/li>\r\n<li>Se connecter avec le compte root.<\/li>\r\n<li>Copiez et collez maintenant chacune de ces commandes \u00e0 tour de r\u00f4le et appuyez sur la touche \"Entr\u00e9e\" apr\u00e8s chacune d'entre elles.<\/li>\r\n<\/ol>\r\n\r\n\r\n\r\n<p>(N'oubliez pas de remplacer *version PHP actuelle* et *nouvelle version PHP* par les versions correctes).<\/p>\r\n\r\n\r\n\r\n<p>cd \/usr\/local\/directadmin\/custombuild<\/p>\r\n\r\n\r\n\r\n<p>nano options.conf php1_release=*version actuelle de PHP* php2_release=*Nouvelle version de PHP* .\/build php n<\/p>\r\n\r\n\r\n\r\n<p>Maintenant que les versions PHP n\u00e9cessaires sont ajout\u00e9es, vous pouvez les modifier dans la section de configuration du domaine de votre administration directe.<\/p>\r\n\r\n\r\n\r\n<div class=\"wp-block-image\">\r\n<figure class=\"aligncenter\"><img decoding=\"async\" class=\"wp-image-1402\" src=\"https:\/\/airoserver.com\/wp-content\/uploads\/2019\/09\/images_text_change-phpini-image-3.jpg\" alt=\"Modifier la version de PHP\" \/><\/figure>\r\n<\/div>\r\n\r\n\r\n\r\n<p>Direct admin ne peut supporter qu'un nombre maximum de deux versions PHP. Si vous avez 2 versions de PHP, vous le verrez dans la section Configuration du domaine.<\/p>\r\n\r\n\r\n\r\n<div class=\"wp-block-image\">\r\n<figure class=\"aligncenter\"><img decoding=\"async\" class=\"wp-image-1403\" src=\"https:\/\/airoserver.com\/wp-content\/uploads\/2019\/09\/images_text_enhanced.jpg\" alt=\"Modifier la version de PHP\" \/><\/figure>\r\n<\/div>\r\n\r\n\r\n\r\n<p>Si vous avez aim\u00e9 cet article, jetez un coup d'\u0153il \u00e0 d'autres articles sur notre site web. <a href=\"https:\/\/airoserver.com\/fr\/blog\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"Blog (s&#039;ouvre dans un nouvel onglet)\">Blog<\/a>.<\/p>","protected":false},"excerpt":{"rendered":"<p>Why? Once in a while, there is a new version of PHP. When this happens, it\u2019s better to change your version of PHP to the most updated one. This has different reasons that we will explain them shortly: Outdated versions: When a new version of PHP gets released, after a while the older versions become [&hellip;]<\/p>","protected":false},"author":5,"featured_media":33983,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[179,176,182,178],"tags":[85,177,142,183,71],"class_list":["post-33405","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-airoserver","category-dedicated","category-shared-hosting","category-airo-vps","tag-airoserver","tag-dedicated-server","tag-linux","tag-shared-hosting","tag-vps"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Changing the PHP Version<\/title>\n<meta name=\"description\" content=\"Once in a while, there is a new version of PHP. When this happens, it\u2019s better to change your version of PHP to the most updated one.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/airoserver.com\/fr\/dedie\/changer-la-version-de-php\/\" \/>\n<meta property=\"og:locale\" content=\"fr_FR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Changing the PHP Version\" \/>\n<meta property=\"og:description\" content=\"Once in a while, there is a new version of PHP. When this happens, it\u2019s better to change your version of PHP to the most updated one.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/airoserver.com\/fr\/dedie\/changer-la-version-de-php\/\" \/>\n<meta property=\"og:site_name\" content=\"Airoserver | Cloud Hosting Solutions\" \/>\n<meta property=\"article:published_time\" content=\"2019-09-23T07:30:07+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-10-04T12:42:38+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/airoserver.com\/wp-content\/uploads\/2019\/09\/php-update-featured-image.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"700\" \/>\n\t<meta property=\"og:image:height\" content=\"321\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"SEO Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u00c9crit par\" \/>\n\t<meta name=\"twitter:data1\" content=\"SEO Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Dur\u00e9e de lecture estim\u00e9e\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/airoserver.com\/dedicated\/changing-the-php-version\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/airoserver.com\/dedicated\/changing-the-php-version\/\"},\"author\":{\"name\":\"SEO Team\",\"@id\":\"https:\/\/airoserver.com\/#\/schema\/person\/62f9488eeb65ea1e571178292d4bb897\"},\"headline\":\"Changing the PHP Version\",\"datePublished\":\"2019-09-23T07:30:07+00:00\",\"dateModified\":\"2023-10-04T12:42:38+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/airoserver.com\/dedicated\/changing-the-php-version\/\"},\"wordCount\":428,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/airoserver.com\/#organization\"},\"keywords\":[\"airoserver\",\"Dedicated Server\",\"Linux\",\"Shared Hosting\",\"VPS\"],\"articleSection\":[\"AiroServer\",\"Dedicated\",\"Shared Hosting\",\"VPS\"],\"inLanguage\":\"fr-FR\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/airoserver.com\/dedicated\/changing-the-php-version\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/airoserver.com\/dedicated\/changing-the-php-version\/\",\"url\":\"https:\/\/airoserver.com\/dedicated\/changing-the-php-version\/\",\"name\":\"Changing the PHP Version\",\"isPartOf\":{\"@id\":\"https:\/\/airoserver.com\/#website\"},\"datePublished\":\"2019-09-23T07:30:07+00:00\",\"dateModified\":\"2023-10-04T12:42:38+00:00\",\"description\":\"Once in a while, there is a new version of PHP. When this happens, it\u2019s better to change your version of PHP to the most updated one.\",\"breadcrumb\":{\"@id\":\"https:\/\/airoserver.com\/dedicated\/changing-the-php-version\/#breadcrumb\"},\"inLanguage\":\"fr-FR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/airoserver.com\/dedicated\/changing-the-php-version\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/airoserver.com\/dedicated\/changing-the-php-version\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/airoserver.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Changing the PHP Version\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/airoserver.com\/#website\",\"url\":\"https:\/\/airoserver.com\/\",\"name\":\"Airoserver | Cloud Hosting Solutions\",\"description\":\"Cloud server | Dedicated server | Domain | Hosting| SSL | Virtual server | Airoserver\",\"publisher\":{\"@id\":\"https:\/\/airoserver.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/airoserver.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"fr-FR\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/airoserver.com\/#organization\",\"name\":\"Airoserver | Cloud Hosting Solutions\",\"url\":\"https:\/\/airoserver.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\/\/airoserver.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/airoserver.com\/wp-content\/uploads\/2023\/09\/logo_airoserver.png\",\"contentUrl\":\"https:\/\/airoserver.com\/wp-content\/uploads\/2023\/09\/logo_airoserver.png\",\"width\":925,\"height\":880,\"caption\":\"Airoserver | Cloud Hosting Solutions\"},\"image\":{\"@id\":\"https:\/\/airoserver.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/airoserver.com\/#\/schema\/person\/62f9488eeb65ea1e571178292d4bb897\",\"name\":\"SEO Team\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\/\/airoserver.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/0cc6a1209a0e36c0bf4f0fcdcd743946df92fde7ba86163b0724f194a722a861?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/0cc6a1209a0e36c0bf4f0fcdcd743946df92fde7ba86163b0724f194a722a861?s=96&d=mm&r=g\",\"caption\":\"SEO Team\"},\"url\":\"https:\/\/airoserver.com\/fr\/author\/seoteam\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Changing the PHP Version","description":"Once in a while, there is a new version of PHP. When this happens, it\u2019s better to change your version of PHP to the most updated one.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/airoserver.com\/fr\/dedie\/changer-la-version-de-php\/","og_locale":"fr_FR","og_type":"article","og_title":"Changing the PHP Version","og_description":"Once in a while, there is a new version of PHP. When this happens, it\u2019s better to change your version of PHP to the most updated one.","og_url":"https:\/\/airoserver.com\/fr\/dedie\/changer-la-version-de-php\/","og_site_name":"Airoserver | Cloud Hosting Solutions","article_published_time":"2019-09-23T07:30:07+00:00","article_modified_time":"2023-10-04T12:42:38+00:00","og_image":[{"width":700,"height":321,"url":"https:\/\/airoserver.com\/wp-content\/uploads\/2019\/09\/php-update-featured-image.jpg","type":"image\/jpeg"}],"author":"SEO Team","twitter_card":"summary_large_image","twitter_misc":{"\u00c9crit par":"SEO Team","Dur\u00e9e de lecture estim\u00e9e":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/airoserver.com\/dedicated\/changing-the-php-version\/#article","isPartOf":{"@id":"https:\/\/airoserver.com\/dedicated\/changing-the-php-version\/"},"author":{"name":"SEO Team","@id":"https:\/\/airoserver.com\/#\/schema\/person\/62f9488eeb65ea1e571178292d4bb897"},"headline":"Changing the PHP Version","datePublished":"2019-09-23T07:30:07+00:00","dateModified":"2023-10-04T12:42:38+00:00","mainEntityOfPage":{"@id":"https:\/\/airoserver.com\/dedicated\/changing-the-php-version\/"},"wordCount":428,"commentCount":0,"publisher":{"@id":"https:\/\/airoserver.com\/#organization"},"keywords":["airoserver","Dedicated Server","Linux","Shared Hosting","VPS"],"articleSection":["AiroServer","Dedicated","Shared Hosting","VPS"],"inLanguage":"fr-FR","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/airoserver.com\/dedicated\/changing-the-php-version\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/airoserver.com\/dedicated\/changing-the-php-version\/","url":"https:\/\/airoserver.com\/dedicated\/changing-the-php-version\/","name":"Changing the PHP Version","isPartOf":{"@id":"https:\/\/airoserver.com\/#website"},"datePublished":"2019-09-23T07:30:07+00:00","dateModified":"2023-10-04T12:42:38+00:00","description":"Once in a while, there is a new version of PHP. When this happens, it\u2019s better to change your version of PHP to the most updated one.","breadcrumb":{"@id":"https:\/\/airoserver.com\/dedicated\/changing-the-php-version\/#breadcrumb"},"inLanguage":"fr-FR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/airoserver.com\/dedicated\/changing-the-php-version\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/airoserver.com\/dedicated\/changing-the-php-version\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/airoserver.com\/"},{"@type":"ListItem","position":2,"name":"Changing the PHP Version"}]},{"@type":"WebSite","@id":"https:\/\/airoserver.com\/#website","url":"https:\/\/airoserver.com\/","name":"Airoserver | Cloud Hosting Solutions","description":"Cloud server | Dedicated server | Domain | Hosting| SSL | Virtual server | Airoserver","publisher":{"@id":"https:\/\/airoserver.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/airoserver.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"fr-FR"},{"@type":"Organization","@id":"https:\/\/airoserver.com\/#organization","name":"Airoserver | Cloud Hosting Solutions","url":"https:\/\/airoserver.com\/","logo":{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/airoserver.com\/#\/schema\/logo\/image\/","url":"https:\/\/airoserver.com\/wp-content\/uploads\/2023\/09\/logo_airoserver.png","contentUrl":"https:\/\/airoserver.com\/wp-content\/uploads\/2023\/09\/logo_airoserver.png","width":925,"height":880,"caption":"Airoserver | Cloud Hosting Solutions"},"image":{"@id":"https:\/\/airoserver.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/airoserver.com\/#\/schema\/person\/62f9488eeb65ea1e571178292d4bb897","name":"SEO Team","image":{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/airoserver.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/0cc6a1209a0e36c0bf4f0fcdcd743946df92fde7ba86163b0724f194a722a861?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0cc6a1209a0e36c0bf4f0fcdcd743946df92fde7ba86163b0724f194a722a861?s=96&d=mm&r=g","caption":"SEO Team"},"url":"https:\/\/airoserver.com\/fr\/author\/seoteam\/"}]}},"_links":{"self":[{"href":"https:\/\/airoserver.com\/fr\/wp-json\/wp\/v2\/posts\/33405","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/airoserver.com\/fr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/airoserver.com\/fr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/airoserver.com\/fr\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/airoserver.com\/fr\/wp-json\/wp\/v2\/comments?post=33405"}],"version-history":[{"count":0,"href":"https:\/\/airoserver.com\/fr\/wp-json\/wp\/v2\/posts\/33405\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/airoserver.com\/fr\/wp-json\/wp\/v2\/media\/33983"}],"wp:attachment":[{"href":"https:\/\/airoserver.com\/fr\/wp-json\/wp\/v2\/media?parent=33405"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/airoserver.com\/fr\/wp-json\/wp\/v2\/categories?post=33405"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/airoserver.com\/fr\/wp-json\/wp\/v2\/tags?post=33405"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}