Using PHP 5.6 or PHP 7.0

This article only applies to the hsphere control panel / account portal at https://cp.u2-web.com/ .  Another control panel we use has this feature built in and if you want to switch to that, it can be arranged via a support ticket. 


At this time the hsphere control panel does not list newer versions of PHP.  As such, if you need to use php 5.6 or 7.0 please place the following blank files in the domain's directory:

php 5.6:
.usePHP56
.useApache24

php 7.0:
.usePHP7
.useApache24

php 7.1:
.usePHP71
.useApache24

php 7.2:
.usePHP72
.useApache24

php 7.3:
.usePHP73
.useApache24

So for example, if you have a domain called "example.com" and want to use PHP 7.3 with it, you would upload two empty files called ".usePHP73" and ".useApache24" to the example.com directory listed in FTP or the file manager when first connecting to either one. 


NOTE: if you require a version newer than the ones above, please contact us as you will need to be migrated to a different web server platform.  



NOTE: the "." in the file names is correct and depending on how you create those files, the program may add an extension (.txt for example).   Both files with correct names are required.

Once you add those files, just wait 10 to 15 minutes for the configuration to reload and you will be using the version selected.

MySQL User notes:  if you receive database connection issues, please reset the password for the mysql user to use the long hash as described in https://clients.cooini.com/knowledgebase/146/Update-MySQL-User-Password-To-Use-Long-Hash.html .

  • 20 Users Found This Useful
Was this answer helpful?

Related Articles

Email Provider Message Sizes

Most mail servers limit the message size -- the size of the entire message including all...

Which PHP versions do you support on shared hosting?

We currently support the following PHP versions on our shared hosting servers: 5.6 7.1 7.2...

Access Spamexperts Control Panel

To access the spamexperts control panel, please do the following: Login to...

Installing a script

Installing a script nowadays is usually straight forward and they have documents to described how...

Restoring from backups

Due to a backup systems change, effective October 2014, restoring of files from the control panel...