TrafeX/docker-php-nginx

php command not found in version 3.7.0 and 3.8.0, works in 3.6.0

Closed this issue · 1 comments

Hi, thank you for maintaining this Docker image!

I ran into an issue with version 3.7.0 of the image.
When I use the following Dockerfile:

FROM trafex/php-nginx:3.7.0

USER root

RUN php -v

I get the following error:

/bin/sh: php: not found

In version 3.7.0 (and 3.8.0), the php command is missing, even though it's available in 3.6.0.

I found that the CLI binary is available as /usr/bin/php84, but there's no symlink to php.
As a simple fix, adding this line works:

RUN ln -s /usr/bin/php84 /usr/bin/php

Would it be possible to include this symlink in the image by default?

Any insights or suggestions would be greatly appreciated.

Thanks in advance!

Hi @Labratorite,

That issue was fixed with #196 but I just found out it wasn't release yet.
It should be fixed in https://github.com/TrafeX/docker-php-nginx/releases/tag/3.9.0