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

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

    A simplified version of Jyeon's Answer. You don't need to share the ~/Code folder in the Homestead.yaml file:

    folders:
        - map: /Users/{yourName}/Code/phpMyAdmin
          to: /home/vagrant/Code/phpMyAdmin
    

    Just download the latest version of PhpMyAdmin from PhpMyAdmin and put the unzipped file in the ~/Code/phpMyAdmin folder and just follow the 2 step here:

    Step 1: Open up homestead.yaml file and add these lines

    sites: - map: phpmyadmin.app to: /home/vagrant/Code/phpMyAdmin

    Step 3: Open up your hosts file and add this line:

    192.168.10.10 phpmyadmin.app

    Now run the vagrant reload --provision command and you're good to go.

    Open up the phpmyadmin.app address in your browser and you'll see the phpmyadmin interface.

提交回复
热议问题