Skip to content
Advertisement

Unable to start laravel development server on linux

I am using laravel 5 for my project and everything has been working fine but recently I am facing this problem which I done understand.

JavaScript

I have tried devboy@devboy-hp ~ $ sudo netstat -plnt and get

JavaScript

Then I change port like so php artisan serve --port="8888" but get similar error like below after a while:

JavaScript

The first time it happened, it was java using port 8000, so I killed the process and started the server and it worked. Upon stopping and restarting, I get the same error. What could be the problem (as I said everything has been working fine except now and I have not done any major update)?

Advertisement

Answer

This is exactly what I did for the problem.

  1. I exit PHPStorm
  2. sudo netstat -plnt
  3. kill 7563 (Process using port 8888)
  4. kill 6931 (Process using port 8000)
  5. sudo /opt/lampp/lampp restart (Restart my server altogther)
  6. php artisan serve
  7. Launch PhpStorm

Now everything is working fine. What caused the problem anyway?

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement