Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

220
Visualizações
Updating to php7.1 returns page of echo code instead of layout

enter image description here

I'm using cakePhp and had to freshly install everything. Before I updated everything was working fine, but then I pulled from the repo and it said i needed 7, so i updated and now get this.

cake and phpinfo say its the same

enter image description here

then if i try and change the address from / to /phpmyadmin - these are the variants i get

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()
);

and

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());
over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

You might need to disable the old version of php that apache is using and enable the new mod. Check the contents of /etc/apache2/mods-enabled. You should see php7.1.conf and php7.1.load. If not try enabling them using sudo a2enmod php7.1 and sudo service apache2 restart.

Also make sure that the old mods are disabled. If you were upgrading from php 5, you would use sudo a2dismod php5 and then restart apache.

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda