{"id":78778,"date":"2017-02-09T07:55:11","date_gmt":"2017-02-09T12:55:11","guid":{"rendered":"https:\/\/www.templatemonster.com\/help\/?p=78778"},"modified":"2017-08-16T11:09:09","modified_gmt":"2017-08-16T15:09:09","slug":"switch-different-php-version-manually-using-cpanel","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/switch-different-php-version-manually-using-cpanel.html","title":{"rendered":"How to switch to a different PHP version manually (using cPanel)"},"content":{"rendered":"<p>This video tutorial will show you how to <strong> switch to a different PHP version manually (using cPanel).<\/strong> <\/p>\r\n\r\n <div class=\"video-container\">\r\n\t<iframe src=\"https:\/\/www.youtube.com\/embed\/3tPm03ABYAk\"><\/iframe>\r\n<\/div>\r\n<ol>\r\n\t<li>\r\n\t\t<p>Go to <strong>cPanel<\/strong>, open <strong>File Manager<\/strong> and choose &#8220;Web Root (public_html\/www)&#8221;.<\/p>\r\n\t\t\r\n<a class=\"darkbox\" href=\"\/help\/wp-content\/uploads\/2017\/02\/How_to_switch_to_a_different_PHP_version_manually_using_Cpanel-1.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2017\/02\/How_to_switch_to_a_different_PHP_version_manually_using_Cpanel-1.png\" alt=\"How_to_switch_to_a_different_PHP_version_manually_using_Cpanel-1\" width=\"1209\" height=\"661\" class=\"alignnone size-full wp-image-78779\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2017\/02\/How_to_switch_to_a_different_PHP_version_manually_using_Cpanel-1.png 1209w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2017\/02\/How_to_switch_to_a_different_PHP_version_manually_using_Cpanel-1-150x82.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2017\/02\/How_to_switch_to_a_different_PHP_version_manually_using_Cpanel-1-300x164.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2017\/02\/How_to_switch_to_a_different_PHP_version_manually_using_Cpanel-1-768x420.png 768w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2017\/02\/How_to_switch_to_a_different_PHP_version_manually_using_Cpanel-1-1024x560.png 1024w\" sizes=\"(max-width: 1209px) 100vw, 1209px\" \/><\/a>\t\t\r\n\t<\/li>\r\n\t\r\n    <li>\r\n\t\t<p>Create a new file (or edit the existing one) called  <strong>.htaccess<\/strong> <\/p>\r\n\t\t\r\n<a class=\"darkbox\" href=\"\/help\/wp-content\/uploads\/2017\/02\/How_to_switch_to_a_different_PHP_version_manually_using_Cpanel-2.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2017\/02\/How_to_switch_to_a_different_PHP_version_manually_using_Cpanel-2.png\" alt=\"How_to_switch_to_a_different_PHP_version_manually_using_Cpanel-2\" width=\"1282\" height=\"598\" class=\"alignnone size-full wp-image-78780\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2017\/02\/How_to_switch_to_a_different_PHP_version_manually_using_Cpanel-2.png 1282w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2017\/02\/How_to_switch_to_a_different_PHP_version_manually_using_Cpanel-2-150x70.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2017\/02\/How_to_switch_to_a_different_PHP_version_manually_using_Cpanel-2-300x140.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2017\/02\/How_to_switch_to_a_different_PHP_version_manually_using_Cpanel-2-768x358.png 768w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2017\/02\/How_to_switch_to_a_different_PHP_version_manually_using_Cpanel-2-1024x478.png 1024w\" sizes=\"(max-width: 1282px) 100vw, 1282px\" \/><\/a>\t\t\r\n\t<\/li>\t\r\n\t\r\n\t\r\n\t<li>\r\n\t\t<p>To switch to PHP 7.0 add the following line:<\/p>\r\n\t\t<pre><code>AddHandler application\/x-httpd-php70 .php .php5 .php4 .php3<\/code><\/pre>\r\n\t\t\r\n<a class=\"darkbox\" href=\"\/help\/wp-content\/uploads\/2017\/02\/How_to_switch_to_a_different_PHP_version_manually_using_Cpanel-3.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2017\/02\/How_to_switch_to_a_different_PHP_version_manually_using_Cpanel-3.png\" alt=\"How_to_switch_to_a_different_PHP_version_manually_using_Cpanel-3\" width=\"1281\" height=\"564\" class=\"alignnone size-full wp-image-78781\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2017\/02\/How_to_switch_to_a_different_PHP_version_manually_using_Cpanel-3.png 1281w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2017\/02\/How_to_switch_to_a_different_PHP_version_manually_using_Cpanel-3-150x66.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2017\/02\/How_to_switch_to_a_different_PHP_version_manually_using_Cpanel-3-300x132.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2017\/02\/How_to_switch_to_a_different_PHP_version_manually_using_Cpanel-3-768x338.png 768w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2017\/02\/How_to_switch_to_a_different_PHP_version_manually_using_Cpanel-3-1024x451.png 1024w\" sizes=\"(max-width: 1281px) 100vw, 1281px\" \/><\/a>\t\t\r\n\t<\/li>\r\n\t\r\n\t<li>\r\n\t<p>In order to view your server configuration information download the <a href=\"\/help\/files\/hosting\/info.zip\">info.php<\/a> script, unzip the archive. Then upload it to the root directory of your hosting server.<\/p>\r\n\t<\/li>\r\n\t\r\n\t<li>\r\n\t\t<p>Open any web browser, in a browser address bar type <strong>your_site_domain_name\/info.php<\/strong> and you will see that PHP version was switched to 7.0 <\/p>\r\n\t\t\r\n<a class=\"darkbox\" href=\"\/help\/wp-content\/uploads\/2017\/02\/How_to_switch_to_a_different_PHP_version_manually_using_Cpanel-4.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2017\/02\/How_to_switch_to_a_different_PHP_version_manually_using_Cpanel-4.png\" alt=\"How_to_switch_to_a_different_PHP_version_manually_using_Cpanel-4\" width=\"1260\" height=\"713\" class=\"alignnone size-full wp-image-78782\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2017\/02\/How_to_switch_to_a_different_PHP_version_manually_using_Cpanel-4.png 1260w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2017\/02\/How_to_switch_to_a_different_PHP_version_manually_using_Cpanel-4-150x85.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2017\/02\/How_to_switch_to_a_different_PHP_version_manually_using_Cpanel-4-300x170.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2017\/02\/How_to_switch_to_a_different_PHP_version_manually_using_Cpanel-4-768x435.png 768w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2017\/02\/How_to_switch_to_a_different_PHP_version_manually_using_Cpanel-4-1024x579.png 1024w\" sizes=\"(max-width: 1260px) 100vw, 1260px\" \/><\/a>\t\t\r\n\t<\/li>\r\n\t\r\n\t<li>\r\n\t\t<p>To switch to PHP 5.6 use the following line:<\/p>\r\n\t\t<pre><code>AddHandler application\/x-httpd-php56 .php .php5 .php4 .php3<\/code><\/pre>\r\n\t\t\r\n<a class=\"darkbox\" href=\"\/help\/wp-content\/uploads\/2017\/02\/How_to_switch_to_a_different_PHP_version_manually_using_Cpanel-5.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2017\/02\/How_to_switch_to_a_different_PHP_version_manually_using_Cpanel-5.png\" alt=\"How_to_switch_to_a_different_PHP_version_manually_using_Cpanel-5\" width=\"1280\" height=\"592\" class=\"alignnone size-full wp-image-78783\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2017\/02\/How_to_switch_to_a_different_PHP_version_manually_using_Cpanel-5.png 1280w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2017\/02\/How_to_switch_to_a_different_PHP_version_manually_using_Cpanel-5-150x69.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2017\/02\/How_to_switch_to_a_different_PHP_version_manually_using_Cpanel-5-300x139.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2017\/02\/How_to_switch_to_a_different_PHP_version_manually_using_Cpanel-5-768x355.png 768w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2017\/02\/How_to_switch_to_a_different_PHP_version_manually_using_Cpanel-5-1024x474.png 1024w\" sizes=\"(max-width: 1280px) 100vw, 1280px\" \/><\/a>\t\t\r\n\t<\/li>\r\n\t\r\n\t\r\n\t<li>\r\n\t\t<p>Go back to your site, then open <strong>your_site_domain_name\/info.php<\/strong>. You will see that PHP version was changed to 5.6 <\/p> \r\n\t\t\r\n<a class=\"darkbox\" href=\"\/help\/wp-content\/uploads\/2017\/02\/How_to_switch_to_a_different_PHP_version_manually_using_Cpanel-6.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2017\/02\/How_to_switch_to_a_different_PHP_version_manually_using_Cpanel-6.png\" alt=\"How_to_switch_to_a_different_PHP_version_manually_using_Cpanel-6\" width=\"1290\" height=\"629\" class=\"alignnone size-full wp-image-78784\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2017\/02\/How_to_switch_to_a_different_PHP_version_manually_using_Cpanel-6.png 1290w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2017\/02\/How_to_switch_to_a_different_PHP_version_manually_using_Cpanel-6-150x73.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2017\/02\/How_to_switch_to_a_different_PHP_version_manually_using_Cpanel-6-300x146.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2017\/02\/How_to_switch_to_a_different_PHP_version_manually_using_Cpanel-6-768x374.png 768w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2017\/02\/How_to_switch_to_a_different_PHP_version_manually_using_Cpanel-6-1024x499.png 1024w\" sizes=\"(max-width: 1290px) 100vw, 1290px\" \/><\/a>\t\t\r\n\t<\/li>\r\n<\/ol>\r\n<p>Feel free to check the detailed video tutorial below:<\/p>\r\n<a href=\"http:\/\/www.youtube.com\/watch?v=3tPm03ABYAk?width=1280&amp;height=720\" rel=\"prettyPhoto\">How to switch to a different PHP version manually (using cPanel)<\/a>\r\n\r\n<div class=\"inline-banner\">\r\n<a href=\"https:\/\/www.templatemonster.com\/cart.php?addOffer=587\">\r\n<img src=\"\/help\/files\/banners\/inline\/Banner-1-(500-x100).jpg\" \/>\r\n<\/a>\r\n<\/div>","protected":false},"excerpt":{"rendered":"<p>This video tutorial will show you how to <strong> switch to a different PHP version manually (using cPanel).<\/strong> <\/p>\n","protected":false},"author":73,"featured_media":78785,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[355,1019],"tags":[1359,764,911,1613],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/78778"}],"collection":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/users\/73"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=78778"}],"version-history":[{"count":1,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/78778\/revisions"}],"predecessor-version":[{"id":82802,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/78778\/revisions\/82802"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/78785"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=78778"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=78778"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=78778"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}