Skip to content
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

php cli commands are not working since it is php8 #58

Closed
surendhar153 opened this issue Apr 20, 2021 · 1 comment
Closed

php cli commands are not working since it is php8 #58

surendhar153 opened this issue Apr 20, 2021 · 1 comment

Comments

@surendhar153
Copy link

surendhar153 commented Apr 20, 2021

in the latest php8 update php cli commands are not working

/var/www/html $ php -v
/bin/sh: php: not found
/var/www/html $ php8 -v
PHP 8.0.2 (cli) (built: Feb  5 2021 00:39:11) ( NTS )
Copyright (c) The PHP Group
Zend Engine v4.0.2, Copyright (c) Zend Technologies
    with Zend OPcache v8.0.2, Copyright (c), by Zend Technologies
/var/www/html $ 

Due to this wp cli is not working - https://make.wordpress.org/cli/handbook/guides/installing/

=> ERROR [11/11] RUN wp core download --version=5.7.1 --locale=en_US                                                                                                                0.3s
------
 > [11/11] RUN wp core download --version=5.7.1 --locale=en_US:
#16 0.264 env: can't execute 'php': No such file or directory
@TrafeX
Copy link
Owner

TrafeX commented May 17, 2021

Hi @surendhar153,

Thank you for reporting this. It seems intended behavior, see: https://gitlab.alpinelinux.org/alpine/aports/-/issues/12308
But it indeed makes sense to make php8 as php available for programs that depend on it.
I've fixed this in 2.0.2 https://github.com/TrafeX/docker-php-nginx/releases/tag/2.0.2

@TrafeX TrafeX closed this as completed May 17, 2021
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