Skip to content
Advertisement

Symfony “no PHP binaries detected”

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?

Advertisement

Answer

Turns out Symfony already contains functions to autodetect installed PHP versions from system variables. The command to fix the Symfony configuration is this:

symfony local:php:refresh

My next attempt to create a new project work fine after that. Also, I suspect this error was the result of me installing PHP files after installing Symfony.

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement