{"id":653,"date":"2017-02-11T10:03:24","date_gmt":"2017-02-11T10:03:24","guid":{"rendered":"https:\/\/hostduplex.com\/kb\/?p=653"},"modified":"2017-02-11T10:03:24","modified_gmt":"2017-02-11T10:03:24","slug":"how-to-set-the-php-version-per-domain-using-cpanel","status":"publish","type":"post","link":"https:\/\/www.hostduplex.com\/kb\/how-to-set-the-php-version-per-domain-using-cpanel\/","title":{"rendered":"How to Set the PHP Version per Domain, Using cPanel?"},"content":{"rendered":"<p><span style=\"font-size: medium;\">Do you have multiple domains, and you wish to set the PHP version per domain? For example, you have the domains Example1 and Example2, and you want to set PHP7 on Example2 domain and PHP 5.6 on Example1. You will need to do this from the cPanel.<\/span><\/p>\n<p><strong>1. <\/strong>Log into your cPanel account.<\/p>\n<p><span style=\"font-size: medium;\"><br \/>\n<strong>2. <\/strong>In the <strong>Software<\/strong> section, click on the <strong>MultiPHP Manager<\/strong> Icon.<br \/>\n<img decoding=\"async\" src=\"\/kb\/img\/cpanel-multiphp-icon.gif\" \/><\/span><\/p>\n<p><strong>3.<\/strong> Scroll down to the end of the page, select your domain from the left side, and see the <strong>PHP Version<\/strong> option. With a drop-down list on the right side. Select the appropriate PHP version from the drop-down menu and then click on <strong>Apply<\/strong>.<br \/>\n<img decoding=\"async\" src=\"\/kb\/img\/cpanel-multiphp-select-domain-full.gif\" \/><\/p>\n<p><strong>4.<\/strong> Now you want to set PHP 5.6 on Example2, scroll down and select the example2 domain. Then set the PHP version to 5.6.<br \/>\n<img decoding=\"async\" src=\"\/kb\/img\/cpanel-multiphp-select-second-domain.gif\" \/><\/p>\n<p><strong>Congratulations<\/strong>, both of your domains using different PHP versions now.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Do you have multiple domains, and you wish to set the PHP version per domain? For example, you have the domains Example1 and Example2, and you want to set PHP7 on Example2 domain and PHP 5.6 on Example1. You will need to do this from the cPanel. 1. Log into&#8230;<\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[56],"tags":[],"class_list":["post-653","post","type-post","status-publish","format-standard","hentry","category-cpanel"],"_links":{"self":[{"href":"https:\/\/www.hostduplex.com\/kb\/wp-json\/wp\/v2\/posts\/653","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostduplex.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostduplex.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostduplex.com\/kb\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostduplex.com\/kb\/wp-json\/wp\/v2\/comments?post=653"}],"version-history":[{"count":0,"href":"https:\/\/www.hostduplex.com\/kb\/wp-json\/wp\/v2\/posts\/653\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.hostduplex.com\/kb\/wp-json\/wp\/v2\/media?parent=653"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostduplex.com\/kb\/wp-json\/wp\/v2\/categories?post=653"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostduplex.com\/kb\/wp-json\/wp\/v2\/tags?post=653"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}