Setting up Laravel in myVesta

Post Reply
mckaygerhard
Posts: 20
Joined: Thu Jun 08, 2023 6:32 pm
Been thanked: 1 time

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

Tags:
User avatar
myVesta
Site Admin
Posts: 934
Joined: Fri Jun 19, 2020 9:59 am
Has thanked: 8 times
Been thanked: 6 times

Maybe the solution is https://github.com/myvesta/vesta/blob/m ... c.stpl#L16 and uncomment that line :)
mckaygerhard
Posts: 20
Joined: Thu Jun 08, 2023 6:32 pm
Been thanked: 1 time

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!
Post Reply