Symfony2 PHP Server Quits Unexpectedly

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!

+6
source share
4 answers

I downloaded the zip file ( to this link ) and copied it directly to the htdocs / www folder. I should advise everyone that the instructions on the Symfony2 website are confusing. Thanks!

+1
source

The document was useful to me.

In particular, I used a different port, and then by default:

 php app/console server:run 127.0.0.1:9000 

Then in the browser:

 http://localhost:9000/ 

And it worked!

+4
source

I would say that you are trying to start the embedded php server when the Wamp server is already running on you.

+2
source

Try disabling eAccelerator in the php.ini file.

0
source

Source: https://habr.com/ru/post/983288/


All Articles