dede
dede

Reputation: 831

Apache is running but phpmyadmin shows blank page

After installing xampp in my computer yesterday, it worked normally along the day. Today, I am about to continue my project. Apache and MySQL are running but localhost/phpmyadmin in my browser is showing blank page without any error message, just totally white screen. Then I am trying to open my application, localhost/stationaryshop, it is working properly including CRUDE process without any problem. Even if xampp control panel is run as administrator, it also couldn't work. How could I fix this? I use xampp v3.2.2, and windows 7.

Upvotes: 16

Views: 95500

Answers (11)

I face the same issue. please update your php version 8.2 to fix this issue.

Upvotes: 0

PHANTOM-X
PHANTOM-X

Reputation: 586

rebooting my device solved the issue for me

Upvotes: 0

mcroll
mcroll

Reputation: 11

I installed the webserver in Program Files (x86) folder and one setting in the php.ini was without quotes. I added it and after a restart, phpmyadmin worked. So, change

include_path=C:\Program Files (x86)\xampp\php\PEAR

to

include_path="C:\Program Files (x86)\xampp\php\PEAR"

Upvotes: 0

serg
serg

Reputation: 111285

This happened on my clean CentOS7 + httpd + php7 installation. When I tried to run php phpmyadmin/index.php in the console I did see the generated html, but the web page was blank. After hours of print debugging thanks to phpmyadmin trying to be clever and overriding error display settings to make errors silent, I narrowed it down to it not being able to initiate a session.

A quick test is to create a php file: <?php session_start(); ?> and see if it throws any errors in the browser. In my case it said that it couldn't save the session file in /var/lib/php/session/....

The solution was to edit /etc/php.ini and enable session.save_path = "/tmp". This was not enough since /etc/httpd/conf.d/php.conf was overwriting this value, so I also commented out php_value session.save_path "/var/lib/php/session" under <IfModule mod_php7.c> there. After restarting httpd the phpmyadmin started loading.

Upvotes: 2

what__a__maniac
what__a__maniac

Reputation: 13

I had that problem when I was using Internet Explorer as I was running Apache on a Windows 7 virtual machine and that was the default browser.

I downloaded Google Chrome and it worked: I stopped seeing that blank page and could access the phpMyAdmin panel.

Upvotes: 0

Abiudeko
Abiudeko

Reputation: 105

This worked for me; Go to php.ini file, find open_basedir, then comment it by introducing ';'(semi-colon) as depicted below

;open_basedir = "C:\xampp\htdocs"

You might as well turn error display on to see warnings on your browser(still in php.ini)

display_errors = Off

to

display_errors = On

Upvotes: 0

masarapmabuhay
masarapmabuhay

Reputation: 524

I was able to resolve the issue by clearing my browsing data -> Cached images and files.

I am using Google Chrome: Version 61.0.3163.100 (Official Build) (64-bit).

Steps:

  1. Click the top-right menu button -> "More tools" -> "Clear browsing data...".
  2. Check "Cached images and files" checkbox.
  3. Click the "Clear browsing data" button.

Upvotes: 11

frezq
frezq

Reputation: 702

None of these answers worked for me.

First I was able to debug the issue by running:

php index.php

On the command-line in the phpmyadmin folder.

It said there was a memory size exhausted but it was only trying to allocate 4Mb when my php memory limit was actually 1Gb.

However when I looked in the php.ini file I had set the memory_limit to:

1GB instead of the correct syntax of 1G.

Remember the correct syntax is G for Gigabytes and M for Megabytes. Once that was corrected phpmyadmin was finally loading properly.

Upvotes: 9

Alexander Uhl
Alexander Uhl

Reputation: 304

This happend to me when I changed my memory_limit to 4096MB (32Bit limitation).

Upvotes: 2

James
James

Reputation: 135

I just open the Developer Option on Chrome and disabled the cache, refresh the page and it works perfectly fine even after I close the Developer Option again.

Upvotes: 2

Sergio Figueiredo
Sergio Figueiredo

Reputation: 2007

Today I had this same problem and resolved by increasing the value of the max_execution_time property in the php.ini file and temporarily disabling the cache of my browser.

I believe that, for most cases, it is only necessary to reload phpMyAdmin with the browser cache disabled.


In my case, I verified in my apache error.log file this line:

PHP Fatal error:  Maximum execution time of 30 seconds exceeded in C:\\xampp\\phpMyAdmin\\vendor\\composer\\ClassLoader.php on line 354

Then, I edit this property in my 'php.ini':

max_execution_time=300

After that, in Chrome Browser, I opened the 'Developer Tools' (Ctrl+Shift+I), I clicked on 'Network Tab' and, finnaly, I selected 'Disable Cache' checkbox. I reloaded the phpMyAdmin page with this Developer Tool opened and success!

In the next phpMyAdmin runs, you do not need to keep the 'developer tool' open.

Upvotes: 1

Related Questions