技術討論區 > Linux 討論版
Apache Start Failure
(1/1)
Butterfly2020:
各位好,
我卸载了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:
請問這個新的 Apache 是如何安裝起來的呢?
Butterfly2020:
我从Apache的官网下载了apache_2.0.56. 然后解压缩后使用./configure, ./make, ./make install 安装在/usr/local/apache2目录下。
Butterfly2020:
请问 'undefined symbol: ap_register_auth_provider' 到底是什么意思呢?缺少什么文件还是需要怎么操作呢?
twu2:
就把 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 回來看, 的確沒有這個模組.
有什麼原因一定要用這麼舊的版本嗎?
導覽
[0] 文章列表
前往完整版本