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

65-99's avatar
Level 1

Why does Laravel on localhost (xampp) run slow compared to a normal html site?

I use

XAMPP version: 8.2.4

Control Panel version: 3.3.0

Laravel: 10.33.0

PHP: 8.2.11

Everything should work as fast as lightning, but im waiting 32 seconds to load a page. Most of time is spent waiting for the server to respond. page is clear html js css in blade.php there is NO database query on this page. i tried to load same page without Laravel and localhost. 412 ms to load the same page in a different folder without Laravel and localhost. Any solution to this problem?

to start server in laravel I use these commands

php artisan serve

and

npm run dev

0 likes
1 reply
jlrdw's avatar

php artisan serve is not xampp. Take a tutorial.

On windows 11 xampp is very fast with sixteen gb memory.

Edit:

And I am referring to using apache.

Please or to participate in this conversation.