Skip to content

Commit f2a8fec

Browse files
authored
Merge pull request laradock#2749 from nalatreb/change-doc
Change PHP extension install section in the documentation
2 parents ffc8d85 + f5e5566 commit f2a8fec

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

  • DOCUMENTATION/content/documentation

DOCUMENTATION/content/documentation/index.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ More [options](https://docs.docker.com/compose/reference/logs/)
196196

197197

198198
<br>
199+
199200
<a name="PHP"></a>
200201

201202

@@ -206,20 +207,25 @@ More [options](https://docs.docker.com/compose/reference/logs/)
206207
<a name="Install-PHP-Extensions"></a>
207208
## Install PHP Extensions
208209

209-
Before installing PHP extensions, you have to decide first whether you need `FPM` or `CLI`, because each of them has it's own different container, if you need it for both, you have to edit both containers.
210+
You can set extensions to install in the .env file's corresponding section (`PHP_FPM`, `WORKSPACE`, `PHP_WORKER`),
211+
just change the `false` to `true` at the desired extension's line.
212+
After this you have to rebuild the container with the `--no-cache` option.
213+
214+
```bash
215+
docker build --no-cache {container-name}
216+
```
210217

211-
The PHP-FPM extensions should be installed in `php-fpm/Dockerfile-XX`. *(replace XX with your default PHP version number)*.
212-
<br>
213-
The PHP-CLI extensions should be installed in `workspace/Dockerfile`.
214218

215219

216220

217221

218222

219223

220224
<br>
225+
221226
<a name="Change-the-PHP-FPM-Version"></a>
222227
## Change the (PHP-FPM) Version
228+
223229
By default the latest stable PHP version is configured to run.
224230

225231
>The PHP-FPM is responsible for serving your application code, you don't have to change the PHP-CLI version if you are planning to run your application on different PHP-FPM version.

0 commit comments

Comments
 (0)