Skip to content

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

Closed
@surendhar153

Description

@surendhar153

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

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