Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Aaron Walton
3,557 PointsInstalling Composer
I need to get Laravel installed on my Linux server. I'm not familiar with installing applications to Linux and need some input on the Composer installation. I'm assuming installing it globally with be preferable so I downloaded it to my /usr/local/bin directory. What do I need to do now so that I can use the composer command?
As detailed in the Laravel documentation, I tried to install Laravel by creating a project with composer:
composer create-project laravel/laravel --prefer-dist
But I get an error that composer is not a command. Any advice or guidance on Composer and the Laravel installation would be appreciated.
2 Answers
Aaron Walton
3,557 PointsFixed it. Since I ran composer as root the Laravel project directory had improper permissions.
Aaron Walton
3,557 PointsI figured out that Composer needed to be in a "composer" directory within bin to work. I now have my Laravel project created but now get a 500 internal server error when trying to access the projects public index file. Is there something additional I need to do for config? Is there a way to test that Laravel's requirements are being met by the server?