CS · EN

Webhosting - PHP Configuration

In this article, you will learn:


PHP versions on Webhosting

On Webhosting, you can currently set these PHP versions: 

  • PHP 5.4 – 5.6 (obsolete, potentially unsafe)
  • PHP 7.0 – 7.4 (obsolete)
  • PHP 8.0 – 8.5

You choose the version during the Webhosting order, later you can change it according to the instructions in the chapter PHP Configuration.

PHP info

If you need to check specific functions via phpinfo() before setting up Webhosting, proceed as follows:

  1. Enter http://hc1-wd420.wedos.net/info.php82 into the browser address bar.
  2. If needed, replace the .php82 suffix with the PHP version you want to verify.

PHP Configuration

Changes to the PHP configuration on Webhosting will take effect within 30 minutes of saving.

Before changing the configuration, make sure that your web application (system, plugins, templates) supports the new setting.

To enter the PHP configuration interface, follow these steps:

  1. Log in to the customer administration ⧉.
  2. In the top menu, select Hosting Services Webhosting or WMS.
  3. From the menu, select the Webhosting for which you want to configure PHP.
  4. In the left menu, select PHP Configuration.

In this interface, you can:

  • Set a different PHP version.
  • Choose default or custom settings for selected php.ini parameters. If using custom settings, enter new values. 

Confirm the new settings with the Edit button at the top of the page. After saving, wait 30 minutes for the changes to be applied to the system.

Sample PHP version change
Sample PHP version change

Configurable PHP parameters

In the configuration interface you can set these parameters (the default value is shown in parentheses):

  • allow_url_fopen (On)
  • allow_url_include (Off)
  • auto_append_file (Off)
  • auto_prepend_file (Off)
  • display_errors (On)
  • html_errors (On)
  • ignore_user_abort (Off)
  • implicit_flush (Off)
  • log_errors (Off)
  • max_execution_time (90), available values are 5 – 300 s
  • max_file_uploads (20), available values are 0 – 50
  • max_input_vars (10000), available values are 0 – 100000
  • output_buffering (Off)
  • session.auto_start (Off)
  • session.cookie_httponly (Off)
  • session.cookie_secure (Off)
  • session.use_cookies (On)
  • session.use_only_cookies (On)

Webhosting plan parameters

These parameters are determined by the Webhosting plan (values in parentheses for LowCost | NoLimit | NoLimit Extra):

  • Number of PHP threads (7 | 25 | 30)
  • memory_limit (256 MB | 512 MB | 1024 MB)
  • upload_max_filesize (128 MB | 256 MB | 512 MB)
  • post_max_size (128 MB | 256 MB | 512 MB)

Detailed plan comparison can be found at this link ⧉. Instructions for changing the plan variant can be found in the article Services - Change of plan or billing period.

WMS parameters

With WMS, you can additionally set these parameters:

Basic configuration (default value)

  • PHP priority (0) – lower value = higher priority, priority requests are processed first by the server
  • Number of CGI slots (7) – maximum number of simultaneously running PHP processes
  • Max. number of connections (null) – the basic number of connections that the Webhosting can establish
  • Process acme-challenge URLs (enabled)
  • HTTP proxy cache (enabled) – proxy caching on the Webhosting side

Settings in php.ini (default value)

  • max_input_time (30)
  • max_input_vars (10000)
  • memory_limit (128)
  • opcache.enable (enabled)
  • post_max_size (32)
  • upload_max_filesize (32)

Common problems

Common problems with changing the PHP configuration include:

Website not working after changing PHP

Problem: After changing the PHP version or parameter, the website stopped working.

Cause: The application or part of it (template, plugin, …) is not compatible with the new PHP version or parameter value.

Solution: Change the PHP version or parameter value back to the previous one. If you need compatibility of the application with the new PHP version, solve the problem with the website administrator or the support of the specific application.

Different PHP versions on one Webhosting

Problem: I need part of the application to run on a different PHP version.

Cause: One Webhosting can run multiple domains/subdomains with applications that have different PHP version and parameter requirements. However, the settings in the administration apply globally to the entire Webhosting.

Solution: You can run a specific file with a different PHP version by adding the version number (without a decimal point) after the file extension. For example, the file application.php74 will run the file with PHP version 7.4. If this solution is unacceptable to you, the only option is to separate the problematic application to a separate Webhosting.


Frequently asked questions

How do I change a parameter to a value higher than the maximum allowed value?

Some parameters (typically max_execution_time) can be temporarily increased by customer support. Send the request via the form ⧉; include the Webhosting name, the requested value, and the justification for the request.

How do I change a parameter that is not listed in the administration?

If it is not a parameter that depends on the Webhosting plan, you cannot change it within shared webhosting. The solution may be the WMS ⧉ service, which has an extended range of PHP parameter adjustments, or your own server VPS ⧉.

I change the PHP version and nothing happens, what is going on?

Changing the PHP version may take up to 30 minutes. Please wait. If the problem persists, contact customer support ⧉.

How do I enable Memcache or Xcache?

Webhosting and WMS use OPcache, not Memcache or Xcache. Due to the closed nature of these services, these extensions cannot be added either. More information about caching can be found in the article Webhosting - Cache and proxy.