Php 响应::将站点传输到另一台服务器laravel 5.2后下载不起作用

Php 响应::将站点传输到另一台服务器laravel 5.2后下载不起作用,php,laravel,laravel-5,Php,Laravel,Laravel 5,将站点转移到新服务器后 public function download($filename) { $file= base_path(). "/uploads/pagefiles/$filename/".$filename; $headers = array( 'Content-Type: application/pdf', ); return Response::downl

将站点转移到新服务器后

public function download($filename)
    {
      $file= base_path(). "/uploads/pagefiles/$filename/".$filename;
        $headers = array(
                  'Content-Type: application/pdf',
                );

        return Response::download($file, "$filename", $headers);
    }
新服务器使用PHP5.5
而旧服务器使用PHP7

如果我将链接直接放在浏览器中,文件下载会发生什么错误?(浏览器和日志)@AgeValed Internal Server Error check此链接我在PHP5.6.22上测试了代码并正常工作,因此我认为您可能有另一种错误,路径错误,缺少PHP库或其他错误。服务器:新服务器:您能检查apache错误日志吗?