I am starting to learn the PHP Symfony2 Framework. I have a PC with Windows 7 and Wamp manager 2.2, and it includes PHP 5.4.3 and Apache 2.4.2.
I followed these steps to try installing and running Symfony2project:
c:\> php -r "readfile('http://symfony.com/installer');" > symfony.phar c:\> mkdir projects c:\> move symfony.phar c:\projects c:\projects\> php symfony.phar c:\projects\> php symfony.phar new my_project_name c:\projects\> php app/console server:run
The problem I encountered is in the last step because it throws this error:
C:\Users\Jessai\projects\my_project_name>php app/console server:run -v Server running on http://127.0.0.1:8000 Quit the server with CONTROL-C. RUN "C:\wamp\bin\php\php5.4.3\php.exe" "-S" "127.0.0.1:8000" "C:\Users\Jessai \projects\my_project_name\vendor\symfony\symfony\src\Symfony\Bundle\FrameworkBun dle\Resources\config\router_dev.php" RES -1073741819 Command did not run successfully Built-in server terminated unexpectedly
And surprisingly there is only one question about this, and it did not help me because I changed the port because it says and did not work, I also reinstalled from Composer . I also saw that there are some warnings, for example:
[...Notice: Undefined index: PATH in phar...]
What am I doing wrong? This is mistake?
Thanks in advance!
source share