{"id":605,"date":"2024-06-16T09:10:07","date_gmt":"2024-06-16T09:10:07","guid":{"rendered":"https:\/\/zalvis.com\/docs\/?p=605"},"modified":"2024-06-16T09:10:07","modified_gmt":"2024-06-16T09:10:07","slug":"how-to-change-your-php-version-in-cpanel","status":"publish","type":"post","link":"https:\/\/zalvis.com\/docs\/how-to-change-your-php-version-in-cpanel.html","title":{"rendered":"How to Change Your PHP Version In cPanel"},"content":{"rendered":"<p>Websites frequently use PHP scripting language for content and applications. PHP is an acronym for Hypertext Preprocessor. PHP is typically embedded in the HTML code and processed on the server. The most common CMSs, or Content Management Systems, such as WordPress, run on this technology.<\/p>\n<p>PHP is frequently offered along with MySQL, which is a database management system, and it is extremely simple and straightforward for new programmers.<\/p>\n<p>Your hosting account has PHP installed by default unless you\u2019re on a Virtual Private Server or VPS plan. You don\u2019t need any manual installation; you can use it directly on your sites.<\/p>\n<p>Usually, the last version of PHP is the best one to use from a security, performance, and features perspective. However, there are some applications that are older and are not compatible with the latest version of PHP. For this reason, you may need to make them run on an older version of PHP.<\/p>\n<p>The prerequisites are you need a cPanel username and password, a web hosting account that supports PHP and cPanel, and a domain name (for instance, www.example.com).<br \/>\nChanging Your PHP Version<\/p>\n<p>Firstly, go into your account on cPanel and navigate to the Software Tab, in which you will find the Select PHP Version tool.<\/p>\n<p>Here, you can select the PHP version that your website requires. Once you\u2019ve selected the version you need, you can press Set as current. Below, you will see the modules that are available for this precise PHP version that you\u2019re running at the moment. In order for your website to work without any issues, you can disable or enable them as you need.<\/p>\n<p>At the top, you\u2019ll find the Options tab where the PHP settings can be changed, such as upload_max_filesize, max_execution_time, memory_limit, and so on. Below, we will go over the options that you will be tweaking in most cases.<\/p>\n<ol>\n<li>upload_max_size \u2013 To adjust the maximum upload file size that should be supported on your site, you can adjust this value. For example, you might need to tweak this value if you are uploading a large MySQL database.<\/li>\n<li>post_max_size \u2013 This value is the most common in web forms, and it shows the maximum value that can be accepted by GET and POST variables.<\/li>\n<li>max_execution_time \u2013 This value can be set to a higher limit if that is something that you need, and it shows the maximum execution time that a script should run.<\/li>\n<li>display_errors \u2013 If you change this value to \u2018On\u2019 since it is set on \u2018Off\u2019 by default, your browser will show errors on PHP scripts.<\/li>\n<\/ol>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-606\" src=\"https:\/\/zalvis.com\/docs\/wp-content\/uploads\/2024\/06\/IMG_8235.png\" alt=\"\" width=\"840\" height=\"416\" srcset=\"https:\/\/zalvis.com\/docs\/wp-content\/uploads\/2024\/06\/IMG_8235.png 840w, https:\/\/zalvis.com\/docs\/wp-content\/uploads\/2024\/06\/IMG_8235-300x149.png 300w, https:\/\/zalvis.com\/docs\/wp-content\/uploads\/2024\/06\/IMG_8235-768x380.png 768w\" sizes=\"auto, (max-width: 840px) 100vw, 840px\" \/>That is all it takes to change the PHP version used on any site you choose. The best thing about cPanel is that PHP customization is made very easy. We hope that our guide will assist you in adjusting the settings according to your needs.<\/p>\n<div class=\"ielxd69e11d396c95e\" >If you enjoyed this article, then you\u2019ll love Zalvis's Cloud Hosting platform. Turbocharge your website and get 24\/7 support from our veteran team. Our world-class hosting infrastructure focuses on auto-scaling, performance, and security. Let us show you the Zalvis difference! <a href=\"https:\/\/zalvis.com\/\">Check out our services.<\/a><\/div><style type=\"text\/css\">\r\n@media screen and (min-width: 1201px) {\r\n.ielxd69e11d396c95e {\r\ndisplay: block;\r\n}\r\n}\r\n@media screen and (min-width: 993px) and (max-width: 1200px) {\r\n.ielxd69e11d396c95e {\r\ndisplay: block;\r\n}\r\n}\r\n@media screen and (min-width: 769px) and (max-width: 992px) {\r\n.ielxd69e11d396c95e {\r\ndisplay: block;\r\n}\r\n}\r\n@media screen and (min-width: 768px) and (max-width: 768px) {\r\n.ielxd69e11d396c95e {\r\ndisplay: block;\r\n}\r\n}\r\n@media screen and (max-width: 767px) {\r\n.ielxd69e11d396c95e {\r\ndisplay: block;\r\n}\r\n}\r\n<\/style>\r\n","protected":false},"excerpt":{"rendered":"<p>Websites frequently use PHP scripting language for content and applications. PHP is an acronym for Hypertext Preprocessor. PHP is typically embedded in the HTML code and processed on the server. The most common CMSs, or Content Management Systems, such as WordPress, run on this technology. PHP is frequently offered along with MySQL, which is a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"class_list":["post-605","post","type-post","status-publish","format-standard","hentry","category-cpanel-hosting"],"_links":{"self":[{"href":"https:\/\/zalvis.com\/docs\/wp-json\/wp\/v2\/posts\/605","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zalvis.com\/docs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zalvis.com\/docs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zalvis.com\/docs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/zalvis.com\/docs\/wp-json\/wp\/v2\/comments?post=605"}],"version-history":[{"count":2,"href":"https:\/\/zalvis.com\/docs\/wp-json\/wp\/v2\/posts\/605\/revisions"}],"predecessor-version":[{"id":608,"href":"https:\/\/zalvis.com\/docs\/wp-json\/wp\/v2\/posts\/605\/revisions\/608"}],"wp:attachment":[{"href":"https:\/\/zalvis.com\/docs\/wp-json\/wp\/v2\/media?parent=605"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zalvis.com\/docs\/wp-json\/wp\/v2\/categories?post=605"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zalvis.com\/docs\/wp-json\/wp\/v2\/tags?post=605"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}