{"id":43084,"date":"2019-05-29T15:26:29","date_gmt":"2019-05-29T20:26:29","guid":{"rendered":"https:\/\/www.inmotionhosting.com\/support\/?p=43084"},"modified":"2023-07-18T12:31:27","modified_gmt":"2023-07-18T16:31:27","slug":"remove-old-php-versions","status":"publish","type":"post","link":"https:\/\/www.inmotionhosting.com\/support\/edu\/easyapache\/remove-old-php-versions\/","title":{"rendered":"Remove Older PHP Versions in WHM"},"content":{"rendered":"<p>As PHP <a href=\"https:\/\/php.net\/supported-versions.php\" rel=\"noopener noreferrer\" target=\"_blank\">5.6 and 7.0 reaches end of life<\/a>, <abbr title=\"Virtual Private Server\">VPS<\/abbr> users will want to remove these packages to improve <a href=\"\/support\/security\/server-security-best-practices\/\">server security<\/a>. Below we cover <strong>how to remove PHP versions using <a href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/easyapache\/\">Easy Apache 4<\/a> in WHM<\/strong>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Remove PHP Versions<\/h2>\n\n\n\n<ol class=\"article_list wp-block-list\">\n<li><a href=\"\/support\/edu\/whm\/log-into-whm\/#whm-root-access\">Login WHM<\/a> as root.<\/li>\n\n\n\n<li>Select <strong>EasyApache 4<\/strong>.<\/li>\n\n\n\n<li>Select <strong>Customize<\/strong> at the top.<\/li>\n\n\n\n<li>Select <strong>PHP Versions<\/strong> on the left.\n    <br><img decoding=\"async\" alt=\"Deselect old PHP version\" src=\"https:\/\/www.inmotionhosting.com\/support\/images\/stories\/whm\/ea4-remove-php-56.png\"><\/li>\n\n\n\n<li>Select the PHP version to turn it grey.<\/li>\n\n\n\n<li>Select <strong>Review<\/strong>.<\/li>\n\n\n\n<li>Select <strong>Provision<\/strong> at the bottom.<\/li>\n\n\n\n<li>Select <strong>Done<\/strong>.<\/li>\n<\/ol>\n\n\n\n<p>Further secure your VPS with <a href=\"\/support\/security\/server-security-best-practices\/\">best security practices<\/a>, <a href=\"\/support\/security\/server-security-block-ports-csf\/\">ConfigServer &amp; Firewall (CSF)<\/a>, and <a href=\"\/support\/email\/strengthen-overall-email-authentication\/\">email authentication<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>As PHP 5.6 and 7.0 reaches end of life, VPS users will want to remove these packages to improve server security. Below we cover how to remove PHP versions using Easy Apache 4 in WHM. Remove PHP Versions Further secure your VPS with best security practices, ConfigServer &amp; Firewall (CSF), and email authentication.<\/p>\n","protected":false},"author":57014,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4302],"tags":[],"class_list":["post-43084","post","type-post","status-publish","format-standard","hentry","category-easyapache"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Remove Older PHP Versions in WHM<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/easyapache\/remove-old-php-versions\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Remove Older PHP Versions in WHM\" \/>\n<meta property=\"og:description\" content=\"As PHP 5.6 and 7.0 reaches end of life, VPS users will want to remove these packages to improve server security. Below we cover how to remove PHP versions using Easy Apache 4 in WHM. Remove PHP Versions Further secure your VPS with best security practices, ConfigServer &amp; Firewall (CSF), and email authentication.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.inmotionhosting.com\/support\/edu\/easyapache\/remove-old-php-versions\/\" \/>\n<meta property=\"og:site_name\" content=\"InMotion Hosting Support Center\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/inmotionhosting\/\" \/>\n<meta property=\"article:published_time\" content=\"2019-05-29T20:26:29+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-07-18T16:31:27+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.inmotionhosting.com\/support\/images\/stories\/whm\/ea4-remove-php-56.png\" \/>\n<meta name=\"author\" content=\"InMotion Hosting Contributor\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/InMotionHosting\" \/>\n<meta name=\"twitter:site\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"InMotion Hosting Contributor\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/easyapache\/remove-old-php-versions\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/easyapache\/remove-old-php-versions\/\"},\"author\":{\"name\":\"InMotion Hosting Contributor\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/f9a4fc454cd1df128ee8e898d30d4644\"},\"headline\":\"Remove Older PHP Versions in WHM\",\"datePublished\":\"2019-05-29T20:26:29+00:00\",\"dateModified\":\"2023-07-18T16:31:27+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/easyapache\/remove-old-php-versions\/\"},\"wordCount\":90,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/easyapache\/remove-old-php-versions\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.inmotionhosting.com\/support\/images\/stories\/whm\/ea4-remove-php-56.png\",\"articleSection\":[\"EasyApache\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/edu\/easyapache\/remove-old-php-versions\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/easyapache\/remove-old-php-versions\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/easyapache\/remove-old-php-versions\/\",\"name\":\"How to Remove Older PHP Versions in WHM\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/easyapache\/remove-old-php-versions\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/easyapache\/remove-old-php-versions\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.inmotionhosting.com\/support\/images\/stories\/whm\/ea4-remove-php-56.png\",\"datePublished\":\"2019-05-29T20:26:29+00:00\",\"dateModified\":\"2023-07-18T16:31:27+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/easyapache\/remove-old-php-versions\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/edu\/easyapache\/remove-old-php-versions\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/easyapache\/remove-old-php-versions\/#primaryimage\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/images\/stories\/whm\/ea4-remove-php-56.png\",\"contentUrl\":\"https:\/\/www.inmotionhosting.com\/support\/images\/stories\/whm\/ea4-remove-php-56.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/easyapache\/remove-old-php-versions\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.inmotionhosting.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Remove Older PHP Versions in WHM\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"name\":\"InMotion Hosting Support Center\",\"description\":\"Web Hosting Support &amp; Tutorials\",\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\",\"name\":\"InMotion Hosting\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"contentUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"width\":696,\"height\":696,\"caption\":\"InMotion Hosting\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/inmotionhosting\/\",\"https:\/\/x.com\/InMotionHosting\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/f9a4fc454cd1df128ee8e898d30d4644\",\"name\":\"InMotion Hosting Contributor\",\"description\":\"InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals!\",\"sameAs\":[\"https:\/\/www.linkedin.com\/company\/inmotion-hosting\/\",\"https:\/\/x.com\/https:\/\/twitter.com\/InMotionHosting\"],\"url\":\"https:\/\/www.inmotionhosting.com\/support\/author\/inmotion-hosting-contributor\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Remove Older PHP Versions in WHM","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:\/\/www.inmotionhosting.com\/support\/edu\/easyapache\/remove-old-php-versions\/","og_locale":"en_US","og_type":"article","og_title":"How to Remove Older PHP Versions in WHM","og_description":"As PHP 5.6 and 7.0 reaches end of life, VPS users will want to remove these packages to improve server security. Below we cover how to remove PHP versions using Easy Apache 4 in WHM. Remove PHP Versions Further secure your VPS with best security practices, ConfigServer &amp; Firewall (CSF), and email authentication.","og_url":"https:\/\/www.inmotionhosting.com\/support\/edu\/easyapache\/remove-old-php-versions\/","og_site_name":"InMotion Hosting Support Center","article_publisher":"https:\/\/www.facebook.com\/inmotionhosting\/","article_published_time":"2019-05-29T20:26:29+00:00","article_modified_time":"2023-07-18T16:31:27+00:00","og_image":[{"url":"https:\/\/www.inmotionhosting.com\/support\/images\/stories\/whm\/ea4-remove-php-56.png","type":"","width":"","height":""}],"author":"InMotion Hosting Contributor","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/InMotionHosting","twitter_site":"@InMotionHosting","twitter_misc":{"Written by":"InMotion Hosting Contributor","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/easyapache\/remove-old-php-versions\/#article","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/easyapache\/remove-old-php-versions\/"},"author":{"name":"InMotion Hosting Contributor","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/f9a4fc454cd1df128ee8e898d30d4644"},"headline":"Remove Older PHP Versions in WHM","datePublished":"2019-05-29T20:26:29+00:00","dateModified":"2023-07-18T16:31:27+00:00","mainEntityOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/easyapache\/remove-old-php-versions\/"},"wordCount":90,"commentCount":0,"publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/easyapache\/remove-old-php-versions\/#primaryimage"},"thumbnailUrl":"https:\/\/www.inmotionhosting.com\/support\/images\/stories\/whm\/ea4-remove-php-56.png","articleSection":["EasyApache"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.inmotionhosting.com\/support\/edu\/easyapache\/remove-old-php-versions\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/easyapache\/remove-old-php-versions\/","url":"https:\/\/www.inmotionhosting.com\/support\/edu\/easyapache\/remove-old-php-versions\/","name":"How to Remove Older PHP Versions in WHM","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/easyapache\/remove-old-php-versions\/#primaryimage"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/easyapache\/remove-old-php-versions\/#primaryimage"},"thumbnailUrl":"https:\/\/www.inmotionhosting.com\/support\/images\/stories\/whm\/ea4-remove-php-56.png","datePublished":"2019-05-29T20:26:29+00:00","dateModified":"2023-07-18T16:31:27+00:00","breadcrumb":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/easyapache\/remove-old-php-versions\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.inmotionhosting.com\/support\/edu\/easyapache\/remove-old-php-versions\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/easyapache\/remove-old-php-versions\/#primaryimage","url":"https:\/\/www.inmotionhosting.com\/support\/images\/stories\/whm\/ea4-remove-php-56.png","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/images\/stories\/whm\/ea4-remove-php-56.png"},{"@type":"BreadcrumbList","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/easyapache\/remove-old-php-versions\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.inmotionhosting.com\/support\/"},{"@type":"ListItem","position":2,"name":"Remove Older PHP Versions in WHM"}]},{"@type":"WebSite","@id":"https:\/\/www.inmotionhosting.com\/support\/#website","url":"https:\/\/www.inmotionhosting.com\/support\/","name":"InMotion Hosting Support Center","description":"Web Hosting Support &amp; Tutorials","publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.inmotionhosting.com\/support\/#organization","name":"InMotion Hosting","url":"https:\/\/www.inmotionhosting.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","width":696,"height":696,"caption":"InMotion Hosting"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/inmotionhosting\/","https:\/\/x.com\/InMotionHosting"]},{"@type":"Person","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/f9a4fc454cd1df128ee8e898d30d4644","name":"InMotion Hosting Contributor","description":"InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals!","sameAs":["https:\/\/www.linkedin.com\/company\/inmotion-hosting\/","https:\/\/x.com\/https:\/\/twitter.com\/InMotionHosting"],"url":"https:\/\/www.inmotionhosting.com\/support\/author\/inmotion-hosting-contributor\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"primary_category":{"id":4302,"name":"EasyApache","slug":"easyapache","link":"https:\/\/www.inmotionhosting.com\/support\/edu\/easyapache\/"},"_links":{"self":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/43084","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/users\/57014"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/comments?post=43084"}],"version-history":[{"count":8,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/43084\/revisions"}],"predecessor-version":[{"id":105725,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/43084\/revisions\/105725"}],"wp:attachment":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/media?parent=43084"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/categories?post=43084"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/tags?post=43084"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}