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.
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