更新 PHP 版本并重新启动 apache 服务器后,我在日志中收到此消息
[Sat Jul 30 18:13:31.561595 2022] [mpm_prefork:notice] [pid 21950] AH00169: caught SIGTERM, shutting down
[Sat Jul 30 18:13:31.788602 2022] [ssl:warn] [pid 22000] AH01906: serverexample:8080:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Sat Jul 30 18:13:31.788628 2022] [ssl:warn] [pid 22000] AH01909: serverexample:8080:0 server certificate does NOT include an ID which matches the server name
[Sat Jul 30 18:13:31.788729 2022] [ssl:error] [pid 22000] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: emailAddress=emailexample,CN=Azya,OU=A$
[Sat Jul 30 18:13:31.788735 2022] [ssl:error] [pid 22000] AH02604: Unable to configure certificate serverexample.com:8080:0 for stapling
[Sat Jul 30 18:13:31.788787 2022] [suexec:notice] [pid 22000] AH01232: suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec)
[Sat Jul 30 18:13:31.796234 2022] [so:warn] [pid 22000] AH01574: module php7_module is already loaded, skipping
[Sat Jul 30 18:13:31.854987 2022] [:notice] [pid 22017] FastCGI: process manager initialized (pid 22017)
[Sat Jul 30 18:13:31.908405 2022] [ssl:warn] [pid 22014] AH01906: serverexample.com:8080:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Sat Jul 30 18:13:31.908427 2022] [ssl:warn] [pid 22014] AH01909: serverexample.com:8080:0 server certificate does NOT include an ID which matches the server name
[Sat Jul 30 18:13:31.908504 2022] [ssl:error] [pid 22014] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: emailAddress=emailexample,CN=Azya,OU=A$
[Sat Jul 30 18:13:31.908511 2022] [ssl:error] [pid 22014] AH02604: Unable to configure certificate serverexample.com:8080:0 for stapling
[Sat Jul 30 18:13:31.915120 2022] [mpm_prefork:notice] [pid 22014] AH00163: Apache/2.4.29 (Ubuntu) mod_fastcgi/mod_fastcgi-SNAP-0910052141 mod_fcgid/2.3.9 OpenSSL/1.1.1 configured -- $
[Sat Jul 30 18:13:31.915150 2022] [core:notice] [pid 22014] AH00094: Command line: '/usr/sbin/apache2'
答案1
关于
服务器证书不包含与服务器名称匹配的 ID
查看您httpd-ssl.conf
安装 apache 的文件(可能/etc/apache2/
并找到参数 (*)。在它前面ServerName
放一个,并在它下面插入一个新行。重新启动 apache,这个错误消息就应该消失。#
ServerName localhost
(*) 您的行可能有serverexample.com:8080:0
,那不会是您的 url 加上:0
后面的:8080
是错误的。
如果此方法不能解决问题,您将需要使用 另一组配置serverexample.com:8080:0
。将其更改为 localhost 并删除:0
。