Question
Nginx Configuration for PHPMyAdmin - White Page
Hi !
Recently I change VPS and i re-install the basic like nginx, php, mysql server. Now I’m blocked about phpmyadmin. I installed it without any troubles but I got a white page.
server {
listen 80;
root path/to/phpmyadmin/;
index index.php index.html index.htm;
server_name phpmyadmin.mydomainname;
location / {
try_files $uri $uri/ =404;
}
location ~ \.php$ {
try_files $uri /index.php =404;
fastcgi_pass unix:/run/php/php7.0-fpm.sock; #I use php7.0 : it's a problem ?
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
And it doesn’t work. I try to change my root directory to a simple PHP file.
<php?
echo'test';
?>
And it’s work. So I don’t think there are problems with PHP.
drwxrwxrwx 2 root 4.0K Mar 31 15:39 .
drwxrwxrwx 4 root 4.0K Mar 31 10:21 ..
lrwxrwxrwx 1 www-data 21 Mar 31 15:39 phpmyadmin -> /usr/share/phpmyadmin
Here it’s the root directory setting in the config file. As you can see I change the owner of the folder.
I need your help please.
Regards,
PS: I know there are many topic about it but i didn’t find any solution.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×