install laravel project in CWpanel

0

My next query is why I try to install a laravel project already created, and I have not had any luck. the server is of several domains in which it is this way

/home/nombredominio/

I explain, first upload the project and put in public_html the folder public and the rest of the folders in another folder xxxxxxx staying this way

/home/nombredominio/public_html   <<------- carpeta public

/home/nombredominio/xxxxxxxxx     <<------resto de carpetas

then I address to /public_html/index.php

and I rename the lines

require __DIR__.'/xxxxxxx/vendor/autoload.php';

$app = require_once __DIR__.'/xxxxxxxx/bootstrap/app.php';

(ACA IN THIS CAPACITY EXPLANATION DOES NOT PLACE EXACTLY HOW IT SHOULD BE WHEN I WALK IN TRIALS AND ERASE MORE I CAME TO THE ROUTE BEFORE I GAVE THE ROUTING ERROR AND THEN IT RESOLVED) ... JUMPING TO ERROR THAT COMMENT DOWN

Then by giving www.xxxxxxx.com

I get this error

  

/framework/src/Illuminate/Foundation/helpers.php '(include_path ='.: / opt / alt / php72 / usr / lib / php ')

I was reading and it is SAYed that it was the PHP version, but the server is in 7.2.5 and my version of laravel is 5.6

First time I'm uploading laravel to a server. Excuse the hazing.

    
asked by Omar Ramirez 23.06.2018 в 05:07
source

1 answer

0

Try placing the routes in this way

require __DIR__.'/../xxxxxxx/vendor/autoload.php';

$app = require_once __DIR__.'/../xxxxxxxx/bootstrap/app.php';

I hope it works for you.

    
answered by 03.07.2018 в 09:02