InMotion Hosting Support Center

How to install Composer and Laravel 5?

Category: How To

2016-03-15 11:17 pm EST

Hits: 2,548

I've searched the InMotion community but haven't found any article about installing Composer and Laravel 5. Can you please help me how to install them? I already have a root access in WHM. Please explain in details.

Thank you!

You must login before you can ask a follow up question.

You must login before you can submit an answer.



42,973 Points
2016-03-16 12:52 pm EST
Hello MelodicCrypter,

Thanks for your question about finding documentation for the installation of Composer and Laravel 5. We unfortunately do not have any written documentation for these installations. However, I can point you to the official documentation for the installation of each application. You can find the installation instructions for Composer by going here. As Laravel 5 requires Composer, you would need to install it first. When it's complete, you can then install Laravel 5 - its installation instructions can be found here. I hope that helps! Apologies again that we do not have tutorials for those installations.

If you have any further questions or comments, please let us know.

Arnel C.

You must login before you can post a comment about this answer.

Thank you for your answer. Please pardon me, cause I still don't know where to install Composer inside WHM. For example on Mac: I can just simply open terminal then install from there, but I can't figure it out inside WHM.
13 Points
2016-03-19 9:54 am EST

2016-03-20 2:55 pm EST
Proceed to go into SSH and login then input the following:
curl -sS | php

now we want to create an alias to composer type/paste:
echo "alias composer='php ~/composer.phar'" >> .bashrc
. ~/.bashrc

You will be using SSH to install/manage your composer packages
This would be easier for me to do manually, but try to see if you can accomplish this. Tell me if you are facing any problems.

You must login before you can post a comment about this answer.

I was under the impression that 'best practice' indicated that Composer should NOT be installed in Production. Just upload the files you want committed.
31 Points
2017-09-24 1:57 pm EST
If you do not wish to put the files on your live production site, then you will need to install them somewhere you have the development version of your site. Upload them there, if that is the case.
3,862 Points
2017-09-25 2:28 pm EST
Like this Question?

Forum Login

You are NOT logged in. You can still browse our Support Center.

To participate within our Community Support Forum:

Need more Help?

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail:
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!