Closed Judhianto closed 5 years ago
FROM nimmis/apache-php7 COPY ./conf/php.ini /etc/php/7.0/apache2/
you dont have to overwrite original php.ini
in location /etc/php/7.0/apache2/
. Just copy php-custom.ini
to /etc/php/7.0/apache2/conf.d/
which will overwrite settings from php.ini
. so the docker file will look like
FROM nimmis/apache-php7
COPY ./conf/php-custom.ini /etc/php/7.0/apache2/conf.d/php-custom.ini
Note: the name of the custom config file does not have to be php-custom.ini
. Every *.ini file from conf.d
directory will be loaded by php. look here
Thank you
how to make modification in php.ini ?