{"id":7572,"date":"2020-01-29T14:05:02","date_gmt":"2020-01-29T11:05:02","guid":{"rendered":"http:\/\/unihost.com\/help\/?p=7572"},"modified":"2026-08-17T12:46:21","modified_gmt":"2026-08-17T09:46:21","slug":"how-to-update-php-centos-7","status":"publish","type":"post","link":"https:\/\/unihost.com\/help\/how-to-update-php-centos-7\/","title":{"rendered":"How to upgrade PHP version on CentOS 7"},"content":{"rendered":"<div style=\"background-color: #fde8e8; border: 1px solid #f5c2c2; border-radius: 6px; padding: 14px 16px; font-family: Ubuntu, Arial, sans-serif; font-size: 14px; color: #5c1a1a; line-height: 1.5; display: flex; align-items: flex-start; gap: 10px;\">\n<p><span style=\"font-size: 12pt; line-height: 1; flex-shrink: 0; font-family: Ubuntu, sans-serif;\">&#x26a0;<\/span><\/p>\n<p><span style=\"font-size: 12pt; font-family: Ubuntu, sans-serif;\"><strong>CentOS 7 reached end-of-life on 30 June 2024. It no longer receives security updates. If you&#8217;re still on CentOS 7, plan a migration to AlmaLinux 9 or Rocky Linux 9 &#8211; both are free, RHEL-compatible successors. The modern steps are included below.<\/strong><\/span><\/p>\n<\/div>\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: Ubuntu, sans-serif;\">PHP updates matter for both security and performance &#8211; each major version is faster and patches known vulnerabilities. This guide covers how to update PHP on CentOS 7 using the Remi repository (still valid for existing servers), and then the recommended path on AlmaLinux 9 and Rocky Linux 9, which is where new servers should be.<\/span><\/p>\n<h2><span style=\"font-size: 12pt; font-family: Ubuntu, sans-serif;\"><b>Check Your Current PHP Version<\/b><\/span><\/h2>\n<pre><span style=\"font-weight: 400; font-size: 12pt; font-family: Ubuntu, sans-serif;\">php -v<\/span><\/pre>\n<h2><span style=\"font-size: 12pt; font-family: Ubuntu, sans-serif;\"><b>Update PHP on CentOS 7 (Remi Repository)<\/b><\/span><\/h2>\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: Ubuntu, sans-serif;\">CentOS 7&#8217;s default repositories ship an old PHP. The Remi repository provides current versions. These steps still work on existing CentOS 7 servers:<\/span><\/p>\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: Ubuntu, sans-serif;\">\u00a0 \u00a0 \u00a01. Install the EPEL and Remi repositories:<\/span><\/p>\n<pre><span style=\"font-weight: 400; font-size: 12pt; font-family: Ubuntu, sans-serif;\">sudo yum install -y epel-release yum-utils<\/span>\r\n\r\n<span style=\"font-weight: 400; font-size: 12pt; font-family: Ubuntu, sans-serif;\">sudo yum install -y https:\/\/rpms.remirepo.net\/enterprise\/remi-release-7.rpm<\/span><\/pre>\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: Ubuntu, sans-serif;\">\u00a0 \u00a0 \u00a02. Enable the PHP version you want (example: PHP 8.3):<\/span><\/p>\n<pre><span style=\"font-weight: 400; font-size: 12pt; font-family: Ubuntu, sans-serif;\">sudo yum-config-manager --enable remi-php83<\/span><\/pre>\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: Ubuntu, sans-serif;\">\u00a0 \u00a0 \u00a03. Install or update PHP and common extensions:<\/span><\/p>\n<pre><span style=\"font-weight: 400; font-size: 12pt; font-family: Ubuntu, sans-serif;\">sudo yum install -y php php-cli php-fpm php-mysqlnd php-gd \\<\/span>\r\n\r\n<span style=\"font-weight: 400; font-size: 12pt; font-family: Ubuntu, sans-serif;\">\u00a0 \u00a0 php-mbstring php-xml php-curl php-zip<\/span><\/pre>\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: Ubuntu, sans-serif;\">\u00a0 \u00a0 \u00a04. Restart your web service and verify:<\/span><\/p>\n<pre><span style=\"font-weight: 400; font-size: 12pt; font-family: Ubuntu, sans-serif;\">sudo systemctl restart php-fpm httpd<\/span>\r\n\r\n<span style=\"font-weight: 400; font-size: 12pt; font-family: Ubuntu, sans-serif;\">php -v<\/span><\/pre>\n<h2><span style=\"font-size: 12pt; font-family: Ubuntu, sans-serif;\"><b>Recommended: PHP on AlmaLinux 9 \/ Rocky Linux 9<\/b><\/span><\/h2>\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: Ubuntu, sans-serif;\">On a modern RHEL-family system, PHP is managed through DNF modules plus Remi. This is the setup for new servers:<\/span><\/p>\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: Ubuntu, sans-serif;\">\u00a0 \u00a0 \u00a05. Add EPEL and Remi:<\/span><\/p>\n<pre><span style=\"font-weight: 400; font-size: 12pt; font-family: Ubuntu, sans-serif;\">sudo dnf install -y epel-release<\/span>\r\n\r\n<span style=\"font-weight: 400; font-size: 12pt; font-family: Ubuntu, sans-serif;\">sudo dnf install -y https:\/\/rpms.remirepo.net\/enterprise\/remi-release-9.rpm<\/span><\/pre>\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: Ubuntu, sans-serif;\">\u00a0 \u00a0 \u00a06. Reset and enable the PHP module stream:<\/span><\/p>\n<pre><span style=\"font-weight: 400; font-size: 12pt; font-family: Ubuntu, sans-serif;\">sudo dnf module reset php -y<\/span>\r\n\r\n<span style=\"font-weight: 400; font-size: 12pt; font-family: Ubuntu, sans-serif;\">sudo dnf module enable php:remi-8.3 -y<\/span><\/pre>\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: Ubuntu, sans-serif;\">\u00a0 \u00a0 \u00a07. Install PHP and extensions, then verify:<\/span><\/p>\n<pre><span style=\"font-weight: 400; font-size: 12pt; font-family: Ubuntu, sans-serif;\">sudo dnf install -y php php-fpm php-cli php-mysqlnd \\<\/span>\r\n\r\n<span style=\"font-weight: 400; font-size: 12pt; font-family: Ubuntu, sans-serif;\">\u00a0 \u00a0 php-gd php-mbstring php-xml php-curl php-zip<\/span>\r\n\r\n<span style=\"font-weight: 400; font-size: 12pt; font-family: Ubuntu, sans-serif;\">sudo systemctl restart php-fpm<\/span>\r\n\r\n<span style=\"font-weight: 400; font-size: 12pt; font-family: Ubuntu, sans-serif;\">php -v<\/span><\/pre>\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: Ubuntu, sans-serif;\">Always test your application after a PHP upgrade &#8211; a major version jump (for example 7.4 to 8.3) can require small code changes. Back up first.<\/span><\/p>\n<h2><span style=\"font-size: 12pt; font-family: Ubuntu, sans-serif;\">FAQ<\/span><\/h2>\n<p><span style=\"font-size: 12pt; font-family: Ubuntu, sans-serif;\">Q: Is CentOS 7 still supported? &#8211; No. CentOS 7 reached end-of-life on 30 June 2024 and no longer receives updates. Migrate to AlmaLinux 9 or Rocky Linux 9.<\/span><\/p>\n<p><span style=\"font-size: 12pt; font-family: Ubuntu, sans-serif;\">Q: How do I update PHP on CentOS 7? &#8211; Install the EPEL and Remi repositories, enable the desired version (e.g. remi-php83), then install\/update PHP and restart php-fpm.<\/span><\/p>\n<p><span style=\"font-size: 12pt; font-family: Ubuntu, sans-serif;\">Q: What should I migrate to from CentOS 7? &#8211; AlmaLinux 9 or Rocky Linux 9 &#8211; both are free, community-supported, RHEL-compatible successors to CentOS.<\/span><script type=\"application\/ld+json\">\n{\n  \"@context\":\"https:\/\/schema.org\",\"@type\":\"HowTo\",\"name\":\"How to Update PHP on CentOS 7\",\n  \"step\":[\n    {\"@type\":\"HowToStep\",\"position\":1,\"name\":\"Check the current version with php -v.\"},\n    {\"@type\":\"HowToStep\",\"position\":2,\"name\":\"Install the EPEL and Remi repositories.\"},\n    {\"@type\":\"HowToStep\",\"position\":3,\"name\":\"Enable the desired PHP version, for example remi-php83.\"},\n    {\"@type\":\"HowToStep\",\"position\":4,\"name\":\"Install or update PHP and its extensions.\"},\n    {\"@type\":\"HowToStep\",\"position\":5,\"name\":\"Restart php-fpm and the web server, then verify with php -v.\"}\n  ]\n}\n<\/script><br \/>\n<script type=\"application\/ld+json\">\n{\n  \"@context\":\"https:\/\/schema.org\",\"@type\":\"FAQPage\",\n  \"mainEntity\":[\n    {\"@type\":\"Question\",\"name\":\"Is CentOS 7 still supported?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"No. CentOS 7 reached end-of-life on 30 June 2024 and no longer receives updates. Migrate to AlmaLinux 9 or Rocky Linux 9.\"}},\n    {\"@type\":\"Question\",\"name\":\"How do I update PHP on CentOS 7?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"Install the EPEL and Remi repositories, enable the desired version such as remi-php83, then install or update PHP and restart php-fpm.\"}},\n    {\"@type\":\"Question\",\"name\":\"What should I migrate to from CentOS 7?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"AlmaLinux 9 or Rocky Linux 9, both of which are free, community-supported, RHEL-compatible successors to CentOS.\"}}\n  ]\n}\n<\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#x26a0; CentOS 7 reached end-of-life on 30 June 2024. It no longer receives security updates. If you&#8217;re still on CentOS 7, plan a migration to AlmaLinux 9 or Rocky Linux 9 &#8211; both are free, RHEL-compatible successors. The modern steps are included below. PHP updates matter for both security and performance &#8211; each major version [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[158],"tags":[457,596,520,431,432,502],"class_list":["post-7572","post","type-post","status-publish","format-standard","hentry","category-dedicated-servers","tag-centos-2","tag-cloud-vps","tag-dedicated-servers","tag-php-2","tag-php-version-2","tag-server-management"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Update PHP on CentOS 7 (and Migrate to AlmaLinux\/Rocky)<\/title>\n<meta name=\"description\" content=\"Update PHP on CentOS 7 with the Remi repository, plus the modern path for AlmaLinux 9 and Rocky Linux 9. Includes an important CentOS 7 end-of-life note and PHP 8.3 steps.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/unihost.com\/help\/how-to-update-php-centos-7\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Update PHP on CentOS 7 (and Migrate to AlmaLinux\/Rocky)\" \/>\n<meta property=\"og:description\" content=\"Update PHP on CentOS 7 with the Remi repository, plus the modern path for AlmaLinux 9 and Rocky Linux 9. Includes an important CentOS 7 end-of-life note and PHP 8.3 steps.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/unihost.com\/help\/how-to-update-php-centos-7\/\" \/>\n<meta property=\"og:site_name\" content=\"Unihost.FAQ\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/unihost\/\" \/>\n<meta property=\"article:published_time\" content=\"2020-01-29T11:05:02+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-08-17T09:46:21+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/unihost.com\/help\/minio.php?.\/unihost-logo-alt.png\" \/>\n\t<meta property=\"og:image:width\" content=\"250\" \/>\n\t<meta property=\"og:image:height\" content=\"141\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Unihost Support\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@unihost\" \/>\n<meta name=\"twitter:site\" content=\"@unihost\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Unihost Support\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\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:\\\/\\\/unihost.com\\\/help\\\/how-to-update-php-centos-7\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/unihost.com\\\/help\\\/how-to-update-php-centos-7\\\/\"},\"author\":{\"name\":\"Unihost Support\",\"@id\":\"https:\\\/\\\/unihost.com\\\/help\\\/#\\\/schema\\\/person\\\/bb5ae95f38577c920e6a7507888b715a\"},\"headline\":\"How to upgrade PHP version on CentOS 7\",\"datePublished\":\"2020-01-29T11:05:02+00:00\",\"dateModified\":\"2026-08-17T09:46:21+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/unihost.com\\\/help\\\/how-to-update-php-centos-7\\\/\"},\"wordCount\":301,\"publisher\":{\"@id\":\"https:\\\/\\\/unihost.com\\\/help\\\/#organization\"},\"keywords\":[\"CentOS\",\"Cloud VPS\",\"dedicated servers\",\"PHP\",\"PHP-Version\",\"server management\"],\"articleSection\":[\"02. Dedicated servers\"],\"inLanguage\":\"en\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/unihost.com\\\/help\\\/how-to-update-php-centos-7\\\/\",\"url\":\"https:\\\/\\\/unihost.com\\\/help\\\/how-to-update-php-centos-7\\\/\",\"name\":\"How to Update PHP on CentOS 7 (and Migrate to AlmaLinux\\\/Rocky)\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/unihost.com\\\/help\\\/#website\"},\"datePublished\":\"2020-01-29T11:05:02+00:00\",\"dateModified\":\"2026-08-17T09:46:21+00:00\",\"description\":\"Update PHP on CentOS 7 with the Remi repository, plus the modern path for AlmaLinux 9 and Rocky Linux 9. Includes an important CentOS 7 end-of-life note and PHP 8.3 steps.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/unihost.com\\\/help\\\/how-to-update-php-centos-7\\\/#breadcrumb\"},\"inLanguage\":\"en\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/unihost.com\\\/help\\\/how-to-update-php-centos-7\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/unihost.com\\\/help\\\/how-to-update-php-centos-7\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Unihost\",\"item\":\"https:\\\/\\\/unihost.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Help\",\"item\":\"https:\\\/\\\/unihost.com\\\/help\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How to upgrade PHP version on CentOS 7\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/unihost.com\\\/help\\\/#website\",\"url\":\"https:\\\/\\\/unihost.com\\\/help\\\/\",\"name\":\"Unihost.FAQ\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/unihost.com\\\/help\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/unihost.com\\\/help\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/unihost.com\\\/help\\\/#organization\",\"name\":\"Unihost\",\"alternateName\":\"Unihost\",\"url\":\"https:\\\/\\\/unihost.com\\\/help\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en\",\"@id\":\"https:\\\/\\\/unihost.com\\\/help\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/unihost.com\\\/help\\\/minio.php?2026\\\/01\\\/minio.png\",\"contentUrl\":\"https:\\\/\\\/unihost.com\\\/help\\\/minio.php?2026\\\/01\\\/minio.png\",\"width\":300,\"height\":300,\"caption\":\"Unihost\"},\"image\":{\"@id\":\"https:\\\/\\\/unihost.com\\\/help\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/unihost\\\/\",\"https:\\\/\\\/x.com\\\/unihost\",\"https:\\\/\\\/www.instagram.com\\\/unihost\\\/?hl=en\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/unihost-com\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCITKsxMDnslQY8brN3advgw\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/unihost.com\\\/help\\\/#\\\/schema\\\/person\\\/bb5ae95f38577c920e6a7507888b715a\",\"name\":\"Unihost Support\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/a0c9db17c2a0d93e8a0d5ac123f8c5db750ad4d3d5657369c0c4e480f5af77b8?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/a0c9db17c2a0d93e8a0d5ac123f8c5db750ad4d3d5657369c0c4e480f5af77b8?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/a0c9db17c2a0d93e8a0d5ac123f8c5db750ad4d3d5657369c0c4e480f5af77b8?s=96&d=mm&r=g\",\"caption\":\"Unihost Support\"},\"sameAs\":[\"https:\\\/\\\/unihost.com\\\/\"],\"url\":\"https:\\\/\\\/unihost.com\\\/help\\\/author\\\/support\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Update PHP on CentOS 7 (and Migrate to AlmaLinux\/Rocky)","description":"Update PHP on CentOS 7 with the Remi repository, plus the modern path for AlmaLinux 9 and Rocky Linux 9. Includes an important CentOS 7 end-of-life note and PHP 8.3 steps.","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:\/\/unihost.com\/help\/how-to-update-php-centos-7\/","og_locale":"en_US","og_type":"article","og_title":"How to Update PHP on CentOS 7 (and Migrate to AlmaLinux\/Rocky)","og_description":"Update PHP on CentOS 7 with the Remi repository, plus the modern path for AlmaLinux 9 and Rocky Linux 9. Includes an important CentOS 7 end-of-life note and PHP 8.3 steps.","og_url":"https:\/\/unihost.com\/help\/how-to-update-php-centos-7\/","og_site_name":"Unihost.FAQ","article_publisher":"https:\/\/www.facebook.com\/unihost\/","article_published_time":"2020-01-29T11:05:02+00:00","article_modified_time":"2026-08-17T09:46:21+00:00","og_image":[{"width":250,"height":141,"url":"https:\/\/unihost.com\/help\/minio.php?.\/unihost-logo-alt.png","type":"image\/png"}],"author":"Unihost Support","twitter_card":"summary_large_image","twitter_creator":"@unihost","twitter_site":"@unihost","twitter_misc":{"Written by":"Unihost Support","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/unihost.com\/help\/how-to-update-php-centos-7\/#article","isPartOf":{"@id":"https:\/\/unihost.com\/help\/how-to-update-php-centos-7\/"},"author":{"name":"Unihost Support","@id":"https:\/\/unihost.com\/help\/#\/schema\/person\/bb5ae95f38577c920e6a7507888b715a"},"headline":"How to upgrade PHP version on CentOS 7","datePublished":"2020-01-29T11:05:02+00:00","dateModified":"2026-08-17T09:46:21+00:00","mainEntityOfPage":{"@id":"https:\/\/unihost.com\/help\/how-to-update-php-centos-7\/"},"wordCount":301,"publisher":{"@id":"https:\/\/unihost.com\/help\/#organization"},"keywords":["CentOS","Cloud VPS","dedicated servers","PHP","PHP-Version","server management"],"articleSection":["02. Dedicated servers"],"inLanguage":"en"},{"@type":"WebPage","@id":"https:\/\/unihost.com\/help\/how-to-update-php-centos-7\/","url":"https:\/\/unihost.com\/help\/how-to-update-php-centos-7\/","name":"How to Update PHP on CentOS 7 (and Migrate to AlmaLinux\/Rocky)","isPartOf":{"@id":"https:\/\/unihost.com\/help\/#website"},"datePublished":"2020-01-29T11:05:02+00:00","dateModified":"2026-08-17T09:46:21+00:00","description":"Update PHP on CentOS 7 with the Remi repository, plus the modern path for AlmaLinux 9 and Rocky Linux 9. Includes an important CentOS 7 end-of-life note and PHP 8.3 steps.","breadcrumb":{"@id":"https:\/\/unihost.com\/help\/how-to-update-php-centos-7\/#breadcrumb"},"inLanguage":"en","potentialAction":[{"@type":"ReadAction","target":["https:\/\/unihost.com\/help\/how-to-update-php-centos-7\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/unihost.com\/help\/how-to-update-php-centos-7\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Unihost","item":"https:\/\/unihost.com\/"},{"@type":"ListItem","position":2,"name":"Help","item":"https:\/\/unihost.com\/help\/"},{"@type":"ListItem","position":3,"name":"How to upgrade PHP version on CentOS 7"}]},{"@type":"WebSite","@id":"https:\/\/unihost.com\/help\/#website","url":"https:\/\/unihost.com\/help\/","name":"Unihost.FAQ","description":"","publisher":{"@id":"https:\/\/unihost.com\/help\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/unihost.com\/help\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en"},{"@type":"Organization","@id":"https:\/\/unihost.com\/help\/#organization","name":"Unihost","alternateName":"Unihost","url":"https:\/\/unihost.com\/help\/","logo":{"@type":"ImageObject","inLanguage":"en","@id":"https:\/\/unihost.com\/help\/#\/schema\/logo\/image\/","url":"https:\/\/unihost.com\/help\/minio.php?2026\/01\/minio.png","contentUrl":"https:\/\/unihost.com\/help\/minio.php?2026\/01\/minio.png","width":300,"height":300,"caption":"Unihost"},"image":{"@id":"https:\/\/unihost.com\/help\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/unihost\/","https:\/\/x.com\/unihost","https:\/\/www.instagram.com\/unihost\/?hl=en","https:\/\/www.linkedin.com\/company\/unihost-com","https:\/\/www.youtube.com\/channel\/UCITKsxMDnslQY8brN3advgw"]},{"@type":"Person","@id":"https:\/\/unihost.com\/help\/#\/schema\/person\/bb5ae95f38577c920e6a7507888b715a","name":"Unihost Support","image":{"@type":"ImageObject","inLanguage":"en","@id":"https:\/\/secure.gravatar.com\/avatar\/a0c9db17c2a0d93e8a0d5ac123f8c5db750ad4d3d5657369c0c4e480f5af77b8?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/a0c9db17c2a0d93e8a0d5ac123f8c5db750ad4d3d5657369c0c4e480f5af77b8?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/a0c9db17c2a0d93e8a0d5ac123f8c5db750ad4d3d5657369c0c4e480f5af77b8?s=96&d=mm&r=g","caption":"Unihost Support"},"sameAs":["https:\/\/unihost.com\/"],"url":"https:\/\/unihost.com\/help\/author\/support\/"}]}},"_links":{"self":[{"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/posts\/7572","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/comments?post=7572"}],"version-history":[{"count":26,"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/posts\/7572\/revisions"}],"predecessor-version":[{"id":20456,"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/posts\/7572\/revisions\/20456"}],"wp:attachment":[{"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/media?parent=7572"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/categories?post=7572"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/tags?post=7572"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}