X

Select Your Country

Denmark (Dansk)Denmark (Dansk) Worldwide (English)Worldwide (English)
X

Select Your Currency

kr. Danish krone $ US Dollar Euro
X

Select Your Country

Denmark (Dansk)Denmark (Dansk) Worldwide (English)Worldwide (English)
X

Select Your Currency

kr. Danish krone $ US Dollar Euro

Knowledge Base

HomepageKnowledge BaseWeb HotelChange PHP Version

Change PHP Version

Incert at the top of you htaccess. file

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.2


AddHandler application/x-httpd-php72 .php


To run some other PHP version in the other folder, you can use the same example.

Example lets run php 5.3 in /home/USERNAME/public_html/domain1.com/
Edit /home/USERNAME/public_html/domain1.com/.htaccess file and add

AddHandler application/x-httpd-php53 .php

Example lets run php 5.2 in /home/USERNAME/public_html/domain2.com/
Edit /home/USERNAME/public_html/domain2.com/.htaccess file and add

AddHandler application/x-httpd-php52 .php

 

php .ini configuration file locations

Path:/opt/alt/php44/usr/php/php .ini
Path:/opt/alt/php52/usr/php/php .ini
Path:/opt/alt/php53/usr/php/php .ini
Path:/opt/alt/php54/usr/php/php .ini
Path:/opt/alt/php55/usr/php/php .ini
Path:/opt/alt/php56/usr/php/php .ini
Path:/opt/alt/php70/usr/php/php .ini
Path:/opt/alt/php71/usr/php/php .ini
Path:/opt/alt/php72/usr/php/php .ini

php config file scan dir

Path:/opt/alt/php44/usr/php/php.d
Path:/opt/alt/php52/usr/php/php.d
Path:/opt/alt/php53/usr/php/php.d
Path:/opt/alt/php54/usr/php/php.d
Path:/opt/alt/php55/usr/php/php.d
Path:/opt/alt/php56/usr/php/php.d
Path:/opt/alt/php70/usr/php/php.d
Path:/opt/alt/php71/usr/php/php.d
Path:/opt/alt/php72/usr/php/php.d
Path:/opt/alt/php73/usr/php/php.d
Path:/opt/alt/php74/usr/php/php.d

Can't find the information you are looking for?

Create a Support Ticket
Did you find it useful?
(39 times viewed / 1 people found it helpful)

Hosting Billing Automation by WISECP
Top