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
#1
Composer + Laravel
Just wondering if any one has gotten this to work with Sentora or knows of any issues with doing so?
Reply
Thanks given by:
#2
RE: Composer + Laravel
5050 might be able to help out there since our site is hosted on Sentora w/ Laravel.
-TGates - Project Council

SEARCH the Forums or read the DOCUMENTATION before posting!
Support Sentora and Donate: HERE

Find my support or modules useful? Donate to TGates HERE
Developers and code testers needed!
Contact TGates for more information
Reply
Thanks given by:
#3
RE: Composer + Laravel
Ok cool will wait and see what he says, on a side note still couldnt get the DNS to work on sentora side
Reply
Thanks given by:
#4
RE: Composer + Laravel
Hi,

I'm not at all a specialist nor even a beginer about laravel. i only sorted out to make the website to work, but I do not know even if there is a "standard" lavarel configuration.

The configuration I got from the backup was this:
  • app
  • bootstrap
  • public
    • css/ ...
    • ....
    • packages/ ...
    • .htaccess
    • index.php
    • ....
  • artisan
  • composer.json
  • ...
I have changed it to make it compatible with zpanel/Sentora openbase_dir:
- I moved all content that was in "root" directory in a directory named "Laravel"
- I moved in root directory all files that was present in "public" directory
- I protected the new "laravel" directory with a "deny from all"
and then adjusted pathes in index.php, and laravel/bootstrap/paths.php file according to the new disposition:
  • css/ ....
  • ...
  • packages/ ...
  • .htaccess
  • index.php
  • lavravel
    • app
    • bootstrap
    • artisan
    • composer.json
    • ...
  • packages
Hope it will help.

5050
Reply
Thanks given by:
#5
RE: Composer + Laravel
Well I don't think anyone has tried installing composer yet but Laravel itself works in ZPanel (as mentioned by 5050).

Personally I've always used Composer and the Laravel Installer locally on my dev machine and then uploaded the finished project onto the server.

I can't see any problems with installing and using it on a server though I have not tried Wink
Code:
curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer
^ That should install it.
Before posting, update your profile with your OS, Sentora version and server type!

Reply
Thanks given by:
#6
RE: Composer + Laravel
(10-17-2014, 07:12 PM)jacobg830 Wrote: Well I don't think anyone has tried installing composer yet but Laravel itself works in ZPanel (as mentioned by 5050).

Personally I've always used Composer and the Laravel Installer locally on my dev machine and then uploaded the finished project onto the server.

I can't see any problems with installing and using it on a server though I have not tried Wink
Code:
curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer
^ That should install it.

I second that as well...Laravel works pretty well on ZPanel installations but I haven't tried installing composer on a live ZPanel server.

Shouldn't be a problem tho as jacobg830 mentioned above.
Remi - Software Engineer,  Sentora Module Developer,  Owner, imerLabs


Please mark threads as SOLVED if your problem has been resolved.
Do not PM Staff Members for help unless asked to do so, this is so that others can benefit from your solution.
Do a SEARCH before asking in the forums, a solution may already exist.
Reply
Thanks given by:
#7
RE: Composer + Laravel
I had a php.ini problem when I last tried just wanted to see if any one else had tried or come across anything before going ahead again
Reply
Thanks given by:
#8
RE: Composer + Laravel
(10-17-2014, 11:43 PM)Smartay Wrote: I had a php.ini problem when I last tried just wanted to see if any one else had tried or come across anything before going ahead again

Perhaps if we know what problem you encountered, we will be able to help.
Remi - Software Engineer,  Sentora Module Developer,  Owner, imerLabs


Please mark threads as SOLVED if your problem has been resolved.
Do not PM Staff Members for help unless asked to do so, this is so that others can benefit from your solution.
Do a SEARCH before asking in the forums, a solution may already exist.
Reply
Thanks given by:
#9
RE: Composer + Laravel
I wasnt after help with that at present as I'm pretty sure I know what it was and how I could fix it plus it was a while ago and cant actually remember. I just was testing the water to see who if any one else had done it.
Reply
Thanks given by:
#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


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

Forum Jump:


Users browsing this thread: 1 Guest(s)