How can we help?

They're here:

PHP version on directory basis

With several domains in one account it may be necessary to use different PHP versions. Here you have the option to use PHP on a directory basis.

To change the PHP version for a directory, follow these steps.

  1. Create a ".htaccess" file in the directory where you want to customize the PHP version.
  2. Copy the preferred section from the selection below into the ".htaccess" file and save the file.

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 on account basis

Alternatively, set the PHP version to account based. Click here to go to the corresponding entry.

0 0 vote
Rate entry
Notify me at
Inline feedbacks
View all comments