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

JohnRivs's avatar

Troubles running a Lumen app on a shared hosting

In my Homestead machine, everything's fine. However, when I upload the app on 2 different shared hosting services, I get 2 types of error. I have PHP 5.6 on both, extensions enabled, using apache.

On the first service (1and1), the home route works fine, but as soon as I request something else, I get a 500 internal server error.

On the other service (hosting24), not even the home route works. The Lumen app loads, and it says NotFoundHttpException in Application.php line 1105

Can anyone relate to this story?

EDIT: I swapped $app->run($request); in public/index.php for

$request = Illuminate\Http\Request::capture();
$app->run($request);

Worked on the second service.

0 likes
4 replies
deadlockgB's avatar

this sounds like a Server cofiguration issue. Is your .htaccess in the public directory transfered correctly? Did you configure your virtual host / server block correctly?

Please or to participate in this conversation.