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

topvillas's avatar

Laravel and Lumen running under same Apache Server

Hey peeps!

I've run into a bit of a problem. I'm running Laragon on Windows and have a Laravel site consuming an API driven by Lumen. Both running under the same Apache server.

My problem is that the Laravel site's .env leaks over into the Lumen API. Forcing it to use the Laravel site's database connection.

I've read that this is a known problem with Apache on Windows and that your config should be cached anyway but , of course, Lumen doesn't use config files.

Any suggestions on how to get around this would be much appreciated.

0 likes
0 replies

Please or to participate in this conversation.