Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Stop running PHP server, command line

So I've done php -S localhost:8000, but I don't need it anymore, I need my 8000 localhost back. How to stop the php server?

like image 827
Coffee Avatar asked Jul 25 '16 06:07

Coffee


People also ask

How do I stop a PHP script from running in the background?

The exit() function in PHP is an inbuilt function which is used to output a message and terminate the current script. The exit() function only terminates the execution of the script.

How do I exit artisan in PHP?

Simply use Ctrl + C .

What is PHP command line?

PHP supports CLI SAPI(Command Line Interface Server API) for executing the script from the command line. This SAPI will differ from other interfaces based on the IO practices, configuration defaults, buffering and more. For example, IO practices – it will not support the PHP request method (GET, POST).


1 Answers

killall -9 php

That's how I would do it!

like image 122
Quinn Keaveney Avatar answered Sep 21 '22 11:09

Quinn Keaveney