[ TUTORIAL ] How to change the default /phpmyadmin alias url
Re: [ TUTORIAL ] How to change the default /phpmyadmin alias url
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!
/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!
Re: [ TUTORIAL ] How to change the default /phpmyadmin alias url
Hello,
Thank you for the tutorial, I would add that nginx + php-fpm users must edit:
instead of
i.e.
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
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/;
}
}