0

在此处输入图像描述

我正在使用 cakePhp,必须重新安装所有东西。在我更新之前一切正常,但后来我从 repo 中退出,它说我需要 7,所以我更新了,现在得到这个。

cake 和 phpinfo 说的一样

在此处输入图像描述

然后,如果我尝试将地址从 / 更改为 /phpmyadmin - 这些是我得到的变体

require dirname(__DIR__) . '/config/bootstrap.php';

use Cake\Network\Request;
use Cake\Network\Response;
use Cake\Routing\DispatcherFactory;

$dispatcher = DispatcherFactory::create();
$dispatcher->dispatch(
    Request::createFromGlobals(),
    new Response()
);

require dirname(__DIR__) . '/vendor/autoload.php';

use App\Application;
use Cake\Http\Server;

// Bind your application to the server.
$server = new Server(new Application(dirname(__DIR__) . '/config'));

// Run the request/response through the application
// and emit the response.
$server->emit($server->run());
4

1 回答 1

0

您可能需要禁用 apache 正在使用的旧版本的 php 并启用新的 mod。检查的内容/etc/apache2/mods-enabled。你应该看到php7.1.confphp7.1.load。如果没有尝试使用sudo a2enmod php7.1and启用它们sudo service apache2 restart

还要确保旧的模组被禁用。如果您从 php 5 升级,您将使用sudo a2dismod php5然后重新启动 apache。

于 2017-04-28T16:11:21.583 回答