I installed it by running sudo apt-get install phpymyadmin
and then running
sudo ln -s /usr/share/phpmyadmin/ /usr/share/nginx/html
and sudo service nginx restart
but it's not working.
note: I didn't select any of apache2 or lighttpd options when installing.
adminer
index file is located inadminer/adminer
so try :Finally it worked for me, few things I had to fix:
Homestead.yaml file:
I had to delete
/public
from the end. I installed phpmyadmin (aftervagrant 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:This is the most simple solution. No mapping and all needed.
Download latest phpmyadmin version from here https://www.phpmyadmin.net/downloads
Make a folder named phpmyadmin inside your main root/public folder and unzip phpmyadmin here.
Run yourwebsite.com/phpmyadmin
A simplified version of Jyeon's Answer. You don't need to share the ~/Code folder in the Homestead.yaml file:
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 linessites: - 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.
The answer from Nikos Gr worked for me; however I needed to amend steps 2 and 3 as my host system has issues creating the symlink.
I changed:
To:
(Couldn't comment on the original solution as my rep isn't high enough!)
For another alternative that I found super simple and that worked right out of the box I set up a new Nginx site from inside the Homestead box using the serve.sh script:
serve adminer.app /home/vagrant/Code/adminer/
And then in there I dropped the one page successor to phpmyadmin, Adminer. I also renamed it to "index.php" to make it just work. Then after adding the adminer.app entry to my hosts file I was good to go.
Had not used a web based MySQL interface in years since I just didn't like maintaining phpMyAdmin but this one is sweet. One file (plus an optional CSS file if you want a nicer theme) and that is all. Easy to maintain and update.