简体   繁体   中英

installing laravel on ubuntu 13.10

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?

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!

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/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM