Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

symfony server:start command throwing an error

I try to run

symfony server:start

It returns an error message

The local web server is already running for this project at port 8000

But lsof -wni tcp:8000 isn't returning anything, I'm sure there isn't any softwares using the port 8000.

Starting by doing

bin/console server:start

is working like a charm.

like image 201
LucileDT Avatar asked Jan 26 '23 12:01

LucileDT


2 Answers

symfony server:start writes a pid file to ~/.symfony/var/.

Remove the correct pid file (i.e the one that references the current project dir)

like image 119
Jason Hendry Avatar answered Jan 28 '23 11:01

Jason Hendry


You can make a

symfony server:stop

The system reboot and symfony serve will works again.

like image 22
Jean-Roch Masson Avatar answered Jan 28 '23 10:01

Jean-Roch Masson