Laravel Php Artisan Serve Not Working Properly

Laravel Php Artisan Serve Not Working Properly

Php artisan serve command not working laravel; In this tutorial, We will share with you how to run laravel-based projects using another PHP command.

If you are using the latest version of Laravel, you will see that sometimes “PHP artisan serve” command does not 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 the below command :

cd project name 

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

php -S localhost:8000 -t public/

After running this command on the 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

Different Port

php -S localhost:9000 -t public/

Different 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.

Sometimes PHP artisan serve not working properly that time we can also http://localhost/here_project_name/public/.

Recommended:-Laravel Try Catch

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


Greetings, I'm Devendra Dode, a full-stack developer, entrepreneur, and the proud owner of My passion lies in crafting informative tutorials and offering valuable tips to assist fellow developers on their coding journey. Within my content, I cover a spectrum of technologies, including 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. Whether you're starting out or looking for advanced examples, I provide step-by-step guides and practical demonstrations to make your learning experience seamless. Let's explore the diverse realms of coding together.

9 replies to Laravel Php Artisan Serve Not Working Properly

  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 *