Hahahaha got solution just set path in bootstrap file with installation code.
#!/usr/bin/env bash apt-get update apt-get install -y apache2 apt-get install -y phpmyadmin if ![ -L /var/www ]; then rm -rf /var/www ln -fs /vagrant /var/www ln -fs /usr/share/phpmyadmin /var/www fi On Friday, June 26, 2015 at 3:42:31 PM UTC+5:30, Ujjaval Srivastav wrote: > > Hi All, > > Thanks in Advance. > > I configure everything related to vagrant. All is working fine event > index.html/index.php both. Now I installed mysql through vagrant ssh and > same way i installed phpmyadmin. > > But when I am opening phpmyadmin link its showing 404 error. > > http://127.0.0.1:4567/phpmyadmin > > My vagrant file . > > Vagrant.configure("2") do |config| > config.vm.box = "hashicorp/precise32" > config.vm.provision :shell, path: "bootstrap.sh" > config.vm.network :forwarded_port, host: 4567, guest: 80 > config.vm.synced_folder "src/", "/var/www" > config.vm.provision "fix-no-tty", type: "shell" do |s| > s.privileged = false > s.inline = "sudo sed -i '/tty/!s/mesg n/tty -s \\&\\& mesg n/' > /root/.profile" > end > end > > > My bootstrap.sh file > > #!/usr/bin/env bash > > apt-get update > apt-get install -y apache2 > > if ![ -L /var/www ]; then > rm -rf /var/www > ln -fs /vagrant /var/www > fi > > > > > -- This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list. GitHub Issues: https://github.com/mitchellh/vagrant/issues IRC: #vagrant on Freenode --- You received this message because you are subscribed to the Google Groups "Vagrant" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/53a4ca35-ace9-4458-ba3b-33d150738036%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
