S
S
Stanislav Rymar2016-10-05 14:12:21
Laravel
Stanislav Rymar, 2016-10-05 14:12:21

How to host a Laravel project on a VPS with VestaCP?

There is a ready-made application on Laravel that needs to be transferred to a VPS with VestaCP. I say right away that I haven’t been on the Web for so long and therefore I may not know some of the nuances, if possible, explain more intelligibly)
In short, I divided my project, as indicated in this manual, into public and private. blog.bobbyallen.me/2015/03/25/how-to-host-a-larave...
Changed torequire __DIR__ . '/../bootstrap/autoload.php';

require __DIR__ . '/../private/app_data/bootstrap/autoload.php';
There was no start.php , I also made a change for app.php, by analogy with autoload.php
At step 5 I ran into a problem, I have no path.php, I realized that it was cut out, but where to make other changes? What changes I did not make, I always get a 500 error.
If there is a person who posted his project already on VestaCP, respond, we need your help!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
Georg, 2016-10-05
@Georg

I do this all the time, the algorithm is something like this:
1. Install laravel in the /home/admin/web/website.ru folder
2. Rename the public folder to public_html
3. Change the open_basedir settings for the site directory (error 500 is most likely due to this ):
In the /home/admin/conf/web folder, create the apache2.website.ru.conf file with the following content:

<Directory /home/admin/web/website.ru/public_html>
php_admin_value open_basedir none
</Directory>

G
GrimJack, 2016-12-29
@GrimJack

In general, mb will be useful to someone, we do it like @george, only the file should be called not apache2, but httpd and transfer it under root. And then we restart the httpd server from the control panel and you're done.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question