Hello. Dedicated server UBUNTU Page for logging into php my admin is

http: // server_IP / phpmyadmin

How to change it, let's say on:

http: // domain_or_ip_server_server / secret_php_my_admin

  • The most correct is to show configuration files. Because not only through Alias, you can specify how the directory should be displayed. Easily in the www-root directory can directly lie phpmyadmin or a symlink to it. But for the “default” configuration, the @mymedia user gave an exhaustive answer - gecube

1 answer 1

If you have an Apache web server installed, then you need to fix the phpMyAdmin configs as follows. Find the line in the /etc/phpmyadmin/apache.conf file (by default, it is at the top)

Alias /phpmyadmin /usr/share/phpmyadmin 

And replace it with

 Alias /secret_php_my_admin /usr/share/phpmyadmin 

Then restart the web server with the command

 sudo service apache2 restart 
  • I changed the alias in the /etc/phpmyadmin/apache.conf file. Then restarted Apache. But phpMyAdmin is still available at the old address. Maybe this is due to the fact that I have Nginx + Apache? Please tell me how to be? - Foxtrot
  • Check that in the /etc/apache2/conf-enabled /etc/phpmyadmin/apache.conf link to /etc/phpmyadmin/apache.conf . I checked on Ubuntu Server 14.04.2 LTS. It worked for me. All configs were default. - mymedia
  • Thank you :) Earned. One more question. Now phpMyAdmin is available at two addresses: (How to make it unavailable at the old address? - Foxtrot
  • Have you cleared the nginx cache? - mymedia
  • Clearing the cache did not help. We have created an alias for the folder. And the folder is available both by alias and by name. And how to make so that the folder would be available only on an alias? - Foxtrot