Question
How do I change phpMyAdmin access url?
I’m trying to change the default access url for phpMyAdmin from /phpmyadmin to something less common.
After googling, the only file I was able to find and edit was /etc/phpmyadmin/apache.conf - I changed the default aliases there, but after restarting apache it didn’t seem to make a difference. I was still able to access it via /phpmyadmin and my new alias didn’t work.
Some other sites say I have to edit httpd.conf or https-alias.conf - but I can’t find those files, and there is no alias list in 000-default.conf
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×
/etc/apache2/conf-available/phpmyadmin.conf
line 3:
Alias /whateveryouwant /usr/share/phpmyadmin
@sierracircle that file doesn’t exist… I’m using Ubuntu 14.04
I found the phpmyadmin configuartion file. it is located here:
/etc/apache2/conf-enabled/phpmyadmin.conf
In my case (Ubuntu 14.04.1 LTS) it was located on /etc/phpmyadmin/apache.conf