Browse Source

php extension install readme update

master
filesite 2 years ago
parent
commit
9d346c4757
  1. 17
      php_extension_install.md

17
php_extension_install.md

@ -1,12 +1,29 @@ @@ -1,12 +1,29 @@
# PHP Extensions needed
* php-mbstring
* php-gd
## install php extensions in docker
### alpine
```
docker exec -it {container id} sh
apk add php-mbstring
...
```
### php-fpm:alpine
```
docker exec -it {container id} sh
apk add \
zlib-dev \
libpng-dev \
freetype-dev \
libjpeg-turbo-dev \
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-install -j$(nproc) gd
...
```

Loading…
Cancel
Save