##現状
Cent OS 7.2
vagrant 2.1.1
ホストOSは、mac OSです。
Vagrant内の/var/www/配下にある自身のCakeのプロジェクトにComposerをインストールした時に以下のエラーが発生しました。
Permissions set on /vagrant/sample.com/profile/tmp/cache Permissions set on /vagrant/sample.com/profile/tmp/cache/models Permissions set on /vagrant/sample.com/profile/tmp/cache/persistent Permissions set on /vagrant/sample.com/profile/tmp/cache/views Permissions set on /vagrant/sample.com/profile/tmp/sessions Permissions set on /vagrant/sample.com/profile/tmp/tests Permissions set on /vagrant/sample.com/profile/tmp Permissions set on /vagrant/sample.com/profile/logs No Security.salt placeholder to replace.
また画面上では以下のエラーが発生しました。
Cache engine Cake\Cache\Engine\FileEngine is not properly configured.
調べてみたところapp/tmpの権限がうまくいっていないっぽいので、Vagrant fileに以下を追加しました。
config.vm.synced_folder "./", "/vagrant", owner: 'vagrant', group: 'apache', mount_options: ['d mode=777', 'fmode=666']
app/tmpのパーミッションの変更とapacheに対しても実行権限付与。
その後vagrant reload
を書けたら、次は以下のエラーが発生しました。
Vagrant was unable to mount VirtualBox shared folders. This is usually because the filesystem "vboxsf" is not available. This filesystem is made available via the VirtualBox Guest Additions and kernel module. Please verify that these guest additions are properly installed in the guest. This is not a bug in Vagrant and is usually caused by a faulty Vagrant box. For context, the command attempted was: mount -t vboxsf -o d mode=777,fmode=666,uid=1000,gid=48 vagrant /vagrant The error output from the command was:
ゲストとホストのバージョンでうまくいっていない感じだったので、ゲストエディションの更新をしました。
vagrant vbguest ↓実行結果 [default] GuestAdditions 5.2.12 running --- OK.
再度vagrant reload
をしてもエラーは解消されませんでした。
##疑問点
- Composerインストール時に発生した、パーミッションに関するエラーの対処法がわからない。
- ゲストエディションに関するエラーの対処法がわからない。
不明点ありましたら、修正依頼等で質問して下さい。
お願い致します。
あなたの回答
tips
プレビュー