Tutorial

phpMyAdmin blank Page Bitnami NGINX WordPress

Facing a blank page or couldn’t connect phpMyAdmin page in the bitnami stack installed on GCP, or AWS you can try the following method to resolve the problem.

phpMyAdmin blank Page in Bitnami nginx.

I hope you tried to Access phpMyAdmin in the Bitnami Stack by same process. But if you started bloging and after some days you want to access the phpmyadmin page it may show some error or blank page. That all is happening due to security reasons.

phpMyAdmin blank Page
phpMyAdmin blank Page

Why only a blank page displayed?

This could be happening because of the DNS server, your localhost connection is not able to establish, and that results in a blank final page. Usually, this happens when you’re using Cloudflare DNS.

Bitnami takes it as a security breach and the connection not able to establish. So this is the solution only if a blank page displayed not for connection error.

Solve the issue by removing DNS provider.

If you’re using the third party DNS provider, you’ve to point out name server to the registered domain provider. In most such cases DNS provider is Cloudflare. So you can consider removing it from the middle. Or if you don’t want to remove this then you can follow the next step.

Solve by making changes in the configuration file of bitnami.conf

Please note that, when you make these changes we’re suggesting here. Your website/s will not be available when you access phpmyadmin page. So here we go.

Open the SSH terminal of your virtual machine. And exectute the following command lines.

sudo -i
nano /opt/bitnami/nginx/conf/bitnami/bitnami.conf

Now here you’re in bitnami.conf file, you’ve to make some changes here.

 server {
        listen       80;
        server_name  localhost;
        #include "/opt/bitnami/nginx/conf/bitnami/phpfastcgi.conf";
        include "/opt/bitnami/nginx/conf/bitnami/bitnami-apps-prefix.conf";
    }
    # HTTPS server
    server {
       listen       443 ssl;
       server_name  localhost;
       ssl_certificate      server.crt;
       ssl_certificate_key  server.key;
       ssl_session_cache    shared:SSL:1m;
       ssl_session_timeout  5m;
       ssl_ciphers  HIGH:!aNULL:!MD5;
       ssl_prefer_server_ciphers  on;
       #include "/opt/bitnami/nginx/conf/bitnami/phpfastcgi.conf";
       include "/opt/bitnami/nginx/conf/bitnami/bitnami-apps-prefix.conf";
    }
    include "/opt/bitnami/nginx/conf/bitnami/bitnami-apps-vhosts.conf";

In the above configuration add this line include “/opt/bitnami/apps/phpmyadmin/conf/nginx-prefix.conf”; and comment out red line by adding # in front of them.

server {
        listen       80;
        server_name  localhost;
        #include "/opt/bitnami/nginx/conf/bitnami/phpfastcgi.conf";
        #include "/opt/bitnami/nginx/conf/bitnami/bitnami-apps-prefix.conf";

include "/opt/bitnami/apps/phpmyadmin/conf/nginx-prefix.conf";
    }
    # HTTPS server
    server {
       listen       443 ssl;
       server_name  localhost;
       ssl_certificate      server.crt;
       ssl_certificate_key  server.key;
       ssl_session_cache    shared:SSL:1m;
       ssl_session_timeout  5m;
       ssl_ciphers  HIGH:!aNULL:!MD5;
       ssl_prefer_server_ciphers  on;
       #include "/opt/bitnami/nginx/conf/bitnami/phpfastcgi.conf";
       #include "/opt/bitnami/nginx/conf/bitnami/bitnami-apps-prefix.conf";

include "/opt/bitnami/apps/phpmyadmin/conf/nginx-prefix.conf";
    }
    #include "/opt/bitnami/nginx/conf/bitnami/bitnami-apps-vhosts.conf";

Save this file by ctrl+X, then Y, and then press Enter. Now reload the nginx by

nginx -t
nginx -s reload

Now you can access phpmyadmin instead of a blank page. Now after doing your phpmyadmin operations

Ashok Kumar

Love Coding, Love Blogging what else to explain :).

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Back to top button