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 Database Server
  • Search

Changed PHPMyadmin URL - No Icons

Questions regarding the Database Server
MySQL, PostgreSQL, MariaDB, Percona Server, phpMyAdmin, phpPgAdmin
Post Reply
  • Print view
Advanced search
9 posts • Page 1 of 1
LoGiCa7
Posts: 4
Joined: Thu Jan 23, 2020 1:10 pm

Os: Ubuntu 17x
Web: nginx + php-fpm
Changed PHPMyadmin URL - No Icons
  • Quote

Post by LoGiCa7 » Wed Apr 01, 2020 2:50 pm

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...

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/;
    }
}
Image

What am I doing wrong?

Thanks!
Top

grayfolk
Support team
Posts: 1111
Joined: Tue Jul 30, 2013 10:18 pm
Contact:
Contact grayfolk
Website Facebook Skype Twitter

Os: CentOS 6x
Web: nginx + php-fpm
Re: Changed PHPMyadmin URL - No Icons
  • Quote

Post by grayfolk » Wed Apr 01, 2020 6:28 pm

May be

Code: Select all

location ~* ^/dbadmin/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
        root /usr/share/phpmyadmin;
    }
Top

LoGiCa7
Posts: 4
Joined: Thu Jan 23, 2020 1:10 pm

Os: Ubuntu 17x
Web: nginx + php-fpm
Re: Changed PHPMyadmin URL - No Icons
  • Quote

Post by LoGiCa7 » Thu Apr 02, 2020 6:21 pm

Thanks for the suggestion. Unfortunately that didn't fix the issue.

Image
Top

grayfolk
Support team
Posts: 1111
Joined: Tue Jul 30, 2013 10:18 pm
Contact:
Contact grayfolk
Website Facebook Skype Twitter

Os: CentOS 6x
Web: nginx + php-fpm
Re: Changed PHPMyadmin URL - No Icons
  • Quote

Post by grayfolk » Thu Apr 02, 2020 10:02 pm

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;
    }
Top

LoGiCa7
Posts: 4
Joined: Thu Jan 23, 2020 1:10 pm

Os: Ubuntu 17x
Web: nginx + php-fpm
Re: Changed PHPMyadmin URL - No Icons
  • Quote

Post by LoGiCa7 » Sat Apr 04, 2020 3:58 pm

grayfolk wrote: ↑
Thu Apr 02, 2020 10:02 pm
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;
    }
Not working either :(

Has anyone else managed to change the default PHPMyadmin URL when running NGINX + PHP-FPM?
Top

grayfolk
Support team
Posts: 1111
Joined: Tue Jul 30, 2013 10:18 pm
Contact:
Contact grayfolk
Website Facebook Skype Twitter

Os: CentOS 6x
Web: nginx + php-fpm
Re: Changed PHPMyadmin URL - No Icons
  • Quote

Post by grayfolk » Sat Apr 04, 2020 4:25 pm

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.
Top

LoGiCa7
Posts: 4
Joined: Thu Jan 23, 2020 1:10 pm

Os: Ubuntu 17x
Web: nginx + php-fpm
Re: Changed PHPMyadmin URL - No Icons
  • Quote

Post by LoGiCa7 » Mon Apr 06, 2020 9:25 pm

grayfolk wrote: ↑
Sat Apr 04, 2020 4:25 pm
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.
Thanks for your help. It is now working :)
Top

Slavaws
Posts: 1
Joined: Sat Feb 06, 2021 11:33 am

Os: Debian 6x
Web: apache
Re: Changed PHPMyadmin URL - No Icons
  • Quote

Post by Slavaws » Sat Feb 06, 2021 11:51 am

Hello.
I need help with PhpMyAdmin on VestaCP.
Styles don't work in all browsers.
I attach a screenshot.

Image

Unfortunately, the link by grayfolk https://c2n.me/46PWBdA does not work (error 404).
Thanks!
Top

v1ny4
Posts: 1
Joined: Sat Apr 07, 2018 8:18 pm

Os: Debian 8x
Web: nginx + php-fpm
Re: Changed PHPMyadmin URL - No Icons
  • Quote

Post by v1ny4 » Mon Jul 04, 2022 10:48 am

this is for nginx

new phpmyadmin link inside panel works & images load fine

I changed phpmyadmin to phpmyadmin24879 at 3 places ...

root@ifght678:~# nano /etc/nginx/conf.d/phpmyadmin.inc

Code: Select all


location /phpmyadmin24879 {
    alias /usr/share/phpmyadmin;

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

    location ~ ^/phpmyadmin24879/(.*\.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 ~* ^/phpmyadmin24879/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
        alias /usr/share/phpmyadmin/$1;

    }
}
in vestapanel ---
server >> configure >> db >> phpMyAdmin URL

https://mysite.com/phpmyadmin24879

hope this works for you!
Top


Post Reply
  • Print view

9 posts • Page 1 of 1

Return to “Database 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