日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 运维知识 > linux >内容正文

linux

linux apache fcgi,编译安装apache2.2对应的mod_proxy_fcgi.so模块步骤,因为使用apache--phpfpm 需要这个...

發(fā)布時間:2024/9/18 linux 35 豆豆
生活随笔 收集整理的這篇文章主要介紹了 linux apache fcgi,编译安装apache2.2对应的mod_proxy_fcgi.so模块步骤,因为使用apache--phpfpm 需要这个... 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

本文將要為您介紹的是編譯安裝apache2.2對應(yīng)的mod_proxy_fcgi.so模塊步驟,因?yàn)槭褂胊pache--phpfpm 需要這個,具體操作過程:

編譯安裝apache2.2對應(yīng)的mod_proxy_fcgi.so模塊步驟,因?yàn)槭褂胊pache--phpfpm 需要這個

#mod-proxy-fcgi-master 模塊步驟

[root@iZ25ja2kaemZ apache]# wget https://github.com/ceph/mod-proxy-fcgi/archive/master.zip

unzip master.zip

cd mod-proxy-fcgi-master

autoconf;

./configure;

sed -i "s>top_srcdir=>top_srcdir=.>" Makefile;

mkdir -p build;

ln -sf /usr/share/apache2/build/instdso.sh build/instdso.sh;

make;

make install;

make clean;

#執(zhí)行完成后,發(fā)現(xiàn)已經(jīng)生成對應(yīng)模塊so,直接在http引入就可以。直接加載模塊,不用寫路徑。看下面make install中顯示 模塊生成在 /usr/lib64/httpd/modules/,

#進(jìn)入目錄,查看有 -rwxr-xr-x 1 root root 74483 Jun 5 00:36 mod_proxy_fcgi.so 該文件應(yīng)該放到apache的模塊目錄下,在apache安裝目錄/modules目錄中

#一般yum安裝的apache安裝目錄為/etc/httpd,如果是64位系統(tǒng),會自動生成一個軟連接到/usr/lib64/httpd/modules/,因此我們直接在apache配置文件加載模塊就好

#在apache的httpd.conf中加入 LoadModule proxy_fcgi_module modules/mod_proxy_fcgi.so

---下面是安裝過程中的部分代碼------------------------------------------------

[root@iZ25ja2kaemZ mod-proxy-fcgi-master]# ./configure;

checking for gcc... gcc

checking for C compiler default output file name... a.out

checking whether the C compiler works... yes

checking whether we are cross compiling... no

checking for suffix of executables...

checking for suffix of object files... o

checking whether we are using the GNU C compiler... yes

checking whether gcc accepts -g... yes

checking for gcc option to accept ISO C89... none needed

checking for apxs... /usr/sbin/apxs

configure: creating ./config.status

config.status: creating Makefile

[root@iZ25ja2kaemZ mod-proxy-fcgi-master]# make;

/usr/lib64/apr-1/build/libtool --silent --mode=compile gcc -pthread -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -Wformat-security -fno-strict-aliasing -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -I/usr/include/httpd -I. -I/usr/include/apr-1 -prefer-pic -c mod_proxy_fcgi.c && touch mod_proxy_fcgi.slo

/usr/lib64/apr-1/build/libtool --silent --mode=compile gcc -pthread -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -Wformat-security -fno-strict-aliasing -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -I/usr/include/httpd -I. -I/usr/include/apr-1 -prefer-pic -c util_fcgi.c && touch util_fcgi.slo

/usr/lib64/apr-1/build/libtool --silent --mode=link gcc -pthread -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -Wformat-security -fno-strict-aliasing -Wl,-z,relro -o mod_proxy_fcgi.la -rpath /usr/lib64/httpd/modules -module -avoid-version mod_proxy_fcgi.lo util_fcgi.lo

[root@iZ25ja2kaemZ mod-proxy-fcgi-master]# make install;

make[1]: Entering directory `/root/apache/mod-proxy-fcgi-master'

/usr/lib64/apr-1/build/libtool --silent --mode=install cp mod_proxy_fcgi.la /usr/lib64/httpd/modules/

make[1]: Leaving directory `/root/apache/mod-proxy-fcgi-master'

/usr/lib64/apr-1/build/libtool --silent --mode=install cp mod_proxy_fcgi.la /usr/lib64/httpd/modules/

[root@iZ25ja2kaemZ mod-proxy-fcgi-master]# make clean;

make[1]: Entering directory `/root/apache/mod-proxy-fcgi-master'

rm -f *.o *.lo *.slo *.obj *.a *.la

rm -rf .libs

make[1]: Leaving directory `/root/apache/mod-proxy-fcgi-master'

rm -f *.o *.lo *.slo *.la

[root@iZ25ja2kaemZ mod-proxy-fcgi-master]#編譯安裝apache2.2對應(yīng)的mod_proxy_fcgi.so模塊步驟,因?yàn)槭褂胊pache--phpfpm 需要這個就為您介紹到這里,感謝您關(guān)注懶咪學(xué)編程c.lanmit.com.

本文地址:https://c.lanmit.com/czxt/Linux/119460.html

總結(jié)

以上是生活随笔為你收集整理的linux apache fcgi,编译安装apache2.2对应的mod_proxy_fcgi.so模块步骤,因为使用apache--phpfpm 需要这个...的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。