iT邦幫忙

0

centos 8 配置php環境異常

  • 分享至 

  • twitterImage

centos 8 下安裝apache、php7.2、phpmyadmin,error_log不斷跑出以下這些錯誤,server只有phpmyadmin能正常瀏覽,其他網站都無法瀏覽,請問有大大碰過類似狀況嗎?

[Sat Nov 23 03:55:27.545700 2019] [mpm_event:notice] [pid 2989:tid 139697093249280] AH00492: caught SIGWINCH, shutting down gracefully

[Sat Nov 23 03:55:28.749589 2019] [core:notice] [pid 3242:tid 140574050351360] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0

[Sat Nov 23 03:55:28.750711 2019] [suexec:notice] [pid 3242:tid 140574050351360] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)

[Sat Nov 23 03:55:28.768412 2019] [ssl:warn] [pid 3242:tid 140574050351360] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]

[Sat Nov 23 03:55:28.768501 2019] [lbmethod_heartbeat:notice] [pid 3242:tid 140574050351360] AH02282: No slotmem from mod_heartmonitor

[Sat Nov 23 03:55:28.772536 2019] [mpm_event:notice] [pid 3242:tid 140574050351360] AH00489: Apache/2.4.37 (centos) OpenSSL/1.1.1 configured -- resuming normal operations

[Sat Nov 23 03:55:28.772559 2019] [core:notice] [pid 3242:tid 140574050351360] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'

小魚 iT邦大師 1 級 ‧ 2019-11-23 09:16:24 檢舉
砍掉重練?
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

1 個回答

2
Ray
iT邦大神 1 級 ‧ 2019-11-24 00:42:39
最佳解答

這些....是錯誤嗎?....

[mpm_event:notice] [pid 2989:tid 139697093249280] AH00492: caught SIGWINCH, shutting down gracefully

這條寫 notice, 代表只是一個通知, 通知你 mpm 被 shutdown 了

[core:notice] [pid 3242:tid 140574050351360] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0

還是 notice 通知而已, 通知你 http 在 SELinux 的 context 下執行

[suexec:notice] [pid 3242:tid 140574050351360] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)

依然是 notice, 通知您 suEXEC 機制已經啟動...

[ssl:warn] [pid 3242:tid 140574050351360] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]

這是一個警告 (Warn), 提醒你 SSLSessionCache 沒有設定...

[lbmethod_heartbeat:notice] [pid 3242:tid 140574050351360] AH02282: No slotmem from mod_heartmonitor

這是 notice, 通知你 heartmonitor 模組缺少 slotmem 設定

[mpm_event:notice] [pid 3242:tid 140574050351360] AH00489: Apache/2.4.37 (centos) OpenSSL/1.1.1 configured -- resuming normal operations

還是 notice, 通知你 Apache 已經正常啟動...

[core:notice] [pid 3242:tid 140574050351360] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'

一樣是 notice, 通知您 httpd 被啟動的指令...

綜觀所有訊息, 總共 6 條 notice (通知), 1 條 warn (警告), 但裡面沒有一條是被標註成 error (錯誤)....(並不是檔名叫 error_log 裡面裝的就一定是 error 訊息...)

提醒:
您的 phpmyadmin 可以執行, 代表 Apache/PHP/Mysql 都正常, 所以 LAMP 的環境已經可以正常運作. 至於你的網站無法啟動, 那要看你的環境和設定檔內容, 從以上的 log 內容看不出來....

感謝大神

我要發表回答

立即登入回答