Search code examples
phpxampplaravel-5.6

php - Unknown: Failed opening required on line 0. laravel 5.6


I just installed laracast/flash and updated nesbot/carbon via composer. The cmd went nuts while downloading carbon. Cmd interface displayed scattered words and boxes all over the interface for a while and the download was completed. Did php artisan serve at localhost:8000 and I've got the following errors.

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

Fatal error: Unknown: Failed opening required 'C:\xampp\htdocs\NC World\ProjectName\server.php' (include_path='C:\xampp\php\PEAR') in Unknown on line 0


Solution

  • Try to disable your anti-virus, this happens to me, it seems avast deletes my server.php.

    So I added it to the exception