Skip to content

wp-cli not missing because php not found #43

@bb

Description

@bb

docker-compose exec wordpress /usr/local/bin/wp --path=/usr/src/wordpress status returns
env: can't execute 'php': No such file or directory

This is because the first line in /usr/local/bin/wp is #!/usr/bin/env php but there is no php binary in PATH or existing at all. But there is php82, so this works:

docker-compose exec wordpress /usr/bin/php82 /usr/local/bin/wp --path=/usr/src/wordpress help

If it is intentional to not have a php executable, the shebang line could be changed, which will lead to problems with its code signature etc. -- so I guess we should have a php executable?

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