Answer the question
In order to leave comments, you need to log in
Phpmyadmin on subdomain gives blank screen. How to fix?
Greetings.
All steps were completed in the instruction __www.dmosk.ru/instruktions.php?object=centos-mega-webserver
When phpmyAdmin is displayed on a subdomain, it displays a blank screen. An ssl certificate is attached to the domain. I have no idea how to decide.
/var/log/nginx/error.log:
2019/07/10 19:55:00 [error] 2943#0: *2353 "/usr/share/nginx/html/phpmyadmin/index.php" is not found (2: No such file or directory), client: 46.147.254.104, server: _, request: "GET /phpmyadmin/ HTTP/1.1", host: "1:1:1:1"
[Wed Jul 10 20:59:10.440800 2019] [authz_core:error] [pid 1701] [client 98.151.198.151:60504] AH01630: client denied by server configuration: /usr/share/phpMyAdmin/index.php
Answer the question
In order to leave comments, you need to log in
Moved phpMyAdmin to the www folder, assigned permissions, didn't help.
mv /usr/share/phpMyAdmin /var/www/phpMyAdmin
chown -R apache:apache /var/www/phpMyAdmin
/etc/nginx/conf.d
server {
listen 80;
server_name pma.site1.com;
set $root_path /var/www/phpMyAdmin/;
location / {
root $root_path;
index index.php;
}
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $root_path$fastcgi_script_name;
include fastcgi_params;
fastcgi_param DOCUMENT_ROOT $root_path;
fastcgi_read_timeout 300;
}
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question