几天前,我开始将发行版从 Ubuntu 20.04 升级到 22.04。有些事情进展不顺利(可能是人为错误 :( )。
最初,repo 文件有误(jammy insted focal),部分安装全新。我更改了 repo 文件,并设法“降级”系统
之后我再次升级了发行版,我觉得一切都还好,直到最后我意识到 Apache 服务器出了问题。阅读 journalctl 错误后,我意识到 Apache 正在搜索似乎已安装的 php7.4,但实际上并没有。我将 repo 文件更新为适合 php 并安装了 php7.4
现在我安装的所有 Web 应用程序仍然有问题。我检查了 Apache 服务状态,它是绿色的。在 Passenger Watchdog 和 Passenger Core 中有一长串“”。
├─2968 "Passenger watchdog" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" ""
├─2971 "Passenger core" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" ""
我检查了 apache 错误日志,只有这些是重新启动服务器后的条目:
[Thu Dec 29 00:20:48.390727 2022] [mpm_prefork:notice] [pid 2965] AH00163: Apache/2.4.54 (Ubuntu) SVN/1.14.1 mod_fcgid/2.3.9 Phusion_Passenger/6.0.6 OpenSSL/3.0.2 mod_perl/2.0.12 Perl/v5.34.0 configured -- resuming normal operations
[Thu Dec 29 00:20:48.391005 2022] [core:notice] [pid 2965] AH00094: Command line: '/usr/sbin/apache2'
[ E 2022-12-29 00:20:50.7466 2971/T5 age/Cor/SecurityUpdateChecker.h:521 ]: A security update is available for your version (6.0.6) of Phusion Passenger. We strongly recommend upgrading to version 6.0.14.
[ E 2022-12-29 00:20:50.7468 2971/T5 age/Cor/SecurityUpdateChecker.h:526 ]: Additional security update check information:
- [Fixed in 6.0.14] [CVE-2018-25032] zlib before 1.2.12 allows memory corruption when deflating (i.e., when compressing) if the input has many distant matches.
- [Fixed in 6.0.14] A use after free memory safety issue was introduced in 6.0.12, and fixed in 6.0.14.
在 phusion 乘客中没有关于 18.04 之后的任何 ubuntu 版本的信息
底线:安装的几个 Web 应用程序具有基本配置,或者说我没有对标准 apache2/php 设置进行太多更改,并且我想知道在清除实际设置后重新安装 apache 是否会比发现错误更快。
我愿意遵循有关如何调查错误的建议。
谢谢
答案1
在花了几个小时查看本地日志和论坛后,在做出有关新安装的最后决定之前,我再次检查了所有问题,检查了存储库文件和源。我相信对于 Apache,正如我在发行版升级期间确认的现有配置文件一样,php、passenger、ruby 等任何东西都不是最新的,或者某些配置文件已损坏。
当 Apache 状态变为“绿色”时,我明白我正朝着正确的方向前进,问题不在于 Web 服务器本身,而在于所有模块和/或配置
这是一个漫长的过程,但至少我很高兴它正在发挥作用
我希望这能对某人有所帮助