phplinuxsymfony

How can I stop a symfony process which is listening on http://127.0.0.1:8000


I am trying to run a basic Symfony installation which I generated using this command :

$ symfony new basic

When I run the following commands :

$ cd basic
$ php bin/console server:run

I get this error message :

[ERROR] A process is already listening on http://127.0.0.1:8000.

I suspect that a previous symfony process is causing this but I have no clue how to stop it.

I'm on a Ubuntu 14.04 machine. Any help would be appreciated.


Solution

  • You can stop the server using:

    php bin/console server:stop

    or you can force server to start even if previous one is running:

    php bin/console server:start --force

    For more info check the doc