Symfony "no PHP binaries detected"

  frameworks, php, symfony

Ive been just starting to learn Symfony PHP framework, and Ive run into some problems with its configuration.

When trying to create a new project with command line like so:

symfony new --full my_project

I kept getting a simple error message:

no PHP binaries detected

and no files were created in the current folder. I searched on the net, and found out that Symfony apparently isnt able to find the location of my php.exe, despite it already being set in my system variables. And there was no information about how to properly configure this in Symfony.

How do I fix this error?

Source: Symfony Questions