我有一个拱形的linux液滴,我正在尝试安装symfony。我安装了作曲家,所以我去了我想安装去的目录并输入composer create-project symfony/framework-standard-edition path/ 2.4.2
命令。然后我得到这个错误。这使我感到困惑,因为它表示即使它在列表中的位置。有人能帮我找出如何解决这个问题吗?安装Symfony与作曲家给出错误
我也在更改后重新启动了httpd。
[ErrorException]
file_exists(): open_basedir restriction in effect. File(/root/.composer/.htaccess) is not within the allowed p
ath(s): (/srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/share/webapps/:/usr/local/bin/:/root/.composer/.htacces
s/)
https://github.com/composer/composer/issues/680。听起来像你正在'composer'上运行'root'。我强烈建议你*不*这样做 – Phil
@Phil如果我不那么我得到错误'mkdir权限被拒绝',所以我需要成为根或使用sudo,并给出了同样的错误,在上面的问题 – zachstarnes