PHP Version per folder (user)

Αναρτήθηκε από Γεώργιος 15/12/2017 0 Σχόλια

In each folder where you want to run a different PHP version you only need to define it in the .htaccess file.

Example for file: /home/USERNAME/public_html/.htaccess

Use PHP 4.4
AddHandler application/x-httpd-php44 .php

Use PHP 5.2
AddHandler application/x-httpd-php52 .php

Use PHP 5.3
AddHandler application/x-httpd-php53 .php

Use PHP 5.4
AddHandler application/x-httpd-php54 .php

Use PHP 5.5
AddHandler application/x-httpd-php55 .php

Use PHP 5.6
AddHandler application/x-httpd-php56 .php

Use PHP 7.0
AddHandler application/x-httpd-php70 .php

Use PHP 7.1
AddHandler application/x-httpd-php71 .php

Use PHP 7.x
AddHandler application/x-httpd-php7 .php

Σχολιάστε

Loading...