PHP is not installed by default, and this prompt appears when you create a new project using Symfony.
[[email protected] HTML] # symfony Demo/usr/bin/env:php: no file or directory
The workaround is to add a new PHP soft link that points to the/usr/local/bin directory. Here is an example of demo on my server:
[[email protected] bin] # ln-s/app/php/bin/php/usr/local/bin/php
Executing the Symfony demo again is normal.
[[email protected] HTML] # Symfony Demo downloading the Symfony Demo application ... 6.21 mb/6.21 mb▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ 100% Preparing project ...? Symfony Demo application was successfully installed. Now you can: 1. Change your current directory to/app/nginx/html/symfony_demo 2. Execute the PHP app/console server:run command to run the demo application. in action.
"Problem"/usr/bin/env:php: no file or directory