phpmyadmin 服务器错误400

qvk1mo1f  于 4个月前  发布在  PHP
关注(0)|答案(1)|浏览(58)

我在EC2示例上的Rocky 9上安装了Cpanel。当我试图从WHM或用户cpanel访问phpMyAdmin时,我得到了这个错误500内部服务器错误。
我正在使用服务器的IP访问cpanel当前(没有SSL).
示例:服务器IP是1.1.1.1,我访问1.1.1.1:2087登录WHM。当我去phpMyAdmin时,我得到这个错误链接变成:https://1-1-1-1.cprapid.com:2087/cpsess7237697460/3rdparty/phpMyAdmin/index.php
我检查了/usr/local/cpanel/logs/error_log,发现了这个:

==> cpsrvd 11.112.0.3 started
==> cpsrvd: loading security policy....Done
==> cpsrvd: Setting up SSL support ... Done
==> cpsrvd: transferred port bindings: 10,11,12,3,4,5,6,7,8,9
==> cpsrvd: bound to ports
[2023-06-24 16:40:57 +0000] info [cpsrvd] version 11.112.0.3 online
/usr/local/cpanel/3rdparty/php/81/bin/php-cgi: error while loading shared libraries: libldap_r-2.4.so.2: cannot open shared object file: No such file or directory
[2023-06-24 16:40:58 +0000] warn [whostmgrd] The subprocess (php) exited with an error (ID 595246399826468): The subprocess reported error number 127 when it ended.
[2023-06-24 16:40:58 +0000] info [whostmgrd] Internal Server Error: "GET /cpsess8864581121/3rdparty/phpMyAdmin/index.php HTTP/1.1" 500 Internal Error (ID 595246399826468)

字符串
不确定这是否是原因。
我尝试更新cpanel /scripts/upcp --force,结果:
1-修复cPanel的内部RPM. /scripts/check_cpanel_pkgs --fix
2-重新启动cPanel服务守护进程。/scripts/restartsrv_cpsrvd --hard
我试过使用其他版本的PHP。
所有的尝试都不起作用,我仍然得到同样的错误。

**更新:**邮件的Roundcube也不工作https://1-1-1-1.cprapid.com:2087/cpsess7237697460/3rdparty/roundcube/index.php

我试图更新此文件/usr/local/cpanel/base/3rdparty/phpMyAdmin/index.php,但它只是显示相同的错误.

mrphzbgm

mrphzbgm1#

我在AlmaLinux 9.3机器上遇到了这个问题。我发现cPanel FPM服务有问题。

systemctl status cpanel_php_fpm.service

字符串
如果失败了,你会发现libldap_r-2.4.so.2丢失了。在yum搜索后找到了正确的包。

yum search libldap


然后安装正确的软件包(在我的情况下是x86_64)

yum install openldap-compat.x86_64


希望有帮助!

相关问题