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

前端 未结 14 1381
无人共我
无人共我 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 09:56

    Option 1:

    This will install the latest version of PhpMyAdmin from a shell script I've written. You are welcome to check it out on Github.

    1. Run the following command from your code/projects directory:

      curl -sS https://raw.githubusercontent.com/grrnikos/pma/master/pma.sh | sh
      

    Option 2:

    This will install PhpMyAdmin (not the latest version) from Ubuntu's repositories. Assuming that your projects live in /home/vagrant/Code :

    1. sudo apt-get install phpmyadmin Do not select apache2 nor lighttpd when prompted. Just hit tab and enter.

    2. sudo ln -s /usr/share/phpmyadmin/ /home/vagrant/code/phpmyadmin

    3. cd ~/Code && serve phpmyadmin.test /home/vagrant/code/phpmyadmin

    Note: If you encounter issues creating the symbolic link on step 2, try the first option or see Lyndon Watkins' answer below.

    Final steps:

    1. Open the /etc/hosts file on your main machine and add:

      127.0.0.1  phpmyadmin.test
      
    2. Go to http://phpmyadmin.test:8000

提交回复
热议问题