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

anon9348's avatar

Laravel 5 paths.php missing

Seems like paths.php is missing from the boostrap folder and running the development server fails. Does anyone know something about this issue? Thank you!

0 likes
8 replies
anon9348's avatar

So how does the phpunit server work? Because I saw that server.php requires paths.php in order to work. I cannot start the development server because of this error. Or this only temporary? Thanks!

MThomas's avatar
MThomas
Best Answer
Level 35

I think we have to wait on that one for our Sensai/Professor in Testing Mr. @Jeffrey_Way or other testing gurus.

Update: In the thread mentioned he noted that a new codeception package is needed, so this might take a wile before it will work again.

1 like
anon9348's avatar

Thank you very much for your information. Any idea how long do we have to wait? I'm kind of addicted at the moment :D

isimmons's avatar

For now you could comment out the require line and hard code the public dir in server.php

<?php

$uri = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH);

$uri = urldecode($uri);

//$paths = require __DIR__.'/bootstrap/paths.php';

$requested = __DIR__.'/public'.$uri;

// This file allows us to emulate Apache's "mod_rewrite" functionality from the
// built-in PHP web server. This provides a convenient way to test a Laravel
// application without having installed a "real" web server software here.
if ($uri !== '/' and file_exists($requested))
{
 return false;
}

require_once __DIR__.'/public/index.php';
hoogdesign's avatar

You also need to change the following pieces of code.

$requested = $paths['public'].$uri;

to

$requested = __DIR__.'/public'.$uri;

and

require_once $paths['public'].'/index.php';

to

require_once __DIR__.'/public/index.php';

Please or to participate in this conversation.