{"id":36,"date":"2025-06-12T08:34:43","date_gmt":"2025-06-12T08:34:43","guid":{"rendered":"http:\/\/nashe"},"modified":"2025-06-16T15:58:21","modified_gmt":"2025-06-16T15:58:21","password":"","slug":"how-to-change-your-php-version-via-cpanel","status":"publish","type":"docs","link":"https:\/\/gethost.co.zw\/kb\/article\/how-to-change-your-php-version-via-cpanel\/","title":{"rendered":"How to Change your PHP version via cPanel"},"content":{"rendered":"\n<p>GetHost supports multiple PHP versions on every&nbsp;shared hosting&nbsp;package. You can change your PHP version and enable or disable different PHP modules via the web-based interface in your cPanel. By the time of this tutorial, the default PHP version on our servers is PHP 8.4, but you can apply a different version for your account if your application or script requires it.<\/p>\n\n\n\n<p>To change your PHP version, please log in to your cPanel and refer to the&nbsp;<strong>Software and Services<\/strong>&nbsp;section and click on the&nbsp;<strong>Select PHP Version<\/strong>&nbsp;icon.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"370\" src=\"http:\/\/gethost-kb.local\/wp-content\/uploads\/2025\/06\/Screenshot-2025-06-16-170535-1024x370.png\" alt=\"\" class=\"wp-image-635\" title=\"How to Change your PHP version via cPanel 1\" srcset=\"https:\/\/gethost.co.zw\/kb\/wp-content\/uploads\/2025\/06\/Screenshot-2025-06-16-170535-1024x370.png 1024w, https:\/\/gethost.co.zw\/kb\/wp-content\/uploads\/2025\/06\/Screenshot-2025-06-16-170535-300x108.png 300w, https:\/\/gethost.co.zw\/kb\/wp-content\/uploads\/2025\/06\/Screenshot-2025-06-16-170535-768x277.png 768w, https:\/\/gethost.co.zw\/kb\/wp-content\/uploads\/2025\/06\/Screenshot-2025-06-16-170535.png 1171w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Via the cPanel PHP Selector interface drop down menu you can see all the available PHP versions.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"518\" src=\"http:\/\/gethost-kb.local\/wp-content\/uploads\/2025\/06\/Screenshot-2025-06-16-170643-1024x518.png\" alt=\"\" class=\"wp-image-637\" title=\"How to Change your PHP version via cPanel 2\" srcset=\"https:\/\/gethost.co.zw\/kb\/wp-content\/uploads\/2025\/06\/Screenshot-2025-06-16-170643-1024x518.png 1024w, https:\/\/gethost.co.zw\/kb\/wp-content\/uploads\/2025\/06\/Screenshot-2025-06-16-170643-300x152.png 300w, https:\/\/gethost.co.zw\/kb\/wp-content\/uploads\/2025\/06\/Screenshot-2025-06-16-170643-768x388.png 768w, https:\/\/gethost.co.zw\/kb\/wp-content\/uploads\/2025\/06\/Screenshot-2025-06-16-170643-1536x777.png 1536w, https:\/\/gethost.co.zw\/kb\/wp-content\/uploads\/2025\/06\/Screenshot-2025-06-16-170643.png 1572w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>To change the current version of your hosting account, select the desired version and click on the\u00a0<strong>Apply<\/strong>\u00a0button. This will reload the page and provide you with the option to enable or disable various PHP modules available for the selected PHP version.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"507\" src=\"http:\/\/gethost-kb.local\/wp-content\/uploads\/2025\/06\/Screenshot-2025-06-16-172355-1024x507.png\" alt=\"\" class=\"wp-image-638\" title=\"How to Change your PHP version via cPanel 3\" srcset=\"https:\/\/gethost.co.zw\/kb\/wp-content\/uploads\/2025\/06\/Screenshot-2025-06-16-172355-1024x507.png 1024w, https:\/\/gethost.co.zw\/kb\/wp-content\/uploads\/2025\/06\/Screenshot-2025-06-16-172355-300x148.png 300w, https:\/\/gethost.co.zw\/kb\/wp-content\/uploads\/2025\/06\/Screenshot-2025-06-16-172355-768x380.png 768w, https:\/\/gethost.co.zw\/kb\/wp-content\/uploads\/2025\/06\/Screenshot-2025-06-16-172355-1536x760.png 1536w, https:\/\/gethost.co.zw\/kb\/wp-content\/uploads\/2025\/06\/Screenshot-2025-06-16-172355.png 1558w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>We provide a default configuration for the PHP module that you can load by clicking the Use Defaults button, or you can choose your custom configuration.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"365\" src=\"http:\/\/gethost-kb.local\/wp-content\/uploads\/2025\/06\/image-1024x365.png\" alt=\"\" class=\"wp-image-639\" srcset=\"https:\/\/gethost.co.zw\/kb\/wp-content\/uploads\/2025\/06\/image-1024x365.png 1024w, https:\/\/gethost.co.zw\/kb\/wp-content\/uploads\/2025\/06\/image-300x107.png 300w, https:\/\/gethost.co.zw\/kb\/wp-content\/uploads\/2025\/06\/image-768x274.png 768w, https:\/\/gethost.co.zw\/kb\/wp-content\/uploads\/2025\/06\/image-1536x548.png 1536w, https:\/\/gethost.co.zw\/kb\/wp-content\/uploads\/2025\/06\/image.png 1557w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Along with the module selector, you can edit the php.ini file for your account, which allows you to apply custom PHP variables. This can be done using the Options button.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"284\" src=\"http:\/\/gethost-kb.local\/wp-content\/uploads\/2025\/06\/Screenshot-2025-06-16-170752-1024x284.png\" alt=\"\" class=\"wp-image-640\" title=\"How to Change your PHP version via cPanel 5\" srcset=\"https:\/\/gethost.co.zw\/kb\/wp-content\/uploads\/2025\/06\/Screenshot-2025-06-16-170752-1024x284.png 1024w, https:\/\/gethost.co.zw\/kb\/wp-content\/uploads\/2025\/06\/Screenshot-2025-06-16-170752-300x83.png 300w, https:\/\/gethost.co.zw\/kb\/wp-content\/uploads\/2025\/06\/Screenshot-2025-06-16-170752-768x213.png 768w, https:\/\/gethost.co.zw\/kb\/wp-content\/uploads\/2025\/06\/Screenshot-2025-06-16-170752-1536x427.png 1536w, https:\/\/gethost.co.zw\/kb\/wp-content\/uploads\/2025\/06\/Screenshot-2025-06-16-170752.png 1581w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Via the PHP settings section, you can modify variables such as the&nbsp;<code>max_execution_time<\/code>&nbsp;and the&nbsp;<code>memory_limit<\/code>&nbsp;for your PHP executions.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"376\" src=\"http:\/\/gethost-kb.local\/wp-content\/uploads\/2025\/06\/Screenshot-2025-06-16-171006-1024x376.png\" alt=\"\" class=\"wp-image-641\" title=\"How to Change your PHP version via cPanel 6\" srcset=\"https:\/\/gethost.co.zw\/kb\/wp-content\/uploads\/2025\/06\/Screenshot-2025-06-16-171006-1024x376.png 1024w, https:\/\/gethost.co.zw\/kb\/wp-content\/uploads\/2025\/06\/Screenshot-2025-06-16-171006-300x110.png 300w, https:\/\/gethost.co.zw\/kb\/wp-content\/uploads\/2025\/06\/Screenshot-2025-06-16-171006-768x282.png 768w, https:\/\/gethost.co.zw\/kb\/wp-content\/uploads\/2025\/06\/Screenshot-2025-06-16-171006-1536x564.png 1536w, https:\/\/gethost.co.zw\/kb\/wp-content\/uploads\/2025\/06\/Screenshot-2025-06-16-171006.png 1572w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Additionally, you can also easily enable&nbsp;<code>the error_reporting<\/code>&nbsp;and change&nbsp;<code>upload_max_filesize<\/code>.<\/p>\n\n\n\n<p class=\"has-text-color has-background has-vivid-cyan-blue-background-color has-white-color\" style=\"border-radius:8px\">We hope you find this article useful. Discover more about&nbsp;GetHost&nbsp;\u2013 the best Hosting Solutions for personal and small business websites!<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>GetHost supports multiple PHP versions on every&nbsp;shared hosting&nbsp;package. You can change your PHP version and enable or disable different PHP modules via the web-based interface in your cPanel. By the time of this tutorial, the default PHP version on our servers is PHP 8.4, but you can apply a different version for your account if [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"doc_category":[3],"doc_tag":[],"class_list":["post-36","docs","type-docs","status-publish","hentry","doc_category-how-to"],"year_month":"2026-04","word_count":279,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"nashe","author_nicename":"nashe","author_url":"https:\/\/gethost.co.zw\/kb\/author\/nashe\/"},"doc_category_info":[{"term_name":"How To","term_url":"https:\/\/gethost.co.zw\/kb\/topic\/how-to\/"}],"doc_tag_info":[],"_links":{"self":[{"href":"https:\/\/gethost.co.zw\/kb\/wp-json\/wp\/v2\/docs\/36","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gethost.co.zw\/kb\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/gethost.co.zw\/kb\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/gethost.co.zw\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gethost.co.zw\/kb\/wp-json\/wp\/v2\/comments?post=36"}],"version-history":[{"count":2,"href":"https:\/\/gethost.co.zw\/kb\/wp-json\/wp\/v2\/docs\/36\/revisions"}],"predecessor-version":[{"id":646,"href":"https:\/\/gethost.co.zw\/kb\/wp-json\/wp\/v2\/docs\/36\/revisions\/646"}],"wp:attachment":[{"href":"https:\/\/gethost.co.zw\/kb\/wp-json\/wp\/v2\/media?parent=36"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/gethost.co.zw\/kb\/wp-json\/wp\/v2\/doc_category?post=36"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/gethost.co.zw\/kb\/wp-json\/wp\/v2\/doc_tag?post=36"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}