DEV Community

Discussion on: Install PHP 8 on AWS Amazon Linux 2

Collapse
 
ed_olii profile image
Eduardo Oliveros • Edited

when i try to check the version after instalation php8 wasn't found php -v
-bash: /usr/bin/php: No such file or directory

Collapse
 
andreaolivato profile image
Andrea Olivato

The new binary is php80

Collapse
 
alanondra profile image
Alan Ondra

This new binary name also means tools like composer will not work. Before you go to install it, you'll need to alias PHP so the environment resolves it:

ln -s /usr/bin/php80 /usr/bin/php