Greetings. I want to deploy symfony on windows. Since it uses a lot of console commands, hence the console will be involved. There were problems with the launch: "php" is not an internal or external command ... in the path variable the path is added, when output via set it is visible. When echo% php% is output,% php% is output and not its value. What is the problem?
2 answers
If you do not want to suffer much with the settings there is an option. You can use the XAMPP web server. There is a shell console through which you can work without problems with symfony and also fully configure the server for yourself.
- I understand that in this case xampp will be used as the main server and not the built-in artisan? - VK
- @ Vadim.K, The screenshot shows where the console is and then I think everything is clear - Deno
First you need to specify in the Windows PATH environment variable the path to where your php is (relog or reboot). After that, Windows will know what php is.
Very good solution in terms of server emulator: Open Server . I work in it with symfony 2. It has everything you need and even you don’t need).
Regarding your question, it allows you to bind to the Windows PATH environment variable. And then the console, since it is built into it (very convenient, by the way) will calmly handle php.