1
我需要安裝我的sh文件。PHP警告:file_put_contents(/home/username/.composer/keys.dev.pub):無法打開流:權限被拒絕 - 在線466
我的SH文件:
#!/bin/bash
HTTPDUSER=`ps aux | grep -E '[a]pache|[h]ttpd|[_]www|[w]ww-data|[n]ginx' | grep -v root | head -1 | cut -d\ -f1`
setfacl -R -m u:"$HTTPDUSER":rwX -m u:`whoami`:rwX app/cache app/logs web/assets/logos
setfacl -dR -m u:"$HTTPDUSER":rwX -m u:`whoami`:rwX app/cache app/logs web/assets/logos
npm install
curl -sS https://getcomposer.org/installer | php
php composer.phar install
rm composer.phar
php app/console cache:clear --env=dev
php app/console cache:clear --env=prod
php app/console doctrine:database:drop --force
php app/console doctrine:database:create
php app/console doctrine:migrations:migrate --no-interaction
NODE_ENV=production node_modules/.bin/webpack
php app/console assetic:dump --env=prod --no-debug
php app/console assets:install --symlink web
當SH文件步驟:
curl -sS https://getcomposer.org/installer | php
則顯示錯誤:
All settings correct for using Composer
PHP Warning: file_put_contents(/home/ruslan/.composer/keys.dev.pub): failed to open stream: Permission denied in - on line 466
PHP Warning: file_put_contents(/home/ruslan/.composer/keys.tags.pub): failed to open stream: Permission denied in - on line 483
我不知道我的捲曲或發生作曲家。請幫幫我。
下一個步驟:下載1.1.3 ... 作曲家成功安裝到:在/ var/www/html等/ PROJECT_NAME /作曲家.phar 使用它:php composer.phar 使用軟件包信息加載composer存儲庫 從鎖定文件安裝依賴項(包括require-dev) 您的需求無法解析爲一組可安裝的軟件包。 –
問題1 - jms/security-extra-bundle 1.5.x-dev的安裝請求 - > jms/security-extra-bundle [1.5.x-dev]可以滿足。 - jms/security-extra-bundle 1.5.x-dev需要php〜5.3 - >你的PHP版本(7.0.8)不能滿足這個要求。 –
問題2 - jms/security-extra-bundle dev-master需要php〜5.3 - >您的PHP版本(7.0.8)不符合該要求。 - jms/security-extra-bundle dev-master需要php〜5.3 - >你的PHP版本(7.0.8)不符合這個要求。 - jms/security-extra-bundle dev-master的安裝請求 - >通過jms/security-extra-bundle [dev-master]可以滿足。 –