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.
First, try to access phpMyAdmin in the Bitnami Stack using puTTY and SSH keys. You’re facing the problem of the PHPMyAdmin page after a few days of website setup. It may show some error or blank page, that all is due to security reasons.
Why only a blank page displayed?
All this could be happening due to the DNS server. Bitnami may not be able to establish the localhost connection 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 would not be able to establish.
The solution provided in this article will address the issue of the blank page only. If the connection is not able to be established, then try again to access the PHPMyAdmin page.
Solve the issue by removing the DNS provider.
If you’re using the third-party DNS provider, you’ve to point out the 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 them here. Your website/s will not be available when you access the PHPMyAdmin page. So here we go.
Open the SSH terminal of your virtual machine. And execute 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.