5
votes

I just have installed laravel Authentication to my application and launch my server php artisan serve at URL http://localhost:8000/ and I got the following errors . I am using Xampp and Windows 10.And Xampp is installed in D root directory.

Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0

Fatal error: Unknown: Failed opening required 'D:\xampp\htdocs\ecom/server.php' (include_path='.;D:\xampp\php\pear') in Unknown on line 0

3

3 Answers

15
votes

try the following on your cmd line:

php -S localhost:8888 -t public

Make sure the "-S" is capitalized. Hope this resolves your issue.

4
votes

Type your command line :

php -S localhost:8000 -t public

because port is not public

3
votes

Server.php make an Exception and your Anti-Virus like Avast delete it Automatically. Make turn off your Anti-VIrus Software. Hope this resolves your issue.