You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
The text was updated successfully, but these errors were encountered:
Labratorite
changed the title
Title: php command not found in version 3.7.0 and 3.8.0, works in 3.6.0
php command not found in version 3.7.0 and 3.8.0, works in 3.6.0
Apr 11, 2025
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:
I get the following error:
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 tophp
.As a simple fix, adding this line works:
Would it be possible to include this symlink in the image by default?
Any insights or suggestions would be greatly appreciated.
Thanks in advance!
The text was updated successfully, but these errors were encountered: