Page 1 of 1

Understanding Docker/Container setup

Posted: Monday 13 April 2020 15:32
by Scotty
I've just formatted my Pi's SD card to start again and I've now used the automatic install.

It worked well and dashticz is now running. I've never used docker before so it's all a little alien to me.

I'm just having an issue with the apache setup. I have additional scripts/directories that I used to run on apache but now I'm getting 403 forbidden errors if I try to access them.

I've checked file permissions, which look correct, so I guess it's some kind of ownership issue?

How can I resolve this?

Re: Understanding Docker/Container setup

Posted: Monday 13 April 2020 15:37
by Scotty
Also, I'm trying to find the php.ini file. Where can I find this?

So confused!

Re: Understanding Docker/Container setup

Posted: Monday 13 April 2020 21:58
by Lokonli
Scotty wrote: Monday 13 April 2020 15:37 Also, I'm trying to find the php.ini file. Where can I find this?

So confused!
By the automatic install a Docker container with Apache and PHP is started.

You can open a console in container by executing the following in the Dashticz folder:

Code: Select all

make login
PHP looks for ini files in:
/usr/local/etc/php in the Docker container. There is no php.ini file.

And also /usr/local/etc/php/conf.d for additional ini files.

If you want to set additional php settings, then I guess you have to modify Dockerfile, and create a file in /usr/local/etc/php/conf.d in the Docker container.

Re: Understanding Docker/Container setup

Posted: Monday 13 April 2020 22:00
by Lokonli
The 'normal' Apache server on your PI is running next to the Apache server in the Dashticz container.
Both use their own settings.

Re: Understanding Docker/Container setup

Posted: Tuesday 14 April 2020 12:45
by Scotty
Got it, thank you.

For my use, I think I'll stick with the manual installation as it seems to be a little more flexible.

Thanks again for taking the time to explain.