{"id":12140,"date":"2024-07-25T17:18:45","date_gmt":"2024-07-25T15:18:45","guid":{"rendered":"https:\/\/digi.hosting\/?post_type=docs&#038;p=12140"},"modified":"2025-01-09T20:37:58","modified_gmt":"2025-01-09T19:37:58","password":"","slug":"ange-en-annan-php-version-for-en-underdoman-eller-mapp","status":"publish","type":"docs","link":"https:\/\/digi.hosting\/sv\/support\/een-andere-php-versie-instellen-voor-een-subdomein-of-map\/","title":{"rendered":"Ange en annan PHP-version f\u00f6r en underdom\u00e4n eller mapp"},"content":{"rendered":"<p>Under Avancerade funktioner -&gt; V\u00e4lj PHP-version kan du st\u00e4lla in PHP-versionen f\u00f6r hela ditt webbhotellskonto. Ibland kan dock din WordPress, Drupal eller annat CMS st\u00f6dja en viss PHP-version som inte \u00e4r den du har st\u00e4llt in globalt.<\/p>\n\n\n\n<p>F\u00f6r att \u00e4ndra PHP-versionen f\u00f6r subdom\u00e4nen m\u00e5ste du skapa en .htaccess-fil i mappen public_html p\u00e5 din subdom\u00e4n. I den .htaccess-filen kan du placera f\u00f6ljande.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&lt;FilesMatch \"\\.(php4|php5|php3|php2|php|phtml)$\"><br>SetHandler applikation\/x-lsphp81<br>&lt;\/FilesMatch><br><\/pre>\n\n\n\n<p>Du kanske ser \"lsphp81\" i koden. Detta inneb\u00e4r att PHP-versionen f\u00f6r din underdom\u00e4n \u00e4r inst\u00e4lld p\u00e5 PHP 8.1. Om du vill anv\u00e4nda PHP 7.4 eller PHP 8.2, till exempel, kan du \u00e4ndra koden till lsphp74 respektive lsphp82.<\/p>","protected":false},"excerpt":{"rendered":"<p>Onder geavanceerde functies -> Select PHP version kan je de PHP versie instellen voor jouw volledige webhosting account. Echter kan het soms zijn dat je WordPress, Drupal of andere CMS een bepaalde PHP versie ondersteunt, anders dan wat je globaal hebt ingesteld. Om de PHP versie voor het subdomein aan te passen dien je een [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"doc_category":[72],"glossaries":[],"doc_tag":[],"knowledge_base":[75],"class_list":["post-12140","docs","type-docs","status-publish","hentry","doc_category-extra-mogelijkheden","knowledge_base-directadmin-webhosting"],"acf":[],"year_month":"2026-04","word_count":128,"total_views":"2043","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"admindigihosting","author_nicename":"admindigihosting","author_url":"https:\/\/digi.hosting\/sv\/author\/admindigihosting\/"},"doc_category_info":[{"term_name":"Extra mogelijkheden","term_url":"https:\/\/digi.hosting\/sv\/support\/directadmin-webhosting\/extra-mogelijkheden\/"}],"doc_tag_info":[],"knowledge_base_info":[{"term_name":"DirectAdmin Webhosting","term_url":"https:\/\/digi.hosting\/sv\/support\/directadmin-webhosting\/","term_slug":"directadmin-webhosting"}],"knowledge_base_slug":["directadmin-webhosting"],"_links":{"self":[{"href":"https:\/\/digi.hosting\/sv\/wp-json\/wp\/v2\/docs\/12140","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/digi.hosting\/sv\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/digi.hosting\/sv\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/digi.hosting\/sv\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/digi.hosting\/sv\/wp-json\/wp\/v2\/comments?post=12140"}],"version-history":[{"count":1,"href":"https:\/\/digi.hosting\/sv\/wp-json\/wp\/v2\/docs\/12140\/revisions"}],"predecessor-version":[{"id":12141,"href":"https:\/\/digi.hosting\/sv\/wp-json\/wp\/v2\/docs\/12140\/revisions\/12141"}],"wp:attachment":[{"href":"https:\/\/digi.hosting\/sv\/wp-json\/wp\/v2\/media?parent=12140"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/digi.hosting\/sv\/wp-json\/wp\/v2\/doc_category?post=12140"},{"taxonomy":"glossaries","embeddable":true,"href":"https:\/\/digi.hosting\/sv\/wp-json\/wp\/v2\/glossaries?post=12140"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/digi.hosting\/sv\/wp-json\/wp\/v2\/doc_tag?post=12140"},{"taxonomy":"knowledge_base","embeddable":true,"href":"https:\/\/digi.hosting\/sv\/wp-json\/wp\/v2\/knowledge_base?post=12140"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}