changing the phpmyadmin default url

后端 未结 3 1120
生来不讨喜
生来不讨喜 2020-12-30 11:51

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 am wanting to change it from /phpmyadmin to someth

相关标签:
3条回答
  • 2020-12-30 12:38

    Edit this file

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

    line 3: change the line to be

    Alias /whateveryouwant /usr/share/phpmyadmin
    
    0 讨论(0)
  • 2020-12-30 12:49

    phpMyAdmin default Apache configuration

    Alias /phpmyadmin /usr/share/phpmyadmin

    Change that to

    phpMyAdmin default Apache configuration

    Alias /anyname /usr/share/phpmyadmin

    Then make sure to restart Apache

    sudo /etc/init.d/apache2 restart

    0 讨论(0)
  • 2020-12-30 12:55

    For ubuntu (i used ubuntu 12.04), the default phpmyadmin apache configuration can be found at /etc/phpmyadmin/apache.conf

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

    Alias /yournewalias /usr/share/phpmyadmin
    

    Do not forget to restart apache service,

    sudo service apache2 restart
    
    0 讨论(0)
提交回复
热议问题