我有一個拱形的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