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
Here’s my routes.php file:
<?php
use Cake\Http\Middleware\CsrfProtectionMiddleware;
use Cake\Routing\RouteBuilder;
use Cake\Routing\Router;
use Cake\Routing\Route\DashedRoute;
Router::defaultRouteClass(DashedRoute::class);
Router::scope('/', function (RouteBuilder $routes) {
$routes->registerMiddleware('csrf', new CsrfProtectionMiddleware([
'httpOnly' => true
]));
$routes->applyMiddleware('csrf');
$routes->connect('/', ['controller' => 'Users', 'action' => 'index']);
$routes->connect('/pages/*', ['controller' => 'Pages', 'action' => 'display']);
$routes->fallbacks(DashedRoute::class);
});
Router::scope('/api', function($routes) {
$routes->setExtensions(['json']);
$routes->resources('accounts');
$routes->resources('posts');
$routes->resources('comments');
$routes->resources('friends');
$routes->resources('ads');
});
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