Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

226
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda