Servers

PHP versions and extensions

See the PHP versions and modules really installed on a server and change them safely.

Updated in v0.4.1643 sections · 12 steps

PHP versions#

  1. Open a server's PHP & Extensions section. It lists PHP 8.1 through 8.5 and shows which are installed.
  2. To add a version, install its php8.x-fpm package from Services. Its extensions appear after the next scan.
  3. Versions the operating system does not ship (for example PHP 8.1–8.4 on Ubuntu 26.04) install from packages.sury.org, the PHP maintainer's repository, on Ubuntu and Debian alike.
  4. The maintainer's old Launchpad PPA (ppa:ondrej/php) is deprecated. G Panel replaces it with packages.sury.org on its own, about a minute after the agent starts and then hourly. Installed PHP versions are not removed or downgraded, and a copy of the old source files is kept in /var/lib/gpanel-agent/apt-backup.
  5. Package refreshes accept a repository that only renames itself (its Label or Origin). A repository that switches to another release is still refused.
  6. Scanning, error and retry states are shown on the page; nothing is guessed while a scan is running.

Extensions#

  1. Each installed version lists its real modules: enabled, available but disabled, or installable from a distribution package.
  2. Enable, disable, or install and enable a module. Built-in modules cannot be toggled, and one package or extension change runs at a time per server.
  3. On the control-plane host the list is read-only.

Per-site PHP settings#

  1. Each PHP or WordPress site has its own PHP Configuration page: PHP version, memory limit, upload size, maximum execution time and OPcache.
  2. The chosen version must be installed and running on the server. Unsaved drafts are kept until you save or discard them.
  3. Saving queues the change for the agent. Activity shows whether it applied; a failed file, syntax or reload check is reported, not hidden.

Something unclear or missing? Tell us and we will improve this guide.