Files
nginx-php-fpm/docs/php_modules.md
Aaron C 4e9c645fa6 Add list of installed php modules
This is information I would have wanted before I started using this image.
2018-12-20 16:46:43 +01:00

35 lines
1.3 KiB
Markdown

## Install PHP Modules
To install and configure extra PHP modules in this image, first of all drop into the container:
```
docker exec -t -i nginx /bin/bash
```
Then configure and install your module:
```
/usr/local/bin/docker-php-ext-configure sockets
/usr/local/bin/docker-php-ext-install sockets
```
Now restart php-fpm:
```
supervisorctl restart php-fpm
```
We may include a env var to do this in the future.
## Extensions already installed
The following are already installed and ready to use:
| `docker-php-ext-`name | Description
|----|----|
| curl | cURL: command line tool and library for transferring data with URLs
| dom | **DOM**-manipulation library
| gd | **GD**: Image creation and manipulation library
| intl | **Internationalization** (i18n) function library
| mysqli | **MySQL Improved**: Procedural-style library for connecting to and using a MySQL database
| opcache | **OPcache**: Improves PHP performace by storing precompiled script bytecode in shared memory
| pdo | **PDO**: PHP Database Object; Object-oriented library for connecting to various databases.
| pdo_mysql | **MySQL Driver** for PDO
| pdo_sqlite | **SQLite Driver** for PDO
| soap | **SOAP**: **S**imple **O**bject **A**ccess **P**rotocol library
| xsl | **XSL**: e**X**stensible **S**tyling **L**anguage library
| zip | **ZIP**: Transparently read and write ZIP compressed archives