-
|
I tried to get the SERVER_ROOT environment variable working that's shown in https://github.com/php/frankenphp/blob/main/caddy/frankenphp/Caddyfile which is linked to in the docker doc, https://frankenphp.dev/docs/docker/#how-to-tweak-the-configuration. I couldn't get it to work any which way and even tried creating /etc/caddy/Caddyfile.d/something.caddyfile, also shown in the Caddyfile and still nothing. I finally looked at the Caddyfile in the image and found the following. It doesn't have SERVER_ROOT or file globs to add. Why is this missing key things from the file referenced in the documentation? Is this a bug or bad documentation since it says "For convenience, a default Caddyfile containing useful environment variables is provided in the image." and links to a Caddyfile that's obviously not the same. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
|
You have not mentioned how you are running FrankenPHP. Right now the best we could do is roll a dice and give a standard answer based on that. Let's avoid that, help us help you. There is no SERVER_ROOT mentioned in the docs either. |
Beta Was this translation helpful? Give feedback.
-
|
I found my issue. I was using the image tagged latest-php8.3-alpine which was too old. The image tags "latest-phpxxx-xxx" haven't been pushed for more than a year. Is this something that was deprecated? It'd be nice not to have to specify the FrankenPHP version. |
Beta Was this translation helpful? Give feedback.
-
|
I'm not sure about that. @dunglas takes care of the Docker images. |
Beta Was this translation helpful? Give feedback.
-
|
I think the answer to this is to use the 1-phpxxx-xxx images to for something similar to ^1.0. It would be nice to have something about this in the docs. |
Beta Was this translation helpful? Give feedback.
I found my issue. I was using the image tagged latest-php8.3-alpine which was too old.
The image tags "latest-phpxxx-xxx" haven't been pushed for more than a year.
Is this something that was deprecated? It'd be nice not to have to specify the FrankenPHP version.