PHP-Version auf Verzeichnisebene

Inhaltsverzeichnis

Bei mehreren Domains in einem Account kann es nötig sein, unterschiedliche PHP-Versionen einzusetzen. Hierbei haben Sie die Möglichkeit, PHP auf Verzeichnisbasis einzusetzen.

Gehen Sie wie folgt vor, um die PHP-Version für ein Verzeichnis zu ändern.

  1. Erstellen Sie eine “.htaccess”-Datei im Verzeichnis, in dem Sie die PHP-Version anpassen möchten.
  2. Kopieren Sie den bevorzugten Abschnitt aus der untenstehenden Auswahl in die “.htaccess”-Datei und speichern Sie die Datei.

PHP-Version wählen

PHP 8.3

AddType application/x-httpd-alt-php83___lsphp .php5 .php4 .php .php3 .php2 .phtml

PHP 8.2

AddType application/x-httpd-alt-php82___lsphp .php5 .php4 .php .php3 .php2 .phtml

PHP 8.1

AddType application/x-httpd-alt-php81___lsphp .php5 .php4 .php .php3 .php2 .phtml

PHP 8.0

AddType application/x-httpd-alt-php80___lsphp .php5 .php4 .php .php3 .php2 .phtml

PHP 7.4

AddType application/x-httpd-alt-php74___lsphp .php5 .php4 .php .php3 .php2 .phtml

PHP 7.3

AddType application/x-httpd-alt-php73___lsphp .php5 .php4 .php .php3 .php2 .phtml

PHP 7.2

AddType application/x-httpd-alt-php72___lsphp .php5 .php4 .php .php3 .php2 .phtml

PHP 7.1

AddType application/x-httpd-alt-php71___lsphp .php5 .php4 .php .php3 .php2 .phtml

PHP 7.0

AddType application/x-httpd-alt-php70___lsphp .php5 .php4 .php .php3 .php2 .phtml

PHP 5.6

AddType application/x-httpd-alt-php56___lsphp .php5 .php4 .php .php3 .php2 .phtml

PHP 5.5

AddType application/x-httpd-alt-php55___lsphp .php5 .php4 .php .php3 .php2 .phtml

PHP 5.4

AddType application/x-httpd-alt-php54___lsphp .php5 .php4 .php .php3 .php2 .phtml

PHP 5.3

AddType application/x-httpd-alt-php53___lsphp .php5 .php4 .php .php3 .php2 .phtml

PHP 5.2

AddType application/x-httpd-alt-php52___lsphp .php5 .php4 .php .php3 .php2 .phtml

PHP 5.1

AddType application/x-httpd-alt-php51___lsphp .php5 .php4 .php .php3 .php2 .phtml

PHP 4.4

AddType application/x-httpd-alt-php44___lsphp .php5 .php4 .php .php3 .php2 .phtml

PHP-Version auf Accountbasis

Alternativ setzen Sie die PHP-Version auf Accountbasis. Klicken Sie hier, um zum entsprechenden Eintrag zu gelangen.