gpt4 book ai didi

php - 管理页面显示空白

转载 作者:搜寻专家 更新时间:2023-10-30 20:33:27 25 4
gpt4 key购买 nike

创建了一个 PHP 网站,Example.com 和登录页面是 example.com/admin

当我在 example.com/admin 中填写用户名和密码详细信息时。

页面已成功加载并显示成功重定向到您,但仪表板或管理面板显示空白屏幕。

检查下面的错误日志

2019/05/04 02:21:52 [emerg] 16768#16768: unexpected end of file, expecting "}" in /etc/nginx/sites-enabled/default:92
2019/05/04 02:23:21 [notice] 16780#16780: signal process started

thrown in /var/www/html/core/library/geoip.inc on line 572" while reading response header from upstream, client: 171.79.224.202, server: 157.230.229.11, request: "GET /admin/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.2-fpm.sock:", host: "157.230.229.11"
2019/05/04 03:23:16 [error] 30120#30120: *187 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Call to undefined function mb_internal_encoding() in /var/www/html/core/library/geoip.inc:572
Stack trace:
#0 /var/www/html/core/library/geoip.inc(464): _geoip_seek_country(Object(GeoIP), 2874138826)
#1 /var/www/html/core/library/geoip.inc(503): geoip_country_id_by_addr(Object(GeoIP), '171.79.224.202')
#2 /var/www/html/admin/controllers/dashboard.php(106): geoip_country_name_by_addr(Object(GeoIP), '171.79.224.202')
#3 /var/www/html/admin/app.php(129): require('/var/www/html/a...')
#4 /var/www/html/admin/index.php(41): require('/var/www/html/a...')
#5 {main}
thrown in /var/www/html/core/library/geoip.inc on line 572" while reading response header from upstream, client: 171.79.224.202, server: 157.230.229.11, request: "GET /admin/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.2-fpm.sock:", host: "157.230.229.11"

nginx/sites-available/default 文件是

server {
listen 80 default_server;
listen [::]:80 default_server;
root /var/www/html;

index index.php index.html index.htm index.nginx-debian.html;

server_name 157.230.229.11;

location / {
#try_files $uri $uri/ =404;
try_files $uri $uri/ /index.php?q=$uri&$args;
}

location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
}

location ~ /\.ht {
deny all;
}
}

此外,当我单击任何显示主页的页面/子页面时,或者如果更改为它则显示 404 未找到 nginx 错误,但主页工作文件。

请任何人帮助我

最佳答案

在你的 .htaccess 文件中试试这个

RewriteEngine on
RewriteCond $1 !^(index\.php|public|\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?$1

关于php - 管理页面显示空白,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55979248/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com