Header Ads

How to install PHPMyAdmin with Nginx in ubuntu 20.04

How to install PHPMyAdmin with Nginx in ubuntu 20.04

How to install PHPMyAdmin in ubuntu 20.04


Make sure Nginx and PHP-fpm are available on your local workstation. You can use this configuration for PhpMyAdmin.


server {

    listen         80;

    server_name    phpmyadmin.local;

    root           /var/www/phpmyadmin;

    index          index.php;


  location ~* \.php$ {

    fastcgi_pass unix:/run/php/php7.1-fpm.sock;

    include         fastcgi_params;

    fastcgi_param   SCRIPT_FILENAME    $document_root$fastcgi_script_name;

    fastcgi_param   SCRIPT_NAME        $fastcgi_script_name;

  }

}


Thanks.

No comments