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

RemiC's avatar

Dunno, I don't use MAMP, but I guess you shouldn't use a subdirectory of localhost to host your app.

bashy's avatar

@luddinus That doesn't work normally anyway... it's the exact same as Laravel. Direct your dev link to the public dir

bashy's avatar

@luddinus You probably changed the htaccess to direct it to the public folder.

testy's avatar

Hm, i have the same error :/ Using mamp. I have tried with RewriteBase to pointing to the public folder, but not working :/

Laravel is no problem

IvanBernatovic's avatar

Yep, same problem as others, doesn't work with XAMPP out of the box so I'm using artisan serve for the time.

bashy's avatar

People and incorrect vhost setups :P get in the habit or setup something properly instead of MAMP WAMP XAMPP VAMP BAMP RAMP TAMP JAMP EAMP etc

2 likes
bashy's avatar

@luddinus Sure it works (or can work) but it's bad practice. It's fine for single files or small scripts but sites...no.

bashy's avatar

@luddinus Because of this exact problem... do some research. The fact you're still on WAMP is one of the problems.

2 likes
bashy's avatar

@luddinus Works fine if you setup your document root properly :) not a problem with Lumen

davorminchorov's avatar

I started using Vagrant and Laravel Homestead and now I can't go back to WAMP or XAMPP!

dberry's avatar

Yeah it works just fine for me out of the box. I've already finished two different services and started an API.

I used WAMP once, I also wiped my ass with poison oak on mistake too once, both experiences sucked and were painful.

2 likes
andy's avatar
Level 8

@dberry Totally agree! I found getting apache, php and mysql going on OSX way easier than MAMP.

dberry's avatar

@andy, haha, dev-ing on a mac is so much easier overall than on Windows.

I do use vagrant now, it's just so easy, but, I started off on the server engineering side of things so there was a time I had to setup servers from a blank command-line.

Take the time to learn how to set up a server on your own, break down and start learning virtualbox & vagrant, you'll thank everyone in here who has badgered you thus far.

Head over to http://serversforhackers.com sign up, do the tuts, look over the forums, buy the book. @fideloper has done a hell of a job with this.

Being a dev, you don't have to be a server engineering genius, but it is beneficial to you to know how everything fits together and even knowing the basics will make you a better developer.

1 like
fahdgilani's avatar

if anyone is still having this problem use virtual host in your Apache server (in httpd-vhosts.conf file).

giofrio's avatar

@andy I just came across this issue. I'm not sure if you resolved it but I was having the same problem, and I found the issue. I found the issue in the MAMP error logs. I had a MemeCache error. By default, you can see that the .env file has SESSION_DRIVER set to null, with a fallback of memcache. Make sure that this is uncommented in your .env file with a setting of array. I hope that it helps you or anyone else that has this same issue.

SESSION_DRIVER=array
QUEUE_DRIVER=arra
Previous

Please or to participate in this conversation.