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 件のコメント:

コメントを投稿

Pod Security Admission

[用途] ルール対象外のマニフェストをデプロイさせないための 防止策で利用するイメージになる [検証] 以下のコマンドを投入する kubectl label ns default pod-security.kubernetes.io/warn=baseline [各種コマンドの意...