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

tenh's avatar
Level 2

laravel 6.9 localhost keep loading than Not found

I download a fresh laravel project from someone for testing.

After setting up and running using php artisan serve, the locahost (http://localhost:8000/) keep loading slowly then It shows message 404 not found.

I have tried to solve using command line php artisan serve --port=1010 and run http://localhost:1010/ on broswer but It didn't work.

And I also used php -S localhost:8000 -t public or php -S 127.0.0.1:8000 -t public after run localhost:8000 on broswer but it still didn't work.

any idea?

0 likes
9 replies
Jsanwo64's avatar

Try to restart your apache server and type php artisan serve again

tenh's avatar
Level 2

yes I have restarted my apache but it still don't work. Acually I don't need apache as I use php artisan serve to run laravel project.

jove's avatar

@tenh Does it display anything in the artisan window? Or anything in the logs?

@jsanwo64 There are no apache here.

EDIT: Just installed a fresh laravel myself to work on something and everything works here.

tenh's avatar
Level 2

@jove No it works fine in the arisan window. Yes normally I run other laravel projects in my window it works fine.

jove's avatar

@tenh Are you on linux? If so try wget the laravel server and see if it responds, try to rule out the browser.

tenh's avatar
tenh
OP
Best Answer
Level 2

I solved it by following this answer stackoverflow.com/a/52802757/401902

Please or to participate in this conversation.