Vagrantの仮想マシンにphpMyAdminをインストール
Vagrantの仮想マシンにphpMyAdminをインストールした時のメモ。
手順
1. phpMyAdminのダウンロード
phpMyAdminの公式サイトからダウンロード。
2. フォルダ名のリネーム
フォルダ名を「phpMyAdmin-4.3.5-all-languages」から「phpmyadmin」にリネーム。
3. フォルダの移動
リネームしたフォルダをVagrantfileと同じ階層のディレクトリに移動。
$ mv Downloads/phpmyadmin ~/Vagrant/centos/
4. 確認
「http://192.168.33.10/phpmyadmin/」にアクセスしてインストールされていることを確認。
その他
vagrant upで下記のエラーが出て失敗したので、対処法をメモ。
エラー内容。
Failed to mount folders in Linux guest. This is usually because the "vboxsf" file system is not available. Please verify that the guest additions are properly installed in the guest and can work properly. The command attempted was:...
vboxをリビルド。
$ vagrant ssh
$ sudo /etc/init.d/vboxadd setup $ exit
$ vagrant halt $ vagrant up