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

Joat's avatar
Level 1

PHP ARTISAN ERROR

i keep getting this error when i try to serve the project with php artisan serve, PS C:\Users\user\urhl> php artisan serve Failed to listen on 127.0.0.1:8000 (reason: ?) Failed to listen on 127.0.0.1:8001 (reason: ?) Failed to listen on 127.0.0.1:8002 (reason: ?) Failed to listen on 127.0.0.1:8003 (reason: ?) Failed to listen on 127.0.0.1:8004 (reason: ?) Failed to listen on 127.0.0.1:8005 (reason: ?) Failed to listen on 127.0.0.1:8006 (reason: ?) Failed to listen on 127.0.0.1:8007 (reason: ?) Failed to listen on 127.0.0.1:8008 (reason: ?) Failed to listen on 127.0.0.1:8009 (reason: ?) Failed to listen on 127.0.0.1:8010 (reason: ?)

I use Uniserverz for my php and phpmyadmin server.

note that when i start the server with php -S localhost:8000 -t public i get this error in localhost:8000 (could not find driver (Connection: mysql, SQL: select * from sessions where id = 3jME8hxAWyydvan8lmrbaiymwUhkZTeynavd5sfR limit 1)) and my credentials are correct.. for further context, it makes point to this throw new QueryException( $this->getName(), $query, $this->prepareBindings($bindings), $e );

The uniserver folder is in the root of my c folder

Is there a solution to this please???

0 likes
1 reply
Tray2's avatar

Yes, use Laravel Herd and dbngin for your local dev environment, and remove the other shit.

And why are you running php artisan serve when you are running Uniserverz? You don't need to, since Uniserverz runs the server for you.

1 like

Please or to participate in this conversation.