服务器,php文件丢失,致命错误

I have been using laravel for multiple projects already, however for some reason my new laravel project does not have the server.php file.

Reinstalling composer and / or recreating the project does not work. I also can't put a file by the name of server.php into the project in any way.

[Fri May 11 02:26:55 2018] PHP Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0
[Fri May 11 02:26:55 2018] PHP Fatal error: Unknown: Failed opening required 'C:\Users\Luke Derkzen\Documents\GitHub\Website\server.php' (include_path='C:\xampp\php\PEAR') in Unknown on line 0

I get this error when I try to start the server, as far as I can see it's expecting me to have something running on XAMPP, however on my other projects there is a server.php file, and it doesn't give above error.

The project was created with following command:

composer create-project --prefer-dist laravel/laravel

If i use the php artisan serve command afterwards to start the server and reload the page. above error appears in the artisan console.

How can I fix this?

查看全部
dongshuxi3105
dongshuxi3105
2018/05/11 00:35
  • laravel
  • php
  • 点赞
  • 收藏
  • 回答
    私信
满意答案
查看全部

2个回复