{"id":9257,"date":"2023-12-31T16:52:15","date_gmt":"2023-12-31T16:52:15","guid":{"rendered":"https:\/\/truehost.com\/support\/?post_type=ht_kb&#038;p=9257"},"modified":"2024-08-27T10:55:13","modified_gmt":"2024-08-27T10:55:13","password":"","slug":"php-8-2-cyberpanel","status":"publish","type":"docs","link":"https:\/\/truehost.com\/support\/knowledge-base\/php-8-2-cyberpanel\/","title":{"rendered":"How to install PHP 8.2 in CyberPanel"},"content":{"rendered":"\n<p>CyberPanel may not come with PHP 8.2 preinstalled. This can cause some distress, especially when dependencies use PHP version 8.2.<\/p>\n\n\n\n<p>This guide will look at how to install this PHP version.<\/p>\n\n\n\n<p>When you try to edit PHP configs for this version, you may see this error:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-zoooom\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"155\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2023\/12\/image-34-1024x155.png\" alt=\"\" class=\"wp-image-9260\" srcset=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2023\/12\/image-34-1024x155.png 1024w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2023\/12\/image-34-300x46.png 300w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2023\/12\/image-34-768x117.png 768w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2023\/12\/image-34-50x8.png 50w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2023\/12\/image-34-920x140.png 920w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2023\/12\/image-34-600x91.png 600w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2023\/12\/image-34-320x49.png 320w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2023\/12\/image-34.png 1159w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>This shows that the config file for this version is not available.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>We will first update our CyberPanel. Access your server using the SSH terminal as root and run the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sh &lt;(curl https:\/\/raw.githubusercontent.com\/usmannasir\/cyberpanel\/stable\/preUpgrade.sh || wget -O - https:\/\/raw.githubusercontent.com\/usmannasir\/cyberpanel\/stable\/preUpgrade.sh)<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>After upgrading, we will install PHP 8.2. For Ubuntu OS, run this command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apt-get install lsphp82*<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>For CentOS\/Alma\/Rocky:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>dnf install lsphp82*<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>After installing, restart the server.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>service lsws reload<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Check where the PHP 8.2 configs are available.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-zoooom\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"660\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2023\/12\/image-35-1024x660.png\" alt=\"\" class=\"wp-image-9261\" srcset=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2023\/12\/image-35-1024x660.png 1024w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2023\/12\/image-35-300x193.png 300w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2023\/12\/image-35-768x495.png 768w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2023\/12\/image-35-50x32.png 50w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2023\/12\/image-35-920x593.png 920w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2023\/12\/image-35-600x386.png 600w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2023\/12\/image-35-320x206.png 320w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2023\/12\/image-35.png 1371w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Now PHP 8.2 has been installed on our server.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CyberPanel may not come with PHP 8.2 preinstalled. This can cause some distress, especially when dependencies use PHP version 8.2. This guide will look at how to install this PHP version. When you try to edit PHP configs for this version, you may see this error: This shows that the config file for this version [&hellip;]<\/p>\n","protected":false},"author":25,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_eb_attr":"","_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"doc_category":[2121],"doc_tag":[],"class_list":["post-9257","docs","type-docs","status-publish","hentry","doc_category-cyberpanel"],"year_month":"2026-06","word_count":145,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"Ian M","author_nicename":"ian","author_url":"https:\/\/truehost.com\/support\/author\/ian\/"},"doc_category_info":[{"term_name":"Cyberpanel","term_url":"https:\/\/truehost.com\/support\/docs-category\/cyberpanel\/"}],"doc_tag_info":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to install PHP 8.2 in CyberPanel -<\/title>\n<meta name=\"description\" content=\"Depending on your version, CyberPanel may not come with PHP 8.1, 8.2, 8.3 preinstalled. This can cause some distress, especially when ...\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/truehost.com\/support\/knowledge-base\/php-8-2-cyberpanel\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to install PHP 8.2 in CyberPanel -\" \/>\n<meta property=\"og:description\" content=\"Depending on your version, CyberPanel may not come with PHP 8.1, 8.2, 8.3 preinstalled. This can cause some distress, especially when ...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/truehost.com\/support\/knowledge-base\/php-8-2-cyberpanel\/\" \/>\n<meta property=\"article:modified_time\" content=\"2024-08-27T10:55:13+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2023\/12\/image-34-1024x155.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/php-8-2-cyberpanel\\\/\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/php-8-2-cyberpanel\\\/\",\"name\":\"How to install PHP 8.2 in CyberPanel -\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/php-8-2-cyberpanel\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/php-8-2-cyberpanel\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2023\\\/12\\\/image-34-1024x155.png\",\"datePublished\":\"2023-12-31T16:52:15+00:00\",\"dateModified\":\"2024-08-27T10:55:13+00:00\",\"description\":\"Depending on your version, CyberPanel may not come with PHP 8.1, 8.2, 8.3 preinstalled. This can cause some distress, especially when ...\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/php-8-2-cyberpanel\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/php-8-2-cyberpanel\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/php-8-2-cyberpanel\\\/#primaryimage\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2023\\\/12\\\/image-34-1024x155.png\",\"contentUrl\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2023\\\/12\\\/image-34-1024x155.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/php-8-2-cyberpanel\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/truehost.com\\\/support\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to install PHP 8.2 in CyberPanel\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#website\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/\",\"name\":\"\",\"description\":\"Help In a Click\",\"publisher\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/truehost.com\\\/support\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#organization\",\"name\":\"Truehost Kenya\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2026\\\/04\\\/cropped-image_2026-04-16_174808866.png\",\"contentUrl\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2026\\\/04\\\/cropped-image_2026-04-16_174808866.png\",\"width\":240,\"height\":48,\"caption\":\"Truehost Kenya\"},\"image\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#\\\/schema\\\/logo\\\/image\\\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to install PHP 8.2 in CyberPanel -","description":"Depending on your version, CyberPanel may not come with PHP 8.1, 8.2, 8.3 preinstalled. This can cause some distress, especially when ...","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:\/\/truehost.com\/support\/knowledge-base\/php-8-2-cyberpanel\/","og_locale":"en_US","og_type":"article","og_title":"How to install PHP 8.2 in CyberPanel -","og_description":"Depending on your version, CyberPanel may not come with PHP 8.1, 8.2, 8.3 preinstalled. This can cause some distress, especially when ...","og_url":"https:\/\/truehost.com\/support\/knowledge-base\/php-8-2-cyberpanel\/","article_modified_time":"2024-08-27T10:55:13+00:00","og_image":[{"url":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2023\/12\/image-34-1024x155.png","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/truehost.com\/support\/knowledge-base\/php-8-2-cyberpanel\/","url":"https:\/\/truehost.com\/support\/knowledge-base\/php-8-2-cyberpanel\/","name":"How to install PHP 8.2 in CyberPanel -","isPartOf":{"@id":"https:\/\/truehost.com\/support\/#website"},"primaryImageOfPage":{"@id":"https:\/\/truehost.com\/support\/knowledge-base\/php-8-2-cyberpanel\/#primaryimage"},"image":{"@id":"https:\/\/truehost.com\/support\/knowledge-base\/php-8-2-cyberpanel\/#primaryimage"},"thumbnailUrl":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2023\/12\/image-34-1024x155.png","datePublished":"2023-12-31T16:52:15+00:00","dateModified":"2024-08-27T10:55:13+00:00","description":"Depending on your version, CyberPanel may not come with PHP 8.1, 8.2, 8.3 preinstalled. This can cause some distress, especially when ...","breadcrumb":{"@id":"https:\/\/truehost.com\/support\/knowledge-base\/php-8-2-cyberpanel\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/truehost.com\/support\/knowledge-base\/php-8-2-cyberpanel\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/truehost.com\/support\/knowledge-base\/php-8-2-cyberpanel\/#primaryimage","url":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2023\/12\/image-34-1024x155.png","contentUrl":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2023\/12\/image-34-1024x155.png"},{"@type":"BreadcrumbList","@id":"https:\/\/truehost.com\/support\/knowledge-base\/php-8-2-cyberpanel\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/truehost.com\/support\/"},{"@type":"ListItem","position":2,"name":"How to install PHP 8.2 in CyberPanel"}]},{"@type":"WebSite","@id":"https:\/\/truehost.com\/support\/#website","url":"https:\/\/truehost.com\/support\/","name":"","description":"Help In a Click","publisher":{"@id":"https:\/\/truehost.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/truehost.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/truehost.com\/support\/#organization","name":"Truehost Kenya","url":"https:\/\/truehost.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/truehost.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2026\/04\/cropped-image_2026-04-16_174808866.png","contentUrl":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2026\/04\/cropped-image_2026-04-16_174808866.png","width":240,"height":48,"caption":"Truehost Kenya"},"image":{"@id":"https:\/\/truehost.com\/support\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs\/9257","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/users\/25"}],"replies":[{"embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/comments?post=9257"}],"version-history":[{"count":3,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs\/9257\/revisions"}],"predecessor-version":[{"id":13807,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs\/9257\/revisions\/13807"}],"wp:attachment":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/media?parent=9257"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/doc_category?post=9257"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/doc_tag?post=9257"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}