This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Composer + Laravel
#10
RE: Composer + Laravel
Composer works fine with whatever setup you have. It basicly doesn't care what do you use...naked apache/mysql/whatever or panels or whatever. All you have to do is tell him dir where you want your new project to be.
I'm using Composer successfully on Zpanel / Sentora instalations for quet some time now, tho i'm not working with laravel....i'm using yii and yii2.
Only "problem" with yii/yii2 is that root of project is not root of web itself, so all you have to do inside sentora is to change root dir for domain. Added this into vhost override:
DocumentRoot "/var/zpanel/hostdata/username/public_html/domainroot/web"
and that's it.

My advice is that you do the same. Just move DocumentRoot to "public" folder and you will have update proof laravel project that works like a charm.
VHost override directive in case of Laravel (with assumption that you installed project to root of your domain) would be something like:
DocumentRoot "/var/zpanel/hostdata/username/public_html/domainroot/public"

No need to temper with project and make your life harder once updates come your way.
Reply
Thanks given by: Smartay


Messages In This Thread
Composer + Laravel - by Smartay - 10-17-2014, 07:28 AM
RE: Composer + Laravel - by TGates - 10-17-2014, 07:57 AM
RE: Composer + Laravel - by Smartay - 10-17-2014, 08:08 AM
RE: Composer + Laravel - by 5050 - 10-17-2014, 09:16 AM
RE: Composer + Laravel - by jacobg830 - 10-17-2014, 07:12 PM
RE: Composer + Laravel - by modpluz - 10-17-2014, 09:49 PM
RE: Composer + Laravel - by Smartay - 10-17-2014, 11:43 PM
RE: Composer + Laravel - by modpluz - 10-17-2014, 11:45 PM
RE: Composer + Laravel - by Smartay - 10-18-2014, 12:37 AM
RE: Composer + Laravel - by sosojni - 10-18-2014, 08:34 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
Install composer nscloud 5 12 ,554 10-02-2017, 06:39 PM
Last Post: Me.B
Composer + Flarum Totte 1 4 ,838 04-27-2017, 06:16 PM
Last Post: Me.B

Forum Jump:


Users browsing this thread: 3 Guest(s)