Page 1 of 1

Setting up Laravel in myVesta

Posted: Sun Jul 02, 2023 7:45 am
by mckaygerhard
Currently already the myvesta has support for laravle cos the templates PHP-FPM-XX-PUBLIC and hosting-public set the root document to "public" inside the html/shtml directory

Laravel is a total crap .. over complicated.. this permit to setup the proyect without so much problems

the problem is the options for apache2 and the rewrite rule for nginx

1) aoache 2 or apache2+nginx

choose PHP-FPM-XX-PUBLIC php templates, no matter the version.. BUT disable nginx proxy.. will produce problems unless you know how to handle the rewirte with the proxy reverse

then go to apache2 template already setup in the home user, under conf/web/*apache.*conf files and modify the options line to:

Code: Select all

Options +Includes +Indexes +FollowSymLinks +SymLinksIfOwnerMatch +execCGI
2) nginx only

go to the template setup, and alter the file in directoy conf/web/ of the home user, open the file nginx.*.conf and add the line

Code: Select all

try_files $uri $uri/ /index.php?$query_string;
for the "/" url section location configuration

Re: how to setup laravel into myvesta

Posted: Sun Jul 02, 2023 10:35 am
by myVesta
Maybe the solution is https://github.com/myvesta/vesta/blob/m ... c.stpl#L16 and uncomment that line :)

Re: Setting up Laravel in myVesta

Posted: Mon Sep 04, 2023 10:50 am
by mckaygerhard
oh, thanks for the solution.. but now i upgradde to debina 12 and vesta changes the names or i canot find the php public xx templates in pacakges..


what happened ?

PD: i found codeigniter support.. pretty great!