PHP Guides


How to add and manage PHP on your domains.

Linux Shared Servers

HOST PHP 5.3‡ PHP 5.5‡ PHP 5.6 PHP 7.1
web1.pipeten.co.uk
(CloudLinux, Sheffield)
5.3.29** 5.5.38* 5.6.30* 7.1.5*
web2.pipeten.co.uk
(CloudLinux, Sheffield)
5.3.29** 5.5.38* 5.6.30* 7.1.5*
web3.pipeten.co.uk
(CloudLinux, Sheffield)
5.3.29** 5.5.38* 5.6.30* 7.1.5*
web5.pipeten.co.uk
(CloudLinux, Sheffield)
5.3.29** 5.5.38* 5.6.30* 7.1.5*
web6.pipeten.co.uk
(CloudLinux, Sheffield)
5.3.29** 5.5.38* 5.6.30* 7.1.5*
web10.pipeten.co.uk
(CloudLinux, Sheffield)
5.3.29** 5.5.38* 5.6.30* 7.1.5*
dweb4.pipeten.co.uk
(CloudLinux, Derby)
5.3.29** 5.5.38* 5.6.30* 7.1.5*
dweb16.pipeten.co.uk
(CloudLinux, Derby)
5.3.29** 5.5.38* 5.6.30* 7.1.5*
dweb30.pipeten.co.uk
(CloudLinux, Derby)
5.3.29** 5.5.38* 5.6.30* 7.1.5*

Additional information

memory_limit = 256MB per request!
max_execution_time, max_input_time = 120
upload_max_filesize, post_max_size = 256MB
allow_url_fopen = 1, allow_url_include = 0
error_logging = custom
.htaccess = yes
mod_rewrite = yes

Windows Shared Servers

HOST PHP 5.2 PHP 5.3 PHP 5.4 PHP 5.5
win1.pipeten.co.uk
(Windows 2008 R2, IIS7.5, Sheffield)
5.2.17 5.3.29 5.4.34 5.5.17
win2.pipeten.co.uk
(Windows 2008 R2, IIS7.5, Sheffield)
5.2.17 5.3.29 5.4.34 5.5.17
win3.pipeten.co.uk
(Windows 2008, IIS7, Sheffield)
5.2.17 5.3.17 5.4.22 5.5.6
win6.pipeten.co.uk
(Windows 2008, IIS7, Sheffield)
5.2.17 5.3.17 5.4.22 5.5.6
win16.pipeten.co.uk
(Windows 2008 R2, IIS7.5, Sheffield)
5.2.17 5.3.17 5.4.22 5.5.6
dwin25.pipeten.co.uk
(Windows 2008, IIS7, Derby)
5.2.17 5.3.29 5.4.34 5.5.17
dwin41.pipeten.co.uk
(Windows 2008 R2, IIS7.5, Derby)
5.2.17 5.3.17 5.4.22 5.5.6

Additional information

memory_limit = 128MB per request
max_execution_time, max_input_time = 60
upload_max_filesize, post_max_size = 128MB
allow_url_fopen = 1, allow_url_include = 0
error_logging = visible
.htaccess = no
mod_rewrite = no

‡ = Legacy.

* = FCGID/FastCGI only.

** = Both libPHP and FCGID/FastCGI PHP modes available.


Enable PHP

By default PHP is enabled on all of our Linux packages.

  1. Navigate to Domain Settings > Domain Info.
  2. Click on the domain you wish to enable PHP for.
  3. Click the edit icon next to Web Services.
  4. Click the Red Box to turn on PHP.
  5. Click Apply at the top of the page

Change PHP Version

  1. Navigate to Domain Settings > Domain Info.
  2. Click on the domain you wish to enable PHP for.
  3. Click the Edit icon next to Web Services.
  4. From within the PHP section, select the Add button next to PHP Mode
  5. From the dropdown, select the version of PHP you wish to run.
  6. Click the Submit button.
  7. Click Apply at the top of the page

Enable PHP Advanced

By default PHP is enabled on all of our Linux packages.
Please note: PHP Advanced mode is only available on Linux. Windows packages can only enable normal PHP settings.

  1. Navigate to Domain Settings > Domain Info.
  2. Click on the domain you wish to enable PHP Advanced for.
  3. Click the edit icon next to Web Services.
  4. If PHP is turned on, press the ON icon to turn it off.
  5. Press the Off button next to PHP Advanced to turn it on.
  6. Click Apply at the top of the page

Change PHP Advanced Version

Customers using our Integrated Cloud or Physical Servers should contact support if this functionality is required.

Mode Configuration

For customers wanting speed and simplicity with PHP5 should choose mode libphp5. libphp5 runs as the web server user httpd.httpd and as such you may need to reset the ownership on uploaded files occasionally or chown/chgrp them after upload.

For customers wanting improved security but with a trade-off of slightly reduced performance should choose PHP5 mode fastcgi. fastcgi runs as your own user.group which improves the security of writeable files and directories.

For customers with application specific needs should only choose mode cgi as performance can highly be degraded during periods of high load.

For more information on choosing between FastCGI and libphp, please visit this page.

  1. Navigate to Domain Settings > Domain Info.
  2. Click on the domain you wish to enable PHP Advanced for.
  3. Click the Edit icon next to Web Services.
  4. From within the PHP Advanced section, select the Add button next to PHP Mode
  5. From the dropdown, select the version of PHP you wish to run.
  6. Click the Submit button.
  7. Click Apply at the top of the page

How to enable PHP Error Logging

Please Note: Log files to not automatically rotate. To prevent large files accumulating you should disable error logging once you have finished debugging.

  1. Create a .htaccess file.
  2. Stop PHP errors from displaying on your website by adding the following lines to your .htaccess file.
  3. # Do not display PHP error messages
    php_flag display_startup_errors off
    php_flag display_errors off
    php_flag html_errors off
  4. Enable PHP error logging and specify your php_error.log by the following lines to your .htaccess file.
  5. # enable PHP error logging
    php_value error_reporting INSERT_VALUE_HERE
    php_flag log_errors on
    php_value error_log /hsphere/local/home/USERNAME/php_error_your_domain.log

    VALUE
    The value used defines the level or error reporting you require, for example:

    • -1 = ALL errors, not recommended but can be useful when used sparingly.
    • 30719 = Same as E_ALL, less info than -1
    • 30711 = E_ALL but not E_NOTICE
    • 30709 = E_ALL but not E_NOTICE or E_WARNING
    • 22517 = E_ALL but not E_NOTICE or E_WARNING or E_DEPRECATED


    Please ensure that the path used in ‘php_value error_log’ is correct, you can find this from within your control panel under FTP/User Account > FTP User > Home Directory.

  6. Create the php_error_your_domain.log file.
  7. Depending on the PHP mode your site is running:
    • PHP libPHP mode you will need to give this file world writeable/777 permissions using your FTP client.
    • PHP FastCGI mode is recommend as you do not have to open additional permissions (FTP uploaded files will have 644 permissions by default).

How to update your PHP MySQL hash length

  1. Go to Databases > MySQL > MySQL DB’s.
  2. Click the Edit icon for the database you want to change.
  3. Click the second edit icon (Change Password) next to the database user you wish to edit the hash length for.
  4. Enter the password you wish to use (this can be the same as the current one), select Long, PHP5.x-only, and click the submit button.

That’s it, your MySQL user password is now prepared for PHP 5.4 and beyond.