Knowledgebase

Enabling PHP 7

All customers on Surftown's Linux hosting packages are able to enable PHP 7 for their web sites. PHP 7 is the latest version of PHP, and it features large performance improvements and several new exciting features.

The PHP developers have gathered information regarding the upgrade here:
http://php.net/manual/en/migration70.php

Enabling PHP 7

In order to enable PHP 7 you need to modify your web site's .htaccess file. The file is usually in the root of your domain directory. Modifying a .htaccess file in the root directory of the hosting account may affect all web sites on that account. It can, however, be overridden by other .htaccess files further down the directory structure.

The following string needs to be added to the top of your .htaccess file:
AddType application/x-httpd-php7 php

Furthermore, you also need to remove or comment out any other AddType directives dealing with .php files.


If you would like Surftown to preform this task for you, or if you are in need of any other assistance, please have a look at the paid services we kan offer through our Service Desk Services: https://www.surftown.com/da/service-desk/
Contact
Should you not find what you are looking for then feel free to ask our support

Create A Ticket
Service Desk
Are you facing bigger challenges which requires a bit more know-how and time than you have?

Surftown Service Desk is services where we do the work to you. Our Service desk will get the job done.

Do it for me