Skip to content

Runtime and PHP settings ​

Both choices live on the site's Settings tab and can be changed at any time.

Runtime ​

RuntimeWhat runs
PHP 8.3 to PHP 8.6PHP, with the extensions listed below
StaticNo PHP at all. HTML, CSS, JavaScript and other files are served as they are

New sites start on PHP 8.5. Pick the newest your application supports: older versions stop getting security fixes first, and there is no performance reason to stay behind.

Static is not a stripped-down PHP. A .php file on a static site is served as a plain file, source and all, so never switch a PHP site to Static while PHP files are still in the document root.

Web server ​

Web serverChoose it when
nginxDefault. Faster, and pretty URLs work with no configuration
ApacheYour application needs .htaccess

.htaccess does nothing on nginx

nginx never reads .htaccess. Every rewrite, redirect, header and access rule in that file is silently ignored, and no error appears anywhere. A site migrated from another host keeps its .htaccess, looks like it is configured, and is not.

If your application ships an .htaccess it actually depends on, switch the web server to Apache. If it only needs pretty URLs, nginx already does that.

On nginx, a request for a file that does not exist is handed to index.php, so WordPress permalinks, Laravel routes and any other front controller work untouched. Your application decides what a missing page returns, not the web server.

Other differences:

  • Hidden files. On nginx every path containing a name starting with a dot is refused with 403, which covers .env, .git/ and friends. On a PHP site, a path ending in .php is the exception: /.hidden/script.php still runs, so do not keep scripts you never want run in a dot directory. The rule also covers /.well-known/, so security.txt and app link files cannot be served from there on nginx. Apache has no such rule, so on Apache you must block them yourself in .htaccess.
  • Directory listings. nginx never lists a directory. On Apache the behaviour depends on your own .htaccess; add Options -Indexes if you rely on it.

Switching after creation ​

Changing the runtime or the web server replaces the site's containers. The portal warns you before saving:

text
Saving will briefly take your site offline (a few seconds while the new runtime starts). Continue?

The replacement waits for the new containers to answer a health check before the old ones stop, so in practice you see a few seconds of mixed old and new, not a hard outage. Expect longer the first time a given PHP version is used on the machine your site lands on.

Document root ​

Your files live in public_html. By default that whole directory is the document root, which is right for WordPress, Drupal, plain PHP and static sites.

Applications that keep their entry point one level down (Laravel, Symfony, Flarum) set Document root subdirectory to public. Everything above it, vendor/, storage/, configuration files, then stays unreachable from the web.

The field takes a relative subdirectory only:

text
Subdirectory only — letters, digits, _ and -, optionally separated by /. No leading slash, no path traversal.

PHP settings ​

The PHP Settings card appears on any PHP runtime. Six settings, each a dropdown, with three presets (Default, WordPress, Laravel) that fill all six at once.

SettingDefaultValues offered
Max upload size2M2M to 512M
Max POST size8M2M to 512M
Max execution time30s30s, 60s, 120s, 300s, 600s
Memory limit128M64M, 128M, 256M, 512M
Display errorsOffOn, Off
Error reportingE_ALL & ~E_DEPRECATEDE_ALL, E_ALL & ~E_NOTICE, E_ALL & ~E_DEPRECATED

Raising the upload size also raises the request size limit in front of the site, so you do not have to change anything else. The hard ceiling is 512 MiB whatever the setting says.

Saving restarts the site

Every save that changes a value restarts the site, and PHP runs with the new values once the restart has finished. Expect a short interruption. To confirm a value, check it from the console:

bash
php -i | grep memory_limit

Limits that override your settings ​

  • The site's 512 MiB sets how many PHP requests run at once. PHP's code cache and the requests running in parallel share it, so the platform runs only as many as fit: 4 at 256M and below, 3 at 512M. Further requests wait for a free slot, and on Apache so do images and other static files, which nginx serves without waiting. Memory limit caps a single request, so raise it only when individual requests need it: the higher it is, the more one request can take from the others. Raising the limit from code (ini_set(), .user.ini on nginx, or php_value in .htaccess on Apache) goes past what the platform plans for, and a few requests can exhaust the site. What follows is not a clean PHP fatal error: the site runs out of memory as a whole, and requests that had nothing to do with it die too.
  • On nginx, a request is cut off after 300 seconds no matter what Max execution time says, so the 600s option has no effect there. Long work belongs in a cron job, which gets its own timeout of up to 3600 seconds.
  • Max POST size should never be below Max upload size. Uploads at that size fail silently. The portal warns you when the combination is wrong.
  • Display errors belongs on Off in production. On prints file paths and sometimes source code to visitors.

Static sites have a fixed 8 MiB request limit ​

The PHP settings card does not appear on a Static site, and its request body limit is fixed at 8 MiB. There is no way to raise it. If a form on a static site needs to accept larger uploads, it is not a static site.

Extensions ​

Every PHP version ships the same set. The ones worth naming:

mysqli, pdo_mysql, pdo_sqlite, mbstring, gd, imagick, curl, xml, dom, simplexml, zip, zlib, intl, bcmath, exif, sodium, openssl, opcache, redis, sqlite3, fileinfo, iconv, posix.

Not installed, and not installable by you: soap, ldap, imap, apcu, memcached, mongodb, xsl, tidy, gmp, ssh2, xdebug. If your application requires one of these, hosting is the wrong product for it.

Every pcntl_* function and dl() are disabled. Code that forks or installs extensions at runtime will fail. exec() and shell_exec() are available.

An edited file can take 60 seconds to go live

Compiled PHP is cached and the cache is rechecked once a minute. After an upload or a deployment, a page can keep serving the old code for up to 60 seconds. It is not a caching plugin and not your browser. Wait, or use Restart site under Actions to clear it immediately.

What's next ​