Skip to content

Commit 001a2e7

Browse files
committed
Add an example of installing "redis" and "xdebug" from PECL (PHP 7.1 compatible)
1 parent c43d310 commit 001a2e7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

php/content.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,13 @@ Remember, you must install dependencies for your extensions manually. If an exte
9999

100100
Some extensions are not provided with the PHP source, but are instead available through [PECL](https://pecl.php.net/). To install a PECL extension, use `pecl install` to download and compile it, then use `docker-php-ext-enable` to enable it:
101101

102+
```dockerfile
103+
FROM php:7.1-fpm
104+
RUN pecl install redis-3.1.0 \
105+
&& pecl install xdebug-2.5.0 \
106+
&& docker-php-ext-enable redis xdebug
107+
```
108+
102109
```dockerfile
103110
FROM php:5.6-fpm
104111
RUN apt-get update && apt-get install -y libmemcached-dev zlib1g-dev \

0 commit comments

Comments
 (0)