Skip to content

Commit eb5b773

Browse files
change php installation section
1 parent 89c9cfe commit eb5b773

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

  • DOCUMENTATION/content/documentation

DOCUMENTATION/content/documentation/index.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -206,11 +206,14 @@ More [options](https://docs.docker.com/compose/reference/logs/)
206206
<a name="Install-PHP-Extensions"></a>
207207
## Install PHP Extensions
208208

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.
209+
You can set extensions to install in the .env file's corresponding section (`PHP_FPM`, `WORKSPACE`, `PHP_WORKER`),
210+
just change the `false` to `true` at the desired extension's line.
211+
After this you have to rebuild the container with the `--no-cache` option.
212+
213+
```bash
214+
docker build --no-cache {container-name}
215+
```
210216

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`.
214217

215218

216219

@@ -220,6 +223,7 @@ The PHP-CLI extensions should be installed in `workspace/Dockerfile`.
220223
<br>
221224
<a name="Change-the-PHP-FPM-Version"></a>
222225
## Change the (PHP-FPM) Version
226+
223227
By default the latest stable PHP version is configured to run.
224228

225229
>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)