Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

phpmyadmin on NGINX with Centos7 shows blank white page?

I am using Nginx with Centos 7 which is working fine.

After that I installed phpMyAdmin which was successfully installed as well, however when I access it on the browser it shows white blank page with no HTML source code.

What am I doing wrong?

like image 498
Blackflash Avatar asked Sep 19 '25 09:09

Blackflash


2 Answers

based on the accepted answer I found the solution, But instead of changing the permission to 777 I prefer changing the ownership like below:

sudo chown -R nginx:nginx /var/lib/php/session/

The group of the session directory is apache by default, I changed it to nginx which is the user that runs php-fpm and nginx

like image 188
N_Z Avatar answered Sep 21 '25 01:09

N_Z


I've found the solution.

The /var/lib/php/session/ folder was not writeable by nginx/php-fpm, I've just edited the permissions to 777 and now it works.

like image 38
Blackflash Avatar answered Sep 21 '25 01:09

Blackflash