phpMyAdmin in a seperate domain in centos 7 [closed]
The issue right now is that I want to maintain a database and I have planned to manage that with phpmyadmin and i have configured it but right now what it looks like is
mydomain.com/phpmyadmin
What now is I Want
anotherdomain.com ==> phpmyadmin management site
so are there any ways to do this
I am using centos 7 any help will do great thank you
First of all, consider not installing phpMyAdmin:
phpMyAdmin is a completely unnecessary and insecure software that has already collected 252 CVE registered vulnerabilities over its lifetime.
If for some strange reason you still want to use it, then you can install it on a separate subdomain, and ideally, make it "secret", e.g. as on this guide:
server {
server_name pma-gj4lrxidp.example.com;
...
include global/allowed-ips-pma.conf;
root /usr/share/phpMyAdmin;
location ~ \.php$ {
# mysqldump can take potentially very long time; adjust as needed
fastcgi_read_timeout 360;
fastcgi_pass unix:/var/run/php-fpm/php-fpm-default.sock;
fastcgi_index index.php;
include fastcgi_params;
# no big headers there:
fastcgi_buffer_size 2k;
# set client body size to 32M #
client_max_body_size 32M;
}
# These directories do not require access over HTTP
location ^~ /libraries/ {
deny all;
}
location ^~ /setup/lib/ {
deny all;
}
location ^~ /setup/frames/ {
deny all;
}
}