From e50f032033c51696ef729b49c8a923dc71aa85ab Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Tue, 22 May 2018 09:35:51 -0700 Subject: [PATCH] Add a short note about checking "php -m" before compiling more extensions --- php/content.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/php/content.md b/php/content.md index 3ac1c1a61..e21e66346 100644 --- a/php/content.md +++ b/php/content.md @@ -89,6 +89,8 @@ RUN sed -ri -e 's!/var/www/!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/apache2.conf ## How to install more PHP extensions +Many extensions are already compiled into the image, so it's worth checking the output of `php -m` or `php -i` before going through the effort of compiling more. + We provide the helper scripts `docker-php-ext-configure`, `docker-php-ext-install`, and `docker-php-ext-enable` to more easily install PHP extensions. In order to keep the images smaller, PHP's source is kept in a compressed tar file. To facilitate linking of PHP's source with any extension, we also provide the helper script `docker-php-source` to easily extract the tar or delete the extracted source. Note: if you do use `docker-php-source` to extract the source, be sure to delete it in the same layer of the docker image.