You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: DOCUMENTATION/content/documentation/index.md
+22-34Lines changed: 22 additions & 34 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -215,28 +215,24 @@ The PHP-CLI extensions should be installed in `workspace/Dockerfile`.
215
215
<br>
216
216
<aname="Change-the-PHP-FPM-Version"></a>
217
217
## Change the (PHP-FPM) Version
218
-
By default **PHP-FPM 7.0** is running.
218
+
By default the latest stable PHP versin is configured to run.
219
219
220
220
>The PHP-FPM is responsible of 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.
221
221
222
222
223
-
### A) Switch from PHP `7.0` to PHP `5.6`
223
+
### A) Switch from PHP `7.2` to PHP `5.6`
224
224
225
-
1 - Open the `docker-compose.yml`.
225
+
1 - Open the `.env`.
226
226
227
-
2 - Search for `Dockerfile-70` in the PHP container section.
227
+
2 - Search for `PHP_VERSION`.
228
228
229
-
3 - Change the version number, by replacing `Dockerfile-70` with `Dockerfile-56`, like this:
229
+
3 - Set the desired version number:
230
230
231
-
```yml
232
-
php-fpm:
233
-
build:
234
-
context: ./php-fpm
235
-
dockerfile: Dockerfile-56
236
-
...
231
+
```dotenv
232
+
PHP_VERSION=5.6
237
233
```
238
234
239
-
4 - Finally rebuild the container
235
+
4 - Finally rebuild the image
240
236
241
237
```bash
242
238
docker-compose build php-fpm
@@ -245,25 +241,6 @@ docker-compose build php-fpm
245
241
> For more details about the PHP base image, visit the [official PHP docker images](https://hub.docker.com/_/php/).
246
242
247
243
248
-
### B) Switch from PHP `7.0` or `5.6` to PHP `5.5`
249
-
250
-
We do not natively support PHP 5.5 anymore, but you can get it in few steps:
251
-
252
-
1 - Clone `https://github.com/laradock/php-fpm`.
253
-
254
-
3 - Rename `Dockerfile-56` to `Dockerfile-55`.
255
-
256
-
3 - Edit the file `FROM php:5.6-fpm` to `FROM php:5.5-fpm`.
257
-
258
-
4 - Build an image from `Dockerfile-55`.
259
-
260
-
5 - Open the `docker-compose.yml` file.
261
-
262
-
6 - Point `php-fpm` to your `Dockerfile-55` file.
263
-
264
-
265
-
266
-
267
244
268
245
269
246
<br>
@@ -273,11 +250,23 @@ By default **PHP-CLI 7.0** is running.
273
250
274
251
>Note: it's not very essential to edit the PHP-CLI version. The PHP-CLI is only used for the Artisan Commands & Composer. It doesn't serve your Application code, this is the PHP-FPM job.
275
252
276
-
The PHP-CLI is installed in the Workspace container. To change the PHP-CLI version you need to edit the `workspace/Dockerfile`.
253
+
The PHP-CLI is installed in the Workspace container. To change the PHP-CLI version you need to simply change the `PHP_VERSION` in te .env file as follow:
254
+
255
+
1 - Open the `.env`.
277
256
278
-
Right now you have to manually edit the `Dockerfile` or create a new one like it's done for the PHP-FPM. (consider contributing).
257
+
2 - Search for `PHP_VERSION`.
279
258
259
+
3 - Set the desired version number:
280
260
261
+
```dotenv
262
+
PHP_VERSION=7.2
263
+
```
264
+
265
+
4 - Finally rebuild the image
266
+
267
+
```bash
268
+
docker-compose build workspace
269
+
```
281
270
282
271
283
272
@@ -558,7 +547,6 @@ b) add a new service container by simply copy-paste this section below PHP-FPM c
558
547
php-worker:
559
548
build:
560
549
context: ./php-worker
561
-
dockerfile: "Dockerfile-${PHP_VERSION}"#Dockerfile-71 or #Dockerfile-70 available
## Temp solution, this should be in the dockerfile
323
+
# for all versions "https://github.com/aerospike/aerospike-client-php/archive/master.tar.gz"
324
+
# for php 7.2 (using this branch until the support for 7.2 on master) "https://github.com/aerospike/aerospike-client-php/archive/7.2.0-in-progress.tar.gz"
0 commit comments