New to laravel. Was building my platform on Amazon Linux AMI. Installed Apache and php 8.1
running php requires using the command php81 not php.
So when I came to install composer i ran the install commands from the composer website with php81 instead of php.
e.g. 'php81 composer-setup.php' instead of 'php composer-setup.php'
now when I run composer it tells me php no such file or directory. Im guessing this is because composer is trying to look for php and not php81???
Most likely, you want to put the composer.phar into a directory on your PATH, so you can simply call composer from any directory (Global install), using for example: