All manual sections

DocumentationPHP versions

PHP versions

Several PHP versions can live on the same server, from 7.4 to 8.5: every site uses its own. The PHP versions page is reserved to administrators.

What the page shows

For every version you see whether it is installed, whether it is the default for new sites, how many sites use it and whether it is offered for new sites. The version included in Ubuntu is marked Ubuntu; the others come from the ondrej/php archive, added automatically at the first installation.

Installing a version

Press Install and confirm. The installation runs in the background (a few minutes) and you can follow its progress on the page. PHP-FPM, the command line and the most used extensions are installed: mysql, curl, gd, mbstring, xml, zip, intl, bcmath, opcache (plus redis and imagick when available). The panel applies its base settings (memory, upload size, opcache) and starts the service.

The other actions

  • Make default: the version used for new sites.
  • For new sites: if you untick it, the version can no longer be chosen for other sites; those already using it keep working.
  • Remove: uninstalls the version. Possible only if no site uses it and it is not the default: first move the sites to another version.

Site version and packages

On every site page, PHP version offers the installed versions offered for new sites, limited to those allowed by the account's package (Packages): in the package you can select some of them; none selected means all.

Site PHP settings

On every site page, PHP settings lets you change for that site memory (memory_limit, up to 1024 MB), upload size (upload_max_filesize, the form limit follows), maximum time (max_execution_time), form fields (max_input_vars) and error display (display_errors). Leave a field empty to use the default value. The panel checks the configuration and, if something goes wrong, puts back the previous one. See also Websites.