I'm starting to learn 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 attempt installing and running a 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 issue I'm having is just in the last step, because it's throwing 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's only one question about this and it didn't help me because I changed the port as it says and didn't work, also I reinstalled from Composer. I have seen also that there are some warnings like:
[...Notice: Undefined index: PATH in phar...]
What am I doing wrong? Is it a bug?
Thanks in advance!
For me the doc was helpful.
In particular I used another port then default:
php app/console server:run 127.0.0.1:9000
Then in browser:
http://localhost:9000/
And it worked!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With