PHP application
You can choose which version of PHP to run in your .magento.app.yaml
file:
1
2
name: mymagento
type: php:<version>
PHP extensions
You can enable or disable PHP extensions in the runtime:extension
section. Also, the extensions specified become available in the Docker PHP containers.
.magento.app.yaml
1
2
3
4
5
6
7
8
9
10
runtime:
extensions:
- sockets
- sodium
- ssh2
disabled_extensions:
- bcmath
- bz2
- calendar
- exif
Use SSH to log in to an environment and list the PHP extensions.
1
php -m
For details about a specific PHP extension, see the PHP Extension List.
The following table shows the supported PHP extensions when deploying Adobe Commerce on the Cloud platform.
Default extensions | Installed extensions that cannot be uninstalled |
Extensions that can be installed and uninstalled as needed |
---|---|---|
bcmath bz2 calendar exif gd gettext intl mysqli pcntl pdo_mysql soap sockets sysvmsg sysvsem sysvshm opcache zip |
ctype curl date dom fileinfo filter ftp hash iconv json mbstring mysqlnd openssl pcre pdo pdo_sqlite phar posix readline session sqlite3 tokenizer xml xmlreader xmlwriter |
geoip gmp igbinary imagick imap ioncube ldap mailparse mcrypt msgpack mysqli oauth pdo_mysql propro pspell raphf recode redis shmop sockets sodium ssh2 tidy xdebug xmlrpc xsl yaml |
PHP module requirements are tied to the Adobe Commerce version. See PHP requirements.
PHP compiled with debug is not supported and the Probe may conflict with XDebug or XHProf. Disable those extensions when enabling the Probe. The Probe conflicts with some PHP extensions like Pinba or IonCube.
Custom PHP configuration
You can customize the PHP settings for a Cloud environment by adding a php.ini
file to your project. See Customize PHP.INI.