I have a remote machine with LAMP and PHPMyAdmin (PMA). Let's assume this distro is Debian/Ubuntu.
If I install PMA via apt install phpmyadmin
(which will make it to be installed under /usr/share/phpmyadmin/
I think) then I wouldn't be able to navigate to PMA based on domains of my websites hosted on that lamp (the following will error):
example-1.com/phpmyadmin
example-2.com/phpmyadmin
If I remember correctly, I'll have to navigate via say MY_IP_ADDRESS/usr/share/phpmyadmin/
to access PMA successfully.
But if I'll install PMA directly on the document root via the following way I would indeed be able to navigate to PMA based on domains (as shown above):
pma="[pP][hH][pP][mM][yY][aA][dD][mM][iI][nN]"
cd /var/www/html/
rm -rf ${pma}*
wget https://www.phpmyadmin.net/downloads/phpMyAdmin-latest-all-languages.zip
unzip ${pma}*.zip
mv ${pma}*/ phpmyadmin/
rm ${pma}*.zip
unset pma
cd
On the one hand, installing PMA with apt install phpmyadmin
is simple and convenient. On the other hand but doesn't let me navigate to it based on domains. On the other hand, I do want to navigate to it just based on domains.
If I'm not wrong, a symlink can be helpful. Am I in the right direction (I can't test now)?
/etc/
- just the config files, at most. Any further explanation will depend on which distro you use and how their package management delivers PMA. – Shadur Dec 19 '18 at 7:47/etc
with some other dir like/bin/
or/usr/
, but it should be one of those, AFAIR. – user149572 Dec 19 '18 at 8:05/etc/
on one hand and/usr/share
or/bin/
on the other. I'll try to write an answer, but you may want to add thedebian
tag to this question because it's going to be distro-specific... – Shadur Dec 19 '18 at 8:21