How to migrate laravel on server?

Hi all. Can't seem to solve the problem with the migration of laravel on the server, tried different options, namely
1) Copied all from the public directory to "/www/mysite.com/tools/check-tag/" make a micro service in the folder of one of the sites (on the server I have in the folder public_html is a few sites ), so I copied it all and to comment in .htaccess these lines
<ifmodule mod_negotiation.c>
 Options-MultiViews
 </ifmodule>

then in the root of the server, i.e. the folder level which is higher than the "www" filled a folder named laravel in it everything else.
After that I fixed in "/www/mysite.com/tools/check-tag/index.php" the path on the right (the Path is exactly correct because I thought that the problem and checked all the designs available ACCOR, actually a long time to write as I did, but the path 100% correct ) and after all this, when you try to enter the site gives me HTTP 500 ERROR and the server logs here the following lines
2017/10/04 15:55:02 [crit] 17216#0: *119430760 open() "/var/www/mysite/data/www/mysite.com/does_not_exists" failed (13: Permission denied), client: XXX.XXX.XXX.XXX, server: mysite.com, request: "GET /tools/check-tag/ HTTP/1.1", host: "mysite.com
[Wed Oct 15 04:55:02 2017] [error] [client XXX.XXX.XXX.XXX] PHP Parse error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /var/www/mysite/data/www/mysite.com/tools/check-tag/index.php on line 5

2017/10/04 15:27:19 [crit] 17219#0: *119416818 open() "/var/www/mysite/data/www/mysite.com/does_not_exists" failed (13: Permission denied), client: XXX.XXX.XXX.XXX, server: mysite.com, request: "GET /tools/weblist/ HTTP/1.1", host: "mysite.com
2017/10/04 15:20:36 [crit] 17218#0: *119412845 open() "/var/www/mysite/data/www/mysite.com/does_not_exists" failed (13: Permission denied), client: XXX.XXX.XXX.XXX, server: mysite.com, request: "HEAD / HTTP/1.1", host: "mysite.com", referrer: "http://mysite.com
[Wed Sep 04 15:20:36 2017] [error] [client XXX.XXX.XXX.XXX] PHP Notice: Undefined variable: item in /var/www/mysite/data/www/mysite.com/index.php on line 135, referer: http://mysite.com
[Wed Sep 04 15:20:36 2017] [error] [client XXX.XXX.XXX.XXX] PHP Notice: Trying to get property of non-object in /var/www/mysite/data/www/mysite.com/index.php on line 135, referer: http://mysite.com


2) the Second option is simply to move everything in "/www/mysite.com/tools/check-tag/" and the root add .htaccess with this content
RewriteEngine On
RewriteCond %{REQUEST_URI} !^public
RewriteRule ^ public/index.php [L]

in public/.just comment out htaccess Options-MultiViews

Please help to find a solution to this problem.
PS. if it matters - I use ISP manager
June 14th 19 at 20:14
1 answer
June 14th 19 at 20:16
Solution
It seems to me that different versions of php used the old place != new.
To avoid such problems + so that it was easier to operate and carry , I recommend to use Docker.
you are right the version is different (thanks for the tip with Docker-Ohm) - watson_Lowe81 commented on June 14th 19 at 20:19
and another question if I have a project in php 7 server 5.4 shows the main 7 but also have
ktTUHh.jpg
it will still generate an error? for me the only solution is to use docker? - watson_Lowe81 commented on June 14th 19 at 20:22
if running 5.4 - will certainly error, if you have a project open from the 7th version, the server must be active 7 th version of php.

If you have multiple versions in different projects, different versions are used you can for each project to set the version you need. - Pedro_Herzog commented on June 14th 19 at 20:25

Find more questions by tags LaravelHostingPHP