Skip to content

Instantly share code, notes, and snippets.

@Metrakit
Last active April 7, 2016 08:49
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Metrakit/5fce0698e70ee462f81e to your computer and use it in GitHub Desktop.
Save Metrakit/5fce0698e70ee462f81e to your computer and use it in GitHub Desktop.
Install phpmyadmin on Laravel homestead
#!/bin/sh
# Content of the file 'after.sh' in ~/.homestead/
export DEBIAN_FRONTEND=noninteractive
apt-get --no-install-recommends install -q -y phpmyadmin
echo 'phpmyadmin phpmyadmin/dbconfig-install boolean true' | debconf-set-selections
echo 'phpmyadmin phpmyadmin/app-password-confirm password secret' | debconf-set-selections
echo 'phpmyadmin phpmyadmin/mysql/admin-pass password secret' | debconf-set-selections
echo 'phpmyadmin phpmyadmin/mysql/app-pass password secret' | debconf-set-selections
dos2unix /vagrant/scripts/serve.sh
bash /vagrant/scripts/serve.sh "pma.homestead.app" "/usr/share/phpmyadmin" 80
@dlepaux
Copy link

dlepaux commented Jun 10, 2015

À la fraîche

@Metrakit
Copy link
Author

Metrakit commented Apr 7, 2016

New Homestead (related on Homestead PHP 5.6) :

#!/bin/sh

# Content of the file 'after.sh' in ~/.homestead/

export DEBIAN_FRONTEND=noninteractive
apt-get --no-install-recommends install -q -y phpmyadmin

echo 'phpmyadmin phpmyadmin/dbconfig-install boolean true' | debconf-set-selections
echo 'phpmyadmin phpmyadmin/app-password-confirm password secret' | debconf-set-selections
echo 'phpmyadmin phpmyadmin/mysql/admin-pass password secret' | debconf-set-selections
echo 'phpmyadmin phpmyadmin/mysql/app-pass password secret' | debconf-set-selections

dos2unix /vagrant/scripts/serve-laravel.sh
bash /vagrant/scripts/serve-laravel.sh "pma.homestead.app" "/usr/share/phpmyadmin" 80

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment