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

コメントを投稿

AIツール断捨離の果てに

  導入 ハード環境 : Mac Studio M4 Maxの導入。 背景 : 以前から使い倒してきたITエンジニアとして、話題のAIツール(Cursor, Zed, Void, Continue, Roo Codeなど)を片っ端から実戦投入してみたこと。 目的 : ツールをいじ...