PHP management
Offer PHP versions and extensions, install new versions from the signed catalog, set php.ini per version, and understand how PHP runs and gets security fixes.
PHP settings are server-wide and belong to the provider's administrators. Customers then choose a version, extensions and php.ini values for each website within what you allow.
How PHP runs
Every PHP website runs in its own container, as its own Linux user, with its own PHP-FPM pool. The website's web server and PHP-FPM run inside that container and talk over a private socket. No PHP process is shared between websites.
- Workers. The pool runs on demand. The most workers it can start is the website's memory limit divided by its PHP memory limit, between 2 and 32. A website that turns on its own Redis cache has that memory taken from the same limit, so it gets fewer workers.
- Limits that scripts cannot raise. The memory limit, upload size, execution time, input variables,
disable_functionsandopen_basedirare set as admin values, soini_set()or.user.inicannot change them. - Confinement.
open_basedirkeeps scripts in the website's folder and its temporary folder. Sessions and uploads go to the website's owntmpfolder. - Which files run. Only
.phpruns as PHP, plus extensions the customer adds on purpose in the hosting panel. - Mail.
mail()goes through the server's website mail relay.
PHP-FPM is the only way PHP runs. There is no CGI, suPHP or LSAPI mode to choose.
Note: php_value and php_flag lines in .htaccess have no effect under PHP-FPM, as on cPanel with PHP-FPM. Under the nginx web server they are reported as unsupported. Use the PHP INI editor or .user.ini instead. The one exception is php_flag engine off, which every web server that ships with ScalPanel enforces.
PHP versions
ScalPanel ships PHP 8.2, 8.3, 8.4 and 8.5. Open Web & software → PHP versions to choose, for each version:
- whether customers may choose it;
- whether it is the default for new websites (the default is always offered);
- which extensions are installed for it, and which of those are on for every website.
A website keeps its version when you stop offering it; only new choices are refused. Packages can also limit which versions their accounts may use. A package that lists versions explicitly must add a new version before its customers can choose it.
Every change re-applies the websites of that version, which restarts each briefly.
Extensions
Every PHP image is built with all available extensions. Nothing is downloaded or compiled on your server. "Installing" an extension for a version lets customers turn it on; "On for every website" loads it without the customer choosing it. An extension that is not installed is never loaded.
The images include 22 core extensions, such as soap, pgsql, intl, gd, xsl, tidy and gmp, and these PECL extensions: apcu, igbinary, imagick, memcached, mongodb, msgpack, redis and yaml. OPcache is always loaded.
The installer marks a recommended set: bcmath, exif, gd, intl, mysqli, pdo_mysql, sodium, zip, apcu, gettext, imagick, pdo_pgsql, pgsql, redis and soap. That covers WordPress, WooCommerce, Laravel and common caching plugins.
Extensions outside this catalog, such as Xdebug, are not offered, and you cannot add your own. A new extension needs a ScalPanel release.
Installing a PHP version
New PHP versions and rebuilds can be published in ScalPanel's signed runtime catalog between releases. Your server reads the catalog when it checks for updates, but installs nothing until you finish the installer.
- Open Web & software → PHP versions and choose Install PHP.
- PHP version: pick one or more versions. The list shows the versions on your server, new versions from the ScalPanel repository, and rebuilds marked "Update available". A version that needs a newer ScalPanel is shown but cannot be chosen.
- Extensions: for each extension and version, choose Not installed, Installed or On for every website. Recommended, All and None fill a column.
- Review: check the result and whether to offer each version to customers right away.
Changes to a version already on the server are saved at once. A version from the repository is downloaded, its signatures and checksums are verified, and the control plane restarts once. If it does not come back healthy, the previous state is restored.
Building PHP on the server, or pulling PHP images from anywhere else, is not possible by design.
php.ini per version
Web & software → PHP INI editor sets server-wide php.ini values for one PHP version, in a basic mode with controls or as php.ini text. Customers can override them for a website in the hosting panel's PHP INI Editor, which shows your value where the website sets none.
Both editors accept the same list of directives, for example allow_url_fopen, short_open_tag, max_file_uploads, date.timezone, error_reporting, output_buffering, and the session.*, zlib.* and pcre.* groups. Directives that would weaken isolation, such as open_basedir, disable_functions, extension, sendmail_path or session.save_path, are not on the list. Limits like memory and upload size come from the account's package.
The list of disabled PHP functions is part of the provider's isolation settings under Security → Isolation & resource plans.
ionCube Loader
Every PHP image includes the ionCube Loader for scripts encoded with ionCube, such as WHMCS. It appears as ioncube with the PECL extensions. To use it:
- Install
ioncubefor the PHP versions you want in the PHP installer. - Let customers turn it on for their websites, or turn it on for every website of a version.
ionCube is loaded before OPcache, as it requires. Websites that do not use it run exactly as before.
Security updates
PHP images are built from the official PHP images, pinned by digest, and signed. A PHP security release reaches your server with a ScalPanel release (or a catalog rebuild). The update changes the images, and ScalPanel recreates the running PHP websites with them, so each website restarts briefly. Websites on your own web server images or a customer's own container image do not follow automatically.
The fixes for CVE-2026-109618 and CVE-2026-109619 ("PHP2Shell") are in PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35, which current ScalPanel images use. Until PHP fixes CVE-2026-115560, every website has session.upload_progress.enabled turned off as an admin value. Scripts that read upload progress from the session do not get it in the meantime.
PHP 8.1 is withdrawn. It is past its end of life and was not rebuilt with these fixes, so it is no longer in the catalog and cannot be installed. A server that installed it earlier keeps it, and its websites keep running without the fixes. Move them to a supported version.
Warning: PHP 8.2 reaches its end of life on 31 December 2026. Plan to move websites on 8.2 to a newer version.