Phpmyadmin is showing 404 error

13 views
Skip to first unread message

Ujjaval Srivastav

unread,
Jun 26, 2015, 6:12:31 AM6/26/15
to vagra...@googlegroups.com
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

  


Ujjaval Srivastav

unread,
Jun 26, 2015, 7:13:30 AM6/26/15
to vagra...@googlegroups.com
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
Reply all
Reply to author
Forward
0 new messages