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

artisticre's avatar

PHP Artisan Serve Errors

When I use the php artisan serve command, all of a sudden I get the following error:

Lumen development server started on http://localhost:8000/
Directory 'C:\wamp64\www\lsapp/public' does not exist.

The folder is there What happened?

0 likes
5 replies
bobbybouwmann's avatar

Well the error is pretty clear here. It's using the wrong path here. It looks like you're running windows. I've never tried php artisan serve myself on windows it looks like it should be working just fine as far as I know.

artisticre's avatar

what file drives looking for the public folder? It is clearly there but it can't find it?

artisticre's avatar

So I was able to start the server with php -S 127.0.0.1:8000 server.php bu I am getting /css/app.css - No such file or directory /js/app.js - No such file or directory

because it can't find the public folder even though those folders and files do exist in the public folder. How do I changethis>

Snapey's avatar

Make sure you are in the main lumen folder when you start the server and not public or anywhere else

artisticre's avatar

/c/wamp64/www/lsapp this is where I am starting the server. It was working and I must have made a mistake somewhere but I can't find it

Please or to participate in this conversation.