Php Artisan Serve Not Working Properly – Laravel Command

Php Artisan Serve Not Working Properly – Laravel Command

Php Artisan Serve Not Working – Laravel Command , We will share with you how to run your laravel based project using the another php command.

If you are using the latest version for Laravel 5.X, you will see that sometime “php artisan serve” command doesn’t work properly. If you face this type of problem, you can use the below command and start your server locally.

We will run our project on localhost, so go to your project root directory using this below command :

cd your project name 

Next run the following command for run your project on localhost with the port 8000, we will not use php artisan serve. we use below the following command :

php -S localhost:8000 -t public/

After run this command on command prompt, you look like this. Start your server locally with host localhost and port 8000 :

php artisan serve not working

If you want to run your project on diffrent port or diffrent host, you can do it with the of this command

Diffrent Port

php -S localhost:9000 -t public/

Diffrent host

php -S -t public/


Now this time we check our project is running properly or not, Go to in your browser type this below :


when we hit the url in browser , look like this :

php artisan serve not working

with diffrent port , look like this :

php artisan serve not working

Php artisan serve not working properly we use the php -S localhost:8000 and run our project simply.

Sometime php artisan serve not working properly that time we can you also http://localhost/here_project_name/public/.

You may like

  1. Laravel Clear Cache Using Artisan Command CLI
  2. Make Auth (Artisan Command) in Laravel 6
  3. Laravel 6 Artisan Console Command Cheat Sheet ( List )
  4. Check Laravel Version Command-Line (cmd) and File
  5. How to Create a Controller And Model Laravel 6 Using cmd
  6. Laravel create and use middleware command
  7. Laravel clear cache shared hosting using artisan command

If you have any questions or thoughts to share, use the comment form below to reach us.


My name is Devendra Dode. I am a full-stack developer, entrepreneur, and owner of I like writing tutorials and tips that can help other developers. I share tutorials of PHP, Python, Javascript, JQuery, Laravel, Livewire, Codeigniter, Node JS, Express JS, Vue JS, Angular JS, React Js, MySQL, MongoDB, REST APIs, Windows, Xampp, Linux, Ubuntu, Amazon AWS, Composer, SEO, WordPress, SSL and Bootstrap from a starting stage. As well as demo example.

9 replies to Php Artisan Serve Not Working Properly – Laravel Command

  1. Thanks… It’s really help me
    I just start to learn laravel and then when i tried “php artisan serve”, it work on cmd. But it alway loading on browser. Until i found your post. Thank’s a lot

  2. Thanks a lot it solve my problem

  3. thank you very much it helpful to me

  4. thanks a looooooooooooooooooooooooooooot

  5. Thanks Bro ^_^

  6. Thank you so much . This work well

  7. thank you so much , bro

  8. It worked properly ..I appriciate

  9. yes working . good and thanks

Leave a Reply

Your email address will not be published. Required fields are marked *