eko / docker-symfony

Run a Symfony application using Docker & docker-compose

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wrong php.ini path ?

orangevinz opened this issue · comments

ADD symfony.ini /etc/php7/php-fpm.d/

Hi,
Thanks for this really clean stack!

I had some troubles to set the date.timezone loaded from the symfony.ini file
Instead of :
/etc/php7/php-fpm.d/

The correct path seems to be :
/etc/php7/conf.d

Regards

Hello @orangevinz,

I think you are talking about the cli? Indeed, this configuration is set for the fpm part of PHP.

I think you can try to add a second line with this path into your Dockerfile in order to have both fpm and cli configuration with correct date timezone.

Let me know if you encounter any issue.

Thank you

Hey,

I customized the stack to suit to my needs so maybe I missed something but my whole SF4 app and the phpinfo() gave me the default date.timezone if I'm not using the /etc/php7/conf.d path,
but I'm not an expert ;-)

🍊

I will give a look at it tonight and will keep you informed but if it is working for you, I think you are right ;)

Hello @orangevinz,

I confirm you were right on this issue, I've fixed the path to /etc/php7/conf.d/ as indeed, /etc/php7/php-fpm.d/ is the path for configuration php-fpm pools.

Thanks