Once the Homestead vagrant box is installed successfully, we can add phpMyAdmin and config it to run with Nginx.
- SSH into Homestead vagrant box with
vagrant sshand type the following command:
sudo apt-get install phpmyadmin
- when prompted to select the Web server, select
apache2and press Enter, just to get pass it. - when prompted to config database for phpmyadmin with dbconfig-common, select
Yesand press Enter. - when prompted for
Password of the database's administrative user, entersecretand press Enter. - when prompted for
MySQL application password for phpmyadmin, entersecretand press Enter. - when prompted for
Password confirmation, entersecretagain and press Enter.
sudo ln -s /usr/share/phpmyadmin/ /usr/share/nginx/html/phpmyadmin
serve phpmyadmin.app /usr/share/nginx/html/phpmyadmin
- Run
Notepadas Administrator, then open navigate toC:\Windows\System32\drivers\etc. - You may need to type
*.*and press Enter in File name box to see it. - Select file
hostsand click Open button. - Add
phpmyadmin.appat the bottom of the file like so,
127.0.0.1 phpmyadmin.app
- Save the file and close Notepad.
- Now use Chrome or any Web browser to navigate to
http://phpmyadmin.app:8000and you should now see phpMyAdmin login page.
- Login to phpMyAdmin as
rootusing passwordsecret - Goto tab
Usersand create a user for your app and set privileges as you see fit.