打开 http://example.com/myphpadmin 时出错 - HTTP ERROR 500
Posted
技术标签:
【中文标题】打开 http://example.com/myphpadmin 时出错 - HTTP ERROR 500【英文标题】:Error opening http://example.com/myphpadmin - HTTP ERROR 500 【发布时间】:2021-06-18 04:55:00 【问题描述】:/etc/nginx/sites-available/默认
server
listen 80;
server_name ip;
root /var/www/html/public;
add_header X-Frame-Options "SAMEORIGIN";
add_header X-XSS-Protection "1; mode=block";
add_header X-Content-Type-Options "nosniff";
index index.html index.htm index.php;
charset utf-8;
location /
try_files $uri $uri/ /index.php?$query_string;
location = /favicon.ico access_log off; log_not_found off;
location = /robots.txt access_log off; log_not_found off;
error_page 404 /index.php;
location ~ \.php$
fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
include fastcgi_params;
location ~ /\.(?!well-known).*
deny all;
错误
thrown in /usr/share/phpmyadmin/libraries/classes/Url.php on line 253" while reading response header from upstream, client: MYIP, server: _, request: "GET /phpmyadmin/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.2->
2021/03/21 09:00:00 [error] 31206#31206: *1 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Call to undefined function PhpMyAdmin\mb_strpos() in /usr /share/phpmyadmin/libraries/classes/Url.php:253 堆栈跟踪:
enter image description here
【问题讨论】:
我建议您向 phpmyadmin 的支持论坛寻求帮助,因为您要求我们对复杂的开源系统进行故障排除。 【参考方案1】:mb_strpos
不是核心 PHP 包的一部分,它是 mbstring
扩展的一部分
您可以使用以下命令安装它:
sudo apt install php-mbstring
【讨论】:
以上是关于打开 http://example.com/myphpadmin 时出错 - HTTP ERROR 500的主要内容,如果未能解决你的问题,请参考以下文章
windows schtasks如果没有打开则打开excel,如果没有打开则打开工作表