Reputation: 488
Hi I try to install laravel 4 on my ubuntu 13.10 using the laravel command but when i palce the laravel file in /usr/local/bin I have a problem. For using laravel command I must be super user. There is a way for installing laravel with my user?
Upvotes: 1
Views: 1131
Reputation: 11699
You have to add laravel in your PATH using below command.
export PATH="~/.composer/vendor/bin:$PATH"
Now if $ laravel new blog
doesn't work you can use $ sudo laravel new blog
A complete guide is available here on my blog post: http://scriptbaker.com/install-laravel-on-ubuntu/
Upvotes: 0
Reputation: 2925
You can install composer this way:
php -r "readfile('https://getcomposer.org/installer');" | php
and then easily create a laravel project with:
composer create-project laravel/laravel /path/to/project --prefer-dist
this should be possible as normal user without sudo
.
Happy coding!
Upvotes: 1