V
V
vrazbros2019-06-29 18:11:15
PHP
vrazbros, 2019-06-29 18:11:15

How to open phpmyadmin after installation in ubuntu?

installed nginx php-fpm, mysql and phpmyadmin locally via apt-get install.... all installed, how to open phpmyadmin in browser?
Now the nginx /etc/nginx/sites-available/default settings are:
but I can only open localhost
on phpmyadmin - gives 404
localhost/phpmyadmin - 404

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

  location / {
    # First attempt to serve request as file, then
    # as directory, then fall back to displaying a 404.
    try_files $uri $uri/ =404;
  }

  location ~ \.php$ {
        include snippets/fastcgi-php.conf;
        fastcgi_pass unix:/run/php/php7.2-fpm.sock;
    }

  
  location ~ /\.ht {
        deny all;
    }
}

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Saiputdin Omarov, 2019-06-29
@generalx

http://ip/phpmyadmin/
try reconfiguring
$ sudo dpkg-reconfigure phpmyadmin

D
Dmitry Baskakov, 2019-06-30
@dmitrybascacov

If it doesn't work, then try downloading phpmyadmin from here and add a new site to nginx

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question