Update configuration File (php.ini) Path

The configuration File Path is not /usr/local/bin but /usr/local/etc/php
This commit is contained in:
Pierre Galvez 2015-02-04 11:12:39 +01:00
parent 0423047c55
commit afd2dd2c09
1 changed files with 2 additions and 2 deletions

View File

@ -73,11 +73,11 @@ Where `src/` is the directory containing all your php code. Then, run the comman
docker run -it --rm --name my-running-app my-php-app docker run -it --rm --name my-running-app my-php-app
We recommend that you add a custom `php.ini` configuration. `COPY` it into We recommend that you add a custom `php.ini` configuration. `COPY` it into
`/usr/local/lib` by adding one more line to the Dockerfile above and running the `/usr/local/etc/php` by adding one more line to the Dockerfile above and running the
same commands to build and run: same commands to build and run:
FROM php:5.6-apache FROM php:5.6-apache
COPY config/php.ini /usr/local/lib/ COPY config/php.ini /usr/local/etc/php/
COPY src/ /var/www/html/ COPY src/ /var/www/html/
Where `src/` is the directory containing all your php code and `config/` Where `src/` is the directory containing all your php code and `config/`