Changed PHPMyadmin URL - No Icons
Changed PHPMyadmin URL - No Icons
Hi,
I am trying to change the default PHPMyadmin url.
I have my server setup with Nginx & PHP-FPM.
I edited /etc/nginx/conf.d/phpmyadmin.inc as below. The new URL works but there are no icons...

What am I doing wrong?
Thanks!
I am trying to change the default PHPMyadmin url.
I have my server setup with Nginx & PHP-FPM.
I edited /etc/nginx/conf.d/phpmyadmin.inc as below. The new URL works but there are no icons...
Code: Select all
location /dbadmin {
alias /usr/share/phpmyadmin/;
location ~ /(libraries|setup) {
return 404;
}
location ~ ^/dbadmin/(.*\.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 ~* ^/dbadmin/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
root /usr/share/;
}
}

What am I doing wrong?
Thanks!
Re: Changed PHPMyadmin URL - No Icons
May be
Code: Select all
location ~* ^/dbadmin/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
root /usr/share/phpmyadmin;
}
Re: Changed PHPMyadmin URL - No Icons
Thanks for the suggestion. Unfortunately that didn't fix the issue.


Re: Changed PHPMyadmin URL - No Icons
I see this in my original configuration:
Code: Select all
location ~* ^/phpmyadmin/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
alias /usr/share/phpMyAdmin/$1;
}
Re: Changed PHPMyadmin URL - No Icons
Not working either :(grayfolk wrote: ↑Thu Apr 02, 2020 10:02 pmI see this in my original configuration:Code: Select all
location ~* ^/phpmyadmin/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ { alias /usr/share/phpMyAdmin/$1; }
Has anyone else managed to change the default PHPMyadmin URL when running NGINX + PHP-FPM?
Re: Changed PHPMyadmin URL - No Icons
Dont see any problem: https://c2n.me/46PWzaC
I just edit 3 lines in /etc/nginx/conf.d/phpmyadmin.inc: https://c2n.me/46PWBdA
Then restart nginx, nothing else.
I just edit 3 lines in /etc/nginx/conf.d/phpmyadmin.inc: https://c2n.me/46PWBdA
Then restart nginx, nothing else.
Re: Changed PHPMyadmin URL - No Icons
Thanks for your help. It is now working :)grayfolk wrote: ↑Sat Apr 04, 2020 4:25 pmDont see any problem: https://c2n.me/46PWzaC
I just edit 3 lines in /etc/nginx/conf.d/phpmyadmin.inc: https://c2n.me/46PWBdA
Then restart nginx, nothing else.
Re: Changed PHPMyadmin URL - No Icons
Hello.
I need help with PhpMyAdmin on VestaCP.
Styles don't work in all browsers.
I attach a screenshot.

Unfortunately, the link by grayfolk https://c2n.me/46PWBdA does not work (error 404).
Thanks!
I need help with PhpMyAdmin on VestaCP.
Styles don't work in all browsers.
I attach a screenshot.
Unfortunately, the link by grayfolk https://c2n.me/46PWBdA does not work (error 404).
Thanks!