Requested resource / not found on this PHP server

I started the php server on cmd using php -S localhost:8080, like this:

enter image description here

And I got this problem when opening localhost:

enter image description here

What should I do?

+9
source share
4 answers

Missing index.phpin the root folder. Thanks to everyone.

+20
source

This error also occurs when you have a path with the same name as the directory in the public folder:

Defining a path in rout.php file

    Route::get('Glaciares',function(){
        return view('Principal.Glaciares.Acerca');
    });

a shared folder

enter image description here

+5
source

. :

 index.blade.php save welcome.blade php

:

Route::get('/welcome', function () {
    return view('welcome');
});
0

,

def index

end 

.

,

0

All Articles