Skip to content

Latest commit

 

History

History
30 lines (14 loc) · 617 Bytes

2a_PHP_Configuration.md

File metadata and controls

30 lines (14 loc) · 617 Bytes

Lab 2 - Configuring PHP

Edit the php.ini

For instance, change the memory limit

  memory_limit = 2G   #Default is 1G

Restart the PHP Container

You can just restart the FPM container, if it is already running. This will reinitialize the configuration with your changes.

  docker-compose restart fpm

Check the Configuration

 docker-compose run deploy bash

Inside the container run the following command

 php -i | grep "memory_limit"

Results will look like the following.

 root@deploy:/app# php -i | grep "memory_limit"
 memory_limit => 2G => 2G