A
A
AnonDanon2020-06-29 13:05:53
Nginx
AnonDanon, 2020-06-29 13:05:53

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

2 answer(s)
D
dodo512, 2020-06-29
@AnonDanon

So that instead php.mysite.ru/phpmyadminit 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;
        }
}

A
AnonDanon, 2020-06-29
@AnonDanon

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

Maybe even with Claudia Flara? But I disabled https there so that if anything it does not affect. Flixible set it too, with it it gives out the same Nginx start page, but with https.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question