Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why command "php artisan serve" not working

I started Laravel at this path:

C:\Users\Mad\Work\trunk\product\backend\v1.2.1\laravel

but it is not working, it is not starting.

Please give me suggestions how I will do it ?

like image 233
mukund shelke Avatar asked Dec 26 '16 12:12

mukund shelke


People also ask

How do I run php artisan serve command?

after install the xampp server and start services like php and mysql. please open the drive (default: C:/xampp/htdocs/) and please create folder (ex: laravel) and paste your project files into this laravel directory. Open the browser and type localhost/laravel/public and hit enter then it will come your website.

How does php artisan serve work?

The serve command is just a shortcut for the PHP Built-in Webserver, something PHP has out of the box, so the point of using it is to start testing your application as fast as you could, you just need to install PHP, Composer and your application is up (if you don't need anything else, of course).

How do I reset artisan serve?

Press Ctrl + Shift + ESC. Locate the php process running artisan and kill it with right click -> kill process. Reopen the command-line and start back the server.


2 Answers

try

php -S localhost:8000 -t public/

source : http://allbitsnbytes.com/posts/php-artisan-serve-not-working/

like image 58
Jay Ryu Avatar answered Oct 08 '22 19:10

Jay Ryu


Try this also

php -S 127.0.0.1:8000 -t public/

https://www.tutsmake.com/laravel-command-php-artisan-serve-not-working-properly/

like image 5
Developer Avatar answered Oct 08 '22 17:10

Developer