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

anon9348's avatar

php artisan serve inexistent

Hi guys,

I want to play with Laravel 5 but php artisan serve seems to have vanished and I can't start my server. Anybody knows how to fix this?

Thanks!

0 likes
5 replies
GenBS's avatar
GenBS
Best Answer
Level 1

try with 'php -S localhost:8000 -t public/'

1 like
anon9348's avatar

It started the server but the following exception is thrown: ErrorException in compiled.php line 9612: Undefined index: _sf2_meta

I just saw the most recent tutorial about bower and in jeffrey's video is working. What could be the problem?

1 like
adibhanna's avatar

yeah, it's not there! i was playing with L5 as well today, and i couldn't find it..

codedungeon's avatar

Yes indeed the server command has been removed from latest Artisan, but there is a very simple fix.

You can use:

php -S localhost:8000 -t public/

Or, create an alias

alias server="php -S localhost:8000 -t public/"  

You can also change the port to something different as to not potentially collide with any Homestead servers

alias server="php -S localhost:8080 -t public/"
pmall's avatar

I liked this command it was easy and practical. Why remove it ? What is the idea behind this ?

Please or to participate in this conversation.