RE: Composer + Laravel
10-18-2014, 08:34 AM
(This post was last modified: 10-18-2014, 08:37 AM by sosojni.)
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.
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.