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

前端 未结 14 1420
无人共我
无人共我 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:03

    Finally it worked for me, few things I had to fix:

    Homestead.yaml file:

    - map: phpmyadmin.test
      to: /home/vagrant/code/phpmyadmin/
    

    I had to delete /public from the end. I installed phpmyadmin (after vagrant ssh command from Homestead directory) into the 'code' folder where the other projects are. When 'code' is with lowercase, it has to be everywhere so (or other way around): folder name, yaml file or even after installation performing these commands:

    sudo ln -s /usr/share/phpmyadmin/ /home/vagrant/code/phpmyadmin
    cd ~/code && serve phpmyadmin.test /home/vagrant/code/phpmyadmin
    

提交回复
热议问题