# Upload cakephp project to inmotion hosting

**URL:** <https://discourse.cakephp.org/t/upload-cakephp-project-to-inmotion-hosting/6334>\
**Category:** Need Help\
**Created:** [July 1, 2019, 3:20pm UTC](https://discourse.cakephp.org/t/upload-cakephp-project-to-inmotion-hosting/6334 "2019-07-01T15:20:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sabas](https://avatars.discourse-cdn.com/v4/letter/s/e0b2c6/32.png) [@sabas](https://discourse.cakephp.org/u/sabas)\
**Post date:** [July 1, 2019, 3:20pm UTC](https://discourse.cakephp.org/t/upload-cakephp-project-to-inmotion-hosting/6334/1 "2019-07-01T15:20:47Z")

</div>

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:

 ![bleah](https://canada1.discourse-cdn.com/flex029/uploads/cakephp/original/2X/8/8cd7a955fd8b5402690376c21eccc55ec27264d4.png)

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

---

<div class="post-metadata">

**Author:** ![karmicdice](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/karmicdice/32/1298_2.png) [@karmicdice](https://discourse.cakephp.org/u/karmicdice)\
**Post date:** [July 1, 2019, 9:15pm UTC](https://discourse.cakephp.org/t/upload-cakephp-project-to-inmotion-hosting/6334/2 "2019-07-01T21:15:40Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![jarekgol](https://avatars.discourse-cdn.com/v4/letter/j/58956e/32.png) [@jarekgol](https://discourse.cakephp.org/u/jarekgol)\
**Post date:** [July 4, 2019, 12:53pm UTC](https://discourse.cakephp.org/t/upload-cakephp-project-to-inmotion-hosting/6334/5 "2019-07-04T12:53:12Z")

</div>

Hi!

1. Try see effect of phpinfo [https://www.php.net/manual/en/function.phpinfo.php](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](https://book.cakephp.org/3.0/en/installation.html)
