Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Labratorite opened this issue Apr 11, 2025 · 1 comment
Closed

Comments

@Labratorite
Copy link

Labratorite commented 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:

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!

@Labratorite 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
@TrafeX
Copy link
Owner

TrafeX commented Apr 23, 2025

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

@TrafeX TrafeX closed this as completed Apr 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants