[英]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. 嗨,我尝试使用laravel命令在我的ubuntu 13.10上安装laravel 4,但是当我将laravel文件放在/ usr / local / bin中时,我遇到了问题。 For using laravel command I must be super user.
对于使用laravel命令,我必须是超级用户。 There is a way for installing laravel with my user?
有一种方法可以与用户一起安装laravel?
You can install composer this way: 您可以通过以下方式安装作曲家:
php -r "readfile('https://getcomposer.org/installer');" | php
and then easily create a laravel project with: 然后使用以下命令轻松创建一个laravel项目:
composer create-project laravel/laravel /path/to/project --prefer-dist
this should be possible as normal user without sudo
. 没有
sudo
普通用户应该可以这样做。
Happy coding! 编码愉快!
You have to add laravel in your PATH using below command. 您必须使用以下命令在您的PATH中添加laravel。
export PATH="~/.composer/vendor/bin:$PATH"
Now if $ laravel new blog
doesn't work you can use $ sudo laravel new blog
现在,如果
$ laravel new blog
不起作用,您可以使用$ sudo laravel new blog
A complete guide is available here on my blog post: http://scriptbaker.com/install-laravel-on-ubuntu/ 我的博客文章中提供了完整的指南: http : //scriptbaker.com/install-laravel-on-ubuntu/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.