{"id":605,"date":"2025-01-07T22:57:43","date_gmt":"2025-01-07T15:57:43","guid":{"rendered":"https:\/\/domainic.id\/panduan\/?p=605"},"modified":"2025-01-07T23:06:58","modified_gmt":"2025-01-07T16:06:58","slug":"merubah-versi-php-cpanel-melalui-htaccess","status":"publish","type":"post","link":"https:\/\/domainic.id\/panduan\/merubah-versi-php-cpanel-melalui-htaccess\/","title":{"rendered":"Merubah Versi PHP cPanel melalui htaccess"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Berikut ini cara merubah versi php pada hosting cpanel, dan ini merupakan langkah mudah jika dalam akun hosting tidak ada menu multiphp manager. Silahakn copykan code berikut ini dan tambahkan di file .htaccess.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Versi 5.1<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>&lt;FilesMatch \"\\.(php4|php5|php3|php2|php|phtml)$\"&gt;<br>SetHandler application\/x-httpd-alt-php51___lsphp<br>&lt;\/FilesMatch&gt;<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Versi 5.2<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>&lt;FilesMatch \"\\.(php4|php5|php3|php2|php|phtml)$\"&gt;<br>SetHandler application\/x-httpd-alt-php52___lsphp<br>&lt;\/FilesMatch&gt;<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Versi 5.3<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>&lt;FilesMatch \"\\.(php4|php5|php3|php2|php|phtml)$\"&gt;<br>SetHandler application\/x-httpd-alt-php53___lsphp<br>&lt;\/FilesMatch&gt;<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Versi 5.4<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>&lt;FilesMatch \"\\.(php4|php5|php3|php2|php|phtml)$\"&gt;<br>SetHandler application\/x-httpd-alt-php54___lsphp<br>&lt;\/FilesMatch&gt;<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Versi 5.5<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>&lt;FilesMatch \"\\.(php4|php5|php3|php2|php|phtml)$\"&gt;<br>SetHandler application\/x-httpd-alt-php55___lsphp<br>&lt;\/FilesMatch&gt;<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Versi 5.6<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>&lt;FilesMatch \"\\.(php4|php5|php3|php2|php|phtml)$\"&gt;<br>SetHandler application\/x-httpd-alt-php56___lsphp<br>&lt;\/FilesMatch&gt;<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Versi 7.0<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>&lt;FilesMatch \"\\.(php4|php5|php3|php2|php|phtml)$\"&gt;<br>SetHandler application\/x-httpd-alt-php70___lsphp<br>&lt;\/FilesMatch&gt;<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Versi 7.1<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>&lt;FilesMatch \"\\.(php4|php5|php3|php2|php|phtml)$\"&gt;<br>SetHandler application\/x-httpd-alt-php71___lsphp<br>&lt;\/FilesMatch&gt;<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Versi 7.2<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>&lt;FilesMatch \"\\.(php4|php5|php3|php2|php|phtml)$\"&gt;<br>SetHandler application\/x-httpd-alt-php72___lsphp<br>&lt;\/FilesMatch&gt;<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Versi 7.3<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>&lt;FilesMatch \"\\.(php4|php5|php3|php2|php|phtml)$\"&gt;<br>SetHandler application\/x-httpd-alt-php73___lsphp<br>&lt;\/FilesMatch&gt;<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Versi 7.4<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>&lt;FilesMatch \"\\.(php4|php5|php3|php2|php|phtml)$\"&gt;<br>SetHandler application\/x-httpd-alt-php74___lsphp<br>&lt;\/FilesMatch&gt;<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Versi 8.0<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>#php \u2013 BEGIN cPanel-generated handler, do not edit<br>#Set the \"ea-php80\" package as the default \"PHP\" programming language.<br>AddHandler application\/x-httpd-ea-php80___lsphp .php .php8 .phtml<br>#php \u2013 END cPanel-generated handler, do not edit<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Versi 8.1<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>#php \u2013 BEGIN cPanel-generated handler, do not edit<br>#Set the \"ea-php81\" package as the default \"PHP\" programming language.<br>AddHandler application\/x-httpd-ea-php81___lsphp .php .php8 .phtml<br>#php \u2013 END cPanel-generated handler, do not edit<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Versi 8.2<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>#php \u2013 BEGIN cPanel-generated handler, do not edit<br>#Set the \"ea-php82\" package as the default \"PHP\" programming language.<br>AddHandler application\/x-httpd-ea-php82___lsphp .php .php8 .phtml<br>#php \u2013 END cPanel-generated handler, do not edit<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Demikian panduan merubah versi php melalui htaccess, jika ada kendala silahkan hubungi tim teknis kami.  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Berikut ini cara merubah versi php pada hosting cpanel, dan ini merupakan langkah mudah jika dalam akun hosting tidak ada menu multiphp manager. Silahakn copykan code berikut ini dan tambahkan di file .htaccess. Versi 5.1 &lt;FilesMatch &#8220;\\.(php4|php5|php3|php2|php|phtml)$&#8221;&gt;SetHandler application\/x-httpd-alt-php51___lsphp&lt;\/FilesMatch&gt; Versi 5.2 &lt;FilesMatch &#8220;\\.(php4|php5|php3|php2|php|phtml)$&#8221;&gt;SetHandler application\/x-httpd-alt-php52___lsphp&lt;\/FilesMatch&gt; Versi 5.3 &lt;FilesMatch &#8220;\\.(php4|php5|php3|php2|php|phtml)$&#8221;&gt;SetHandler application\/x-httpd-alt-php53___lsphp&lt;\/FilesMatch&gt; Versi 5.4 &lt;FilesMatch &#8220;\\.(php4|php5|php3|php2|php|phtml)$&#8221;&gt;SetHandler application\/x-httpd-alt-php54___lsphp&lt;\/FilesMatch&gt; Versi 5.5 &#8230; <a title=\"Merubah Versi PHP cPanel melalui htaccess\" class=\"read-more\" href=\"https:\/\/domainic.id\/panduan\/merubah-versi-php-cpanel-melalui-htaccess\/\" aria-label=\"Read more about Merubah Versi PHP cPanel melalui htaccess\">Read more<\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[14],"tags":[],"class_list":["post-605","post","type-post","status-publish","format-standard","hentry","category-cpanel"],"acf":[],"_links":{"self":[{"href":"https:\/\/domainic.id\/panduan\/wp-json\/wp\/v2\/posts\/605","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/domainic.id\/panduan\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/domainic.id\/panduan\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/domainic.id\/panduan\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/domainic.id\/panduan\/wp-json\/wp\/v2\/comments?post=605"}],"version-history":[{"count":3,"href":"https:\/\/domainic.id\/panduan\/wp-json\/wp\/v2\/posts\/605\/revisions"}],"predecessor-version":[{"id":610,"href":"https:\/\/domainic.id\/panduan\/wp-json\/wp\/v2\/posts\/605\/revisions\/610"}],"wp:attachment":[{"href":"https:\/\/domainic.id\/panduan\/wp-json\/wp\/v2\/media?parent=605"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/domainic.id\/panduan\/wp-json\/wp\/v2\/categories?post=605"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/domainic.id\/panduan\/wp-json\/wp\/v2\/tags?post=605"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}