Upload cakephp project to inmotion hosting

Hello guys, i need your help to upload cake php using inmotion.
When i upload on the server and try to run my project
this picture below shows this:

Thanks in advance for your help :smiley:

Here’s my routes.php file:

use Cake\Http\Middleware\CsrfProtectionMiddleware;
use Cake\Routing\RouteBuilder;
use Cake\Routing\Router;
use Cake\Routing\Route\DashedRoute;


Router::scope('/', function (RouteBuilder $routes) {
    $routes->registerMiddleware('csrf', new CsrfProtectionMiddleware([
        'httpOnly' => true

    $routes->connect('/', ['controller' => 'Users', 'action' => 'index']);
    $routes->connect('/pages/*', ['controller' => 'Pages', 'action' => 'display']);

Router::scope('/api', function($routes) {

I am using cake php version 3.7.*.

i have shell access, because i am using VPS.

I just upload all the files and adjust the php version to 7.1

Hello @sabas

Welcome to the forum.

Paste your routes.php file. Also, which cake version are you using?
Do you have shell access? Also, how did you upload the files? More information is helpful.


  1. Try see effect of phpinfo https://www.php.net/manual/en/function.phpinfo.php add this to some of your code or make simple php file in webroot or higher, to check your php settings.
  2. Try to get “start page” and see if everything is allright there. In my 3.1 case it is in …pages/home

Check if new server is compatible with https://book.cakephp.org/3.0/en/installation.html