2020年5月21日木曜日

Yii for beanstalk(フォルダー権限の変更について)

ssh経由で接続して必要な権限を手動で設定できますが、アプリを再デプロイするたびに
実行する必要があるので、.ebextensionsに記述を行う必要がある。


フォルダー権限の変更など:


情報1:


情報2(Yiiサイトより):
// change to your current project directory e.g. /var/www/yourproject

// 1. method: change permissions so that everyone could write the directories
chmod -vR 0777 assets
chmod -vR 0777 protected/runtime

// 2. method: change owner of directories and directories content to webserver user (e.g www-data) and grant write access only to that user
chown -vR www-data assets
chown -vR www-data protected/runtime
chmod -vR 0744 assets
chmod -vR 0744 protected/runtime


情報3:

0 件のコメント:

コメントを投稿

Redis(helm install)

local-storage  は  動的プロビジョニングされない  ため、Helm のインストール時に  PersistentVolume (PV) を事前に作成する必要があります 。 手順: 1)strage classをlocal strageを指定 helm install...