We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
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!
-
- Support team
- Posts: 1111
- Joined: Tue Jul 30, 2013 10:18 pm
- Contact:
- Os: CentOS 6x
- Web: nginx + php-fpm
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.
-
- Support team
- Posts: 1111
- Joined: Tue Jul 30, 2013 10:18 pm
- Contact:
- Os: CentOS 6x
- Web: nginx + php-fpm
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?
-
- Support team
- Posts: 1111
- Joined: Tue Jul 30, 2013 10:18 pm
- Contact:
- Os: CentOS 6x
- Web: 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!
Re: Changed PHPMyadmin URL - No Icons
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
in vestapanel ---
server >> configure >> db >> phpMyAdmin URL
https://mysite.com/phpmyadmin24879
hope this works for you!
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;
}
}
server >> configure >> db >> phpMyAdmin URL
https://mysite.com/phpmyadmin24879
hope this works for you!