Answer the question
In order to leave comments, you need to log in
I installed phpmyadmin, but the nginx start page always pops up. What is the salt?
Good day. Please tell me what am I doing wrong? I tried a bunch of guides on installing and configuring phpmyadmin on nginx. But only the one where ipservera/phpmyadmin is the working area works, and when you want to make php.mysite.ru and write it in the default config, nothing works. How to be something? For example, here's the last guide that I used... I changed it to my subdomain and that's it. Did everything as well.
https://websiteforstudents.com/install-phpmyadmin-...
Answer the question
In order to leave comments, you need to log in
So that instead php.mysite.ru/phpmyadmin
it was php.mysite.ru/
necessary to fix the root path.
server {
listen 80;
listen [::]:80;
root /var/www/html/phpmyadmin;
# Add index.php to the list if you are using PHP
index index.php index.html index.htm index.nginx-debian.html;
server_name php.mysite.ru
# pass PHP scripts to FastCGI server
#
location ~ \.php$ {
include snippets/fastcgi-php.conf;
#
# # With php-fpm (or other unix sockets):
fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
# # With php-cgi (or other tcp sockets):
# fastcgi_pass 127.0.0.1:9000;
}
}
server {
listen 80 default_server;
listen [::]:80 default_server;
root /var/www/html;
# Add index.php to the list if you are using PHP
index index.php index.html index.htm index.nginx-debian.html;
server_name php.mysite.ru
# pass PHP scripts to FastCGI server
#
location ~ \.php$ {
include snippets/fastcgi-php.conf;
#
# # With php-fpm (or other unix sockets):
fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
# # With php-cgi (or other tcp sockets):
# fastcgi_pass 127.0.0.1:9000;
}
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question