Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

[ TUTORIAL ] How to change the default /phpmyadmin alias url

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
12 posts
  • Previous
  • 1
  • 2
seravee
Posts: 3
Joined: Wed Jul 26, 2017 2:31 am

Re: [ TUTORIAL ] How to change the default /phpmyadmin alias url
  • Quote

Post by seravee » Wed Jul 26, 2017 2:35 am

Just want to recap. For centos based may edit here :

/etc/httpd/conf.d/phpMyAdmin.conf

List file should be edited for UI changes :

/usr/local/vesta/web/add/db/index.php
/usr/local/vesta/web/templates/admin/list_db.html
/usr/local/vesta/web/templates/user/list_db.html

Change for /phpmyadmin and replace for your needs. Thanks!

*suggestion, make a backup first before you edit ya!
Top

dnlx
Posts: 4
Joined: Thu Oct 10, 2019 2:26 pm

Os: CentOS 7x
Web: nginx + php-fpm
Re: [ TUTORIAL ] How to change the default /phpmyadmin alias url
  • Quote

Post by dnlx » Thu Oct 10, 2019 9:25 pm

Hello,

Thank you for the tutorial, I would add that nginx + php-fpm users must edit:

Code: Select all

/etc/nginx/conf.d/phpmyadmin.inc 

instead of

Code: Select all

/etc/httpd/conf.d/phpMyAdmin.conf
i.e.

Code: Select all

location /new_url {
    alias /usr/share/phpMyAdmin/;

    location ~ /(libraries|setup) {
        return 404;
    }

    location ~ ^/new_url/(.*\.php)$ {
        alias /usr/share/phpMyAdmin/$1;
        fastcgi_pass 127.0.0.1:9000;
        fastcgi_index index.php;
        include fastcgi_params;
        fastcgi_param SCRIPT_FILENAME $request_filename;
    }
    location ~* ^/new_url/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
        root /usr/share/;
    }
}
Top


Post Reply
  • Print view

12 posts
  • Previous
  • 1
  • 2

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password