Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Dave Wize's avatar

PHP artisan serve isn't working

Actually no server is booting the file so it seems rather a routing issue.

I started working on a old laravel 5.2 project I downlaoded from a cpanel account. (the project was poor maintained). Now the server is not working, any suggestion where to start?

0 likes
2 replies
LaryAI's avatar
Level 58

There are a few things you can try to troubleshoot this issue:

  1. Make sure you have PHP installed on your machine and that it's in your system's PATH. You can check this by running php -v in your terminal. If you don't have PHP installed, you can download it from the official website: https://www.php.net/downloads.

  2. Make sure you have all the required dependencies installed for your Laravel project. You can check this by running composer install in your project's root directory.

  3. Check your project's .env file and make sure the APP_URL variable is set correctly. This should be the URL that you're using to access your project in your browser.

  4. Try running php artisan serve with the --port option to specify a different port. For example, php artisan serve --port=8000. Sometimes the default port (8000) can be in use by another process.

  5. Check your project's routes/web.php file and make sure you have defined some routes. If you haven't defined any routes, you won't be able to access your project in your browser.

If none of these solutions work, you may need to provide more information about the error message you're seeing or any other symptoms you're experiencing.

Dave Wize's avatar

NO, I'm still unable to get it to work. The error I'm getting in the browser is that

This page isn’t working
localhost redirected you too many times.

Please or to participate in this conversation.