Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

219
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!