Servers
PHP versions and extensions
See the PHP versions and modules really installed on a server and change them safely.
PHP versions#
- Open a server's PHP & Extensions section. It lists PHP 8.1 through 8.5 and shows which are installed.
- To add a version, install its php8.x-fpm package from Services. Its extensions appear after the next scan.
- 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.
- 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.
- Package refreshes accept a repository that only renames itself (its Label or Origin). A repository that switches to another release is still refused.
- Scanning, error and retry states are shown on the page; nothing is guessed while a scan is running.
Extensions#
- Each installed version lists its real modules: enabled, available but disabled, or installable from a distribution package.
- 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.
- On the control-plane host the list is read-only.
Per-site PHP settings#
- Each PHP or WordPress site has its own PHP Configuration page: PHP version, memory limit, upload size, maximum execution time and OPcache.
- The chosen version must be installed and running on the server. Unsaved drafts are kept until you save or discard them.
- 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.