我使用curl安裝作曲家,現在我試圖創建laravel項目,但我有錯誤輸入命令作曲家創建項目錯誤
composer create-project laravel/laravel test-project --prefer-dist
PHP Warning: Phar::mapPhar(): open_basedir restriction in effect. File(/usr/local/bin/composer) is not within the allowed path(s): (/srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/share/webapps/) in /usr/local/bin/composer on line 13
PHP Warning: require(phar://composer.phar/bin/composer): failed to open stream: phar error: invalid url or non-existent phar "phar://composer.phar/bin/composer" in /usr/local/bin/composer on line 15
PHP Fatal error: require(): Failed opening required 'phar://composer.phar/bin/composer' (include_path='.:/usr/share/pear') in /usr/local/bin/composer on line 15
在OP複製/ usr/local/bin /而不是/ user/local/bin的情況下,應該是更好:) – undersound