{"id":1064,"date":"2020-08-25T00:25:57","date_gmt":"2020-08-25T00:25:57","guid":{"rendered":"https:\/\/www.eskimo.com\/support\/?page_id=1064"},"modified":"2025-12-08T20:36:36","modified_gmt":"2025-12-09T04:36:36","slug":"override-php-version","status":"publish","type":"page","link":"https:\/\/www.eskimo.com\/support\/override-php-version\/","title":{"rendered":"Override PHP Version"},"content":{"rendered":"<h1 style=\"text-align: center;\"><span style=\"font-family: trebuchet ms, geneva, sans-serif;\">Overriding Default PHP Version<\/span><\/h1>\n<p>The default PHP version used is 8.3. This is subject to change and if your application requires a specific version you should use an override.<br \/>\nIt is possible to override the system default PHP version for a particular directory or file extension using by adding this at the beginning of an .htaccess file:<\/p>\n<pre class=\"lang:default decode:true\">\r\nAddHandler application\/x-httpd-suphp85 php #For PHP 8.5\r\nAddHandler application\/x-httpd-suphp84 php #For PHP 8.4\r\nAddHandler application\/x-httpd-suphp83 php #For PHP 8.3\r\nAddHandler application\/x-httpd-suphp82 php #For PHP 8.2\r\nAddHandler application\/x-httpd-suphp81 php #For PHP 8.1\r\nAddHandler application\/x-httpd-suphp80 php #For PHP 8.0\r\nAddHandler application\/x-httpd-suphp74 php #For PHP 7.4\r\nAddHandler application\/x-httpd-suphp73 php #For PHP 7.3\r\nAddHandler application\/x-httpd-suphp72 php #For PHP 7.2\r\nAddHandler application\/x-httpd-suphp71 php #For PHP 7.1\r\nAddHandler application\/x-httpd-suphp70 php #For PHP 7.0\r\nAddHandler application\/x-httpd-suphp56 php #For PHP 5.6<\/pre>\n<p>This will change the version of PHP for the directory in which the .htaccess exists and all directories below it unless overridden by a lower level .htaccess in a daughter directory.<\/p>\n<p>It is also possible to set a different version of PHP based upon the file extension thusly:<\/p>\n<pre>AddHandler application\/x-httpd-suphp73 php #Use 7.3 for files ending in \"php\".\r\nAddHandler application\/x-httpd-suphp56 ph5 #Use 5.6 for files ending in \"ph5\".<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Overriding Default PHP Version The default PHP version used is 8.3. This is subject to change and if your application requires a specific version you should use an override. It is possible to override the system default PHP version for &hellip; <a href=\"https:\/\/www.eskimo.com\/support\/override-php-version\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1064","page","type-page","status-publish","hentry","wpautop"],"_links":{"self":[{"href":"https:\/\/www.eskimo.com\/support\/wp-json\/wp\/v2\/pages\/1064","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.eskimo.com\/support\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.eskimo.com\/support\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.eskimo.com\/support\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.eskimo.com\/support\/wp-json\/wp\/v2\/comments?post=1064"}],"version-history":[{"count":12,"href":"https:\/\/www.eskimo.com\/support\/wp-json\/wp\/v2\/pages\/1064\/revisions"}],"predecessor-version":[{"id":1149,"href":"https:\/\/www.eskimo.com\/support\/wp-json\/wp\/v2\/pages\/1064\/revisions\/1149"}],"wp:attachment":[{"href":"https:\/\/www.eskimo.com\/support\/wp-json\/wp\/v2\/media?parent=1064"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}