Skip to content

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

Closed
@Labratorite

Description

@Labratorite

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions