Changing phpmyadmin's default url

I am wondering how to change the default url for phpMyAdmin. I am using the latest version (4.0.4.1) on my CentOS 6 VPS. I want to change it / phpmyadmin to something more secure. I'm not sure how to do this or where to even find the apache.conf file, if any?

Thanks!

+6
source share
3 answers

For ubuntu (I used ubuntu 12.04) the default apache configuration phpmyadmin can be found in /etc/phpmyadmin/apache.conf

You can open it as sudo nano /etc/phpmyadmin/apache.conf and change the third

 Alias /yournewalias /usr/share/phpmyadmin 

Remember to restart the apache service,

 sudo service apache2 restart 
+14
source

Apache default configuration phpMyAdmin

Alias ​​/ phpmyadmin / usr / share / phpmyadmin

Change it to

Apache default configuration phpMyAdmin

Alias ​​/ any name / usr / share / phpmyadmin

Then be sure to restart Apache

sudo / etc / init.d / apache2 restart

+5
source

Edit this file

 /etc/apache2/conf-available/phpmyadmin.conf 

line 3: change the line to

 Alias /whateveryouwant /usr/share/phpmyadmin 
0
source

Source: https://habr.com/ru/post/948470/


All Articles