How do I set up phpMyAdmin on a Laravel Homestead box?

前端 未结 14 1272
无人共我
无人共我 2020-12-12 09:48

I installed it by running sudo apt-get install phpymyadmin and then running

sudo ln -s /usr/share/phpmyadmin/ /usr/share/nginx/html and

14条回答
  •  时光说笑
    2020-12-12 10:05

    A variation on Nikos Gr's answer that seemed a bit simpler (in that it doesn't require a new symbolic link for each project on your Homestead box) and worked for me.

    1. Inside the Homestead box, run sudo apt-get install phpmyadmin. Don't select any of the options during install.
    2. On your host machine, add the following lines to your Homestead.yaml file:

      - map: phpmyadmin.dev to: /usr/share/phpmyadmin

    3. On your host machine, add the following line to your hosts file:

      192.168.10.10 phpmyadmin.dev

    ...and Homestead's phpMyAdmin will be available at phpmyadmin.dev

提交回复
热议问题