Frequently asked questions

Back
How does PHP 7.x work on Domainnameshop?

This FAQ entry has information aimed at both non-technical and technical users and developers.

PHP 7.2 is default for all new webhotels Medium or greater since late May 2018.

We offer the following PHP versions:

  • 7.1 (supported until fall 2019)
  • 7.2 (supported until fall 2020)

If you experience problems you think are caused by our configuration or deficiencies with our servers, please first check that your software works with your PHP version and that the tips below don't work out for you before you contact our support.

Overview


When will PHP 7.x enter regular service?

PHP 7 is in regular service.

What does this FAQ entry answer?

This page tries to cover some of the questions we think you may ask, or which we have received questions about. We will update it as necessary.

What is the difference between the old and new webservers?

  • The operating system on all new webservers are running Debian 9 Stretch, upgraded from Debian 8 Jessie.

What is the difference between PHP 5.6 and PHP 7.x?

There are no big changes between PHP 5.6 and PHP 7.x on our servers. Check the PHP documentation for your version for detailed information about the changes:

The PHP-configuration for 7.x is nearly the same as 5.6. Notable differences:

  • If your CMS (e.g. Drupal, Joomla!, WordPress) has not been updated in years, you may get an error message about "mysql connection", "mysql driver", or "mysqli driver", because the CMS is incompatible with PHP 7. Upgrade to the current version.
  • IonCube Loader can be activated from the control panel for your webhotel. It will not be possible to use your own php.ini if you activate these services. This is a preferred option compared to using user-created php.ini files and other additions.
  • Zend Guard Loader is officially discontinuted as of PHP 7.0.

Which applications/services will have trouble running on our PHP 7.x webservers?

Most programs and additions that ran on PHP 5.6, will run on PHP 7 as well. Check with your program provider to make sure your software is supporting PHP 7.

You may see an error message about MySQL, "mysqli" etc. if you have an old php.ini, this file must then be removed.

Regarding self-developed code, check PHP-documentation for what changed that is not backward-compatible with PHP 7.0.

If you are running self-written modules or additions in PHP 5.6 you will most likely have to upgrade them to be compatible with more recent PHP versions (7.x). This includes (in most cases) IonCube Loader. Support for IonCube Loader is recommended to be activated via the control panel for the webhotel.

Can I switch between the different PHP versions?

Yes, you can freely switch between different versions.

Please note that the version changes may take up to 20 minutes.

When we announce that we're no longer supporting a specific version, you can no longer select that specific version.

Can I test/use PHP 7 on shell.domeneshop.no/via SSH?

Yes. You can use php-shell.domeneshop.no. This shell server automatically provides the same PHP version that you have chosen for your webhotel.

How long will you support PHP 7?

We will support the various versions approximately as long as PHP offers security updates, but will start phasing out before security support ends.

We ceased supporting PHP 5.6 and PHP 7.0 on 12 December 2018.

For other versions, please follow the link, and plan upgrades in good time. Our plans may change if PHP changes their plans regarding security updates.

My PHP-program is not working. Why?

Check How can I see PHP errors/debug PHP code? for additional help.

If you are using WordPress or Joomla, you can read more about errors/debugging about these systems here.

Known upgrade issues

If you are experiencing problems after upgrading, check this list of common problems and solutions.

"Your PHP installation appears to be missing the MySQL extension which is required by WordPress."
Your WordPress is too old, upgrade to the most recent version.
"Error establishing a database connection"

Delete your old php.ini.

"The mysqli extension is missing"

Delete your old php.ini.

Silverstripe does not work

Delete the folder silverstripe-cache.

SMF does not work

Try PHP 7.1 instead of PHP 7.2. Plan to retire SMF and use other software supporting PHP 7.2 and higher.

National characters are displayed as question marks, or not at all

In PHP 7.x, default_charset is set to UTF-8. If you have content in Latin-1 (ISO 8859-1) or other deprecated character sets, these may be displayed incorrectly. You can either convert your content to UTF-8, or set default_charset="" in .user.ini

Custom ErrorDocument does not work for PHP files, but works for other files

All filenames ending with .php are handled by uWSGI, Apache's ErrorDocument will never apply for such files.

Perl got a security update (debian.org) prohibiting direct require of files from the current working directory, without specifying path.

Use local::lib and other current Perl practices to make your own Perl libraries, or manipulate @INC if you know how.

How do I change the PHP version?

  1. Login at www.domainnameshop.com
  2. Click on "My domains"
  3. Click on the domainname in question
  4. Click on the tab "Webhotel", in the top menu
  5. Click on "View/change" on the PHP line
  6. Select your desired PHP version
  7. Click on the "Update" button to execute your change

Please note that the change may take 20 minutes to take effect.

See also:

Keyword:  

Index

© 2018 Domeneshop AS · About us · Terms · Privacy policy