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.
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
Better to use killall -9 php
to kill all php scripts that are running.
Otherwise you wil start a new one while the previous one is still running.
Is probably caused by a infinite loop.
Note: This will "kill" all running php scripts
This works on Symfony 5. Open the integrated terminal inside VSCode.
First stop the running local server:
symfony local:server:stop
Then start a new one:
symfony server:start
Open your browser and navigate to: 127.0.0.1:8000
If the command symfony is not recognized, then you need to install the Symfony as instructed here: Install Symfony
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