作者 主題: Apache Start Failure  (閱讀 1512 次)

0 會員 與 1 訪客 正在閱讀本文。

Butterfly2020

  • 可愛的小學生
  • *
  • 文章數: 3
    • 檢視個人資料
Apache Start Failure
« 於: 2022-04-01 17:36 »
各位好,

     我卸载了redhat系统自带的httpd, 安装了新的apache后启动时,提示错误,具体情况如:

     Syntax error on line 66 of /usr/local/apache2/conf/httpd.conf:
     Cannot load /usr/local/apache2/modules/mod_authn_file.so into server: /usr/local/apache2/modules/mod_authn_file.so: undefined symbol: ap_register_auth_provider

     请问应该怎么解决这个问题?

darkranger

  • 榮譽學長
  • 俺是博士!
  • *****
  • 文章數: 1382
    • 檢視個人資料
    • https://darkranger.no-ip.org
Re: Apache Start Failure
« 回覆 #1 於: 2022-04-04 22:40 »
請問這個新的 Apache 是如何安裝起來的呢?

Butterfly2020

  • 可愛的小學生
  • *
  • 文章數: 3
    • 檢視個人資料
Re: Apache Start Failure
« 回覆 #2 於: 2022-04-12 15:26 »
我从Apache的官网下载了apache_2.0.56. 然后解压缩后使用./configure, ./make, ./make install 安装在/usr/local/apache2目录下。

Butterfly2020

  • 可愛的小學生
  • *
  • 文章數: 3
    • 檢視個人資料
Re: Apache Start Failure
« 回覆 #3 於: 2022-04-12 15:28 »
请问 'undefined symbol: ap_register_auth_provider' 到底是什么意思呢?缺少什么文件还是需要怎么操作呢?

twu2

  • 管理員
  • 俺是博士!
  • *****
  • 文章數: 5416
  • 性別: 男
    • 檢視個人資料
    • http://blog.teatime.com.tw/1
Re: Apache Start Failure
« 回覆 #4 於: 2022-04-13 09:13 »
就把 httpd.conf 中 mod_authn_file 那行拿掉.
你的 httpd.conf 是那兒來的? 以官方的說明 https://httpd.apache.org/docs/2.4/mod/mod_authn_file.html 來看, 這個是在 2.1 之後才有的.
你抓的是 2.0.56 ?
有這版本嗎? 我在官網的下載地方, 2.0.55 後面就跳到 2.0.58 了, 抓了最後的 2.0.65 回來看, 的確沒有這個模組.

有什麼原因一定要用這麼舊的版本嗎?