tanmng / docker-chevereto-free

Dockerfiles for various release of Chevereto Free
38 stars 26 forks source link

php.ini doesn't exist #6

Closed mattgphoto closed 4 years ago

mattgphoto commented 4 years ago

php.ini doesn't exist in the image, so your example pointing out php.ini here: https://github.com/tanmng/docker-chevereto/blob/master/examples/bigger-files/docker-compose.yaml

Doesn't work. It creates a directory in the container that's blank and does so on the host as well. No matter what I've tried in terms of mounting the php.ini or php.ini-development or php.ini-production, nothing works to keep the settings. Good attempt though!

tanmng commented 4 years ago

Sorry for very late reply.

I'm not sure what you're talking about. In the example I mounted php.ini file (the one inside bigger-files) to the container. It I just checked and it seemed to work just fine.

No matter what I've tried in terms of mounting the php.ini or php.ini-development or php.ini-production, nothing works to keep the settings

In the repo there's only php.ini, I don't know where did you get these files from

veloc1ty commented 4 years ago

I have the same issue when running the container. There is no php.ini anywhere - but there are two files in /usr/local/etc/php

/ find | grep php.ini [..] ./usr/local/include/php/main/php_ini.h ./usr/local/etc/php/php.ini-production ./usr/local/etc/php/php.ini-development

I'm also trying to find out how to enable the bigger file size in this setup. Would be great if you could add some documentation for this.

Thanks, Alex

suckerfish commented 4 years ago

I have the same issue when running the container. There is no php.ini anywhere - but there are two files in /usr/local/etc/php

/ find | grep php.ini [..] ./usr/local/include/php/main/php_ini.h ./usr/local/etc/php/php.ini-production ./usr/local/etc/php/php.ini-development

I'm also trying to find out how to enable the bigger file size in this setup. Would be great if you could add some documentation for this.

Thanks, Alex

I got it to work. I was having similar issues as you.

The container will never have php.ini by default. you must get it from the 'bigger files' section in the repo, put it where you want it, then set the volume parameters as shown in the example at the top. make sure :ro is there, etc. Finally worked for me.