Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The requested resource / was not found on this server PHP

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

enter image description here

And I got this problem opening the localhost:

enter image description here

What do I supposed to do?

like image 614
Thiago Souza Avatar asked Jun 30 '16 13:06

Thiago Souza


3 Answers

I was missing index.php in the root folder.

like image 57
Thiago Souza Avatar answered Nov 19 '22 19:11

Thiago Souza


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

Definition of path in the file routes.php

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

Public folder

enter image description here

like image 34
Robert LUgo Avatar answered Nov 19 '22 19:11

Robert LUgo


I got the same problem which occurred by running the php -S localhost:8002 in the wrong directory.

Project/src/ -> caused the error

Project/src/public -> Solved

like image 6
Mujtaba Aldebes Avatar answered Nov 19 '22 20:11

Mujtaba Aldebes