Each website on your Managed Webserver can be configured individually: how much memory and time PHP gets, whether Apache evaluates your .htaccess files and whether pages are cached for visitors. All settings apply to that one website only.

PHP settings

Here you change limits that many applications mention in their instructions — for example the maximum size when uploading images.

  1. Open Websites and click PHP settings (slider icon) in the row of your website.
  2. Change the values you need. The allowed range is shown to the right of each field.
  3. Click Save. The change takes effect after a few seconds.
PHP settings dialog with fields such as Memory per script, Max. file size (upload), Max. execution time, Time zone and Display errors PHP settings dialog with fields such as Memory per script, Max. file size (upload), Max. execution time, Time zone and Display errors Each field shows its technical name and the allowed range.

The most common settings:

FieldWhat it is for
Memory per script (memory_limit)The memory a single page request may use at most.
Max. file size (upload) and Max. form size (POST)How large uploaded files may be. Raise both together.
Max. execution time (seconds)How long a page request may compute before PHP stops it.
Time zoneFor date and time in your application.
Display errorsShows PHP errors directly in the browser. Only switch it on for troubleshooting, then off again.

Reset to defaults restores all values. Security settings such as disable_functions and open_basedir are fixed and cannot be changed.

You do not change the PHP version itself here but with Edit — see Creating a website and connecting your domain.

The settings page of a website

Under Websites, click Settings (gear icon) in the row of your website. A separate page opens with these sections: Page cache, Maintenance mode, Web server, Redirects, Password protection, Git deploy and Availability. Your websites at the very top takes you back to the list.

Redirects, password protection, maintenance mode and availability are described in Redirects, password protection, maintenance mode and monitoring; Git deploy is covered in Uploading files.

This page does not exist for Node.js and Ruby applications. Cache, redirects, maintenance and password protection are only available for PHP websites.

Web server: Apache mode for .htaccess

By default, nginx serves your website. Many applications, however, ship with .htaccess files — small rule files for Apache, for example for friendly URLs, redirects or access control. For these to take effect, switch on Apache mode.

  1. In the Web server section, click Enable Apache mode.
  2. The website restarts briefly. Afterwards the top right shows Apache instead of nginx.
Web server section with the Enable Apache mode button and the notes about .htaccess Web server section with the Enable Apache mode button and the notes about .htaccess Apache mode evaluates the website's .htaccess files.

Good to know:

  • In .htaccess, RewriteRule, Redirect, Require, Header, ErrorDocument and Expires work.
  • The settings on the settings page apply before .htaccess.
  • php_value and php_flag do not work and cause error 500. Change PHP values in the PHP settings or in a .user.ini file instead. Errors are logged to logs/apache-error.log in the website's folder.
  • Nextcloud, Shopware and MediaWiki run with nginx only; Apache mode is not available for them.

Back to nginx switches the mode off again.

Page cache

The page cache stores finished pages for a few minutes. Visitors then get them without waiting, and your website needs less computing power.

  1. In the Page cache section, choose the duration, between 1 minute and 1 hour.
  2. Click Enable.
Page cache section with the duration selection and the Enable button, and Maintenance mode section with allowed IPs and notice text Page cache section with the duration selection and the Enable button, and Maintenance mode section with allowed IPs and notice text Page cache and maintenance mode are at the top of the settings page.

Only pages for anonymous visitors without parameters in the address are cached. The admin area, sign-in, cart and checkout, comments and anything with a session cookie are never cached. Signed-in editors therefore always see the current state.

New content appears for visitors once the duration expires — or immediately when you click Clear cache. The page cache has no effect for Nextcloud; Redis helps there, see Cron jobs, Memcache, Redis, Node.js and Ruby.

If it does not work

…: allowed is … to ….
A value is outside the allowed range. The range is shown next to the field.
Error 500 after enabling Apache mode
Usually there is a php_value or php_flag line in an .htaccess file. Remove it and set the value in the PHP settings. The exact cause is in logs/apache-error.log.
Visitors see an old version of the page
The page cache is still serving the stored copy. Click Clear cache.

Where to go next

Was this answer helpful? 0 Users Found This Useful (0 Votes)