Fatal error: Unknown: Failed opening required Error in Laravel 5.2 Auth

15,028

Solution 1

try the following on your cmd line:

php -S localhost:8888 -t public

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

Solution 2

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.

Solution 3

Type your command line :

php -S localhost:8000 -t public

because port is not public

Share:
15,028
Admin
Author by

Admin

Updated on June 21, 2022

Comments

  • Admin
    Admin almost 2 years

    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

  • Miheretab Alemu
    Miheretab Alemu about 7 years
    Do you know why this happens?
  • Thomas Smyth - Treliant
    Thomas Smyth - Treliant over 6 years
    Please update your answer to explain why this works.
  • Liga
    Liga over 4 years
    This solved my issue. My Avast Antivirus had deleted server.php for some strange reason