显示定义('LARAVEL_START',微时间(真)) - 当我将PHP版本迁移到7.3时



当我将开发环境更新到 PHP 7.3 时,我收到以下消息(访问应用程序主页(

*/ 
  define('LARAVEL_START', microtime(true)); 
/* 
|-------------------------------------------------------------------------- 
| Turn On The Lights 
|-------------------------------------------------------------------------- 
| 
| We need to illuminate PHP development, so let us turn on the lights. 
| This bootstraps the framework and gets it ready for use, then it
| will load up this application so that we can run it and send 
| the responses back to the browser and delight our users. 
| 
*/ 
$app = require_once __DIR__.'/../bootstrap/app.php'; 
/* 
|-------------------------------------------------------------------------- 
| Run The Application 
|-------------------------------------------------------------------------- 
| 
| Once we have the application, we can handle the incoming request 
| through the kernel, and send the associated response back to 
| the client's browser allowing them to enjoy the creative 
| and wonderful application we have prepared for them. 
| 
*/ 
$kernel = $app->make(IlluminateContractsHttpKernel::class); 
$response = $kernel->handle( $request = IlluminateHttpRequest::capture() ); 
$response->send(); 
$kernel->terminate($request, $response);

如何处理?

脚本的某些部分丢失了,但似乎您的 php 文件被视为文本!升级到 php 7.3 后检查服务器设置。我想问题出在任何 php script

如果您在浏览器中看到代码,则说明您没有正确安装 PHP

您可以使用命令提示符检查PHP版本是否安装在本地计算机中php -v

我认为 apache2 没有使用 PHP 正确设置

再试一次 sudo apt-get install php7.4/php7.3

在将 ALPN 和 Http2/protocol 安装到我的服务器后,我遇到了这个问题!

要处理此问题,请执行以下操作:

PS:我正在为我的主机使用直接管理员,这个过程可以是在其他主机管理器(如 cpanelplesk(中有所不同,但是当然,它们都将具有相同的能力。

转到您的域的主机(不是根(->域设置->单击您的域(example.com(->Php设置->增加内存限制(例如至512M(->单击memory_limit前面的保存按钮->2分钟后检查您的网站

最新更新