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

Setup cronjob

Running Your Shell Scripts With Crontab Crontab allows you to clock and run your own Unix...

Setting up a Let's Encrypt SSL (hsphere only) - Free SSL

Let's encrypt is a free SSL certificate that can be used on your website to secure logins for...

How to create a mailbox

To create mailbox within hsphere (the control panel), please do the following:Login to the...

How to add custom DNS records

You may need to use DNS records for services else where, such as email via gmail.  To setup those...

openssl 1.0.1 or greater in PHP -- hsphere only

If you receive an error with your php script about "openssl 1.0.1 or greater" is required, please...