httpd: Syntax error on line 66 of /web/server/apache/conf/httpd.conf: Cannot load modules/mod_authn_file.so into server: /web/server/apache/modules/mod_authn_file.so: cannot open shared object file: No such file or directory問題
最近在嘗試用各種方式安裝LAMP,其中也遇到了許多的問題,特意將其記錄在博客中
在嘗試編譯安裝無數次Apache后,在網上不易間看到一個 configure的參數 --enable-shared=no --enable-static=yes
是2個關于鏈接庫文件的參數,看起來生成靜態的要不生成動態的好。所以我在配置APR,APR-UTIL,PCRE時都加上了
--enable-shared=no --enable-static=yes 。一切看起來都和往常一樣,但是在啟動Apache時卻出現了錯誤
說是找不到so文件,于是就進module看了一下
我曹,什么鬼我的so文件呢,摸索了半天(在此之前我已經無數次,花式搭建過LAMP),網上沒找到靠譜的。 在發現我在配置是加了
-enable-shared=no --enable-static=yes 于是就把他們去掉在重新編譯
好了,我親愛的so文件又回來了,雖然不明白這是為什么。等以后明白后會在此補充
經過網上查詢,動態庫文件通常以so結尾,靜態庫文件以*lib.a結尾在http.conf中默認是打開的so文件。
新聞熱點
疑難解答