D
D
danilduck2017-05-06 00:49:11
Laravel
danilduck, 2017-05-06 00:49:11

How to put laravel on Vesta and not screw it up?

I took a Droplet on Digital Ocean, rolled Vesta onto it to make it easier to administer. I created a new site, uploaded the site itself to the folder with the domain, renamed public to public_html - everything is standard, but for some reason Laravel itself does not cling. What's the matter?
Warning: require(): open_basedir restriction in effect. File(/home/admin/web/site.my/bootstrap/autoload.php) is not within the allowed path(s): (/home/admin/web/site.my/public_html:/home/admin/tmp) in /home/admin/web/site.my/public_html/index.php on line 24
Warning: require(/home/admin/web/site.my/bootstrap/autoload.php): failed to open stream: Operation not permitted in /home/admin/web/site.my/public_html/index.php on line 24
Fatal error: require(): Failed opening required '/home/admin/web/site.my/public_html/../bootstrap/autoload.php' (include_path='.:/usr/share/php') in /home /admin/web/site.my/public_html/index.php on line 24 Permissions issue
?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
S
Sanes, 2017-05-06
@danilduck

Let's start with administration.
Well done, keep up the good work. Running scripts as administrator is a great idea.
The home directory address must be specified in the host configuration. You can use both Nginx and Nginx+Apache2

B
Barmunk, 2017-05-06
@Barmunk

Start over, create the domain as it should be, upload laravel to the public_html folder, then redefine the public zone to public_html/public in the nginx settings of the site or create a special vestacp template https://forum.vestacp.com/viewtopic.php?t=6460

K
Konstantin B., 2017-05-06
@Kostik_1993

It is best to upload the entire project to the public_html folder, yesterday I just did this

E
Eugene, 2017-05-06
@nimfai

https://forum.vestacp.com/viewtopic.php?t=6460

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question