linux apache fcgi,编译安装apache2.2对应的mod_proxy_fcgi.so模块步骤,因为使用apache--phpfpm 需要这个...
本文將要為您介紹的是編譯安裝apache2.2對(duì)應(yīng)的mod_proxy_fcgi.so模塊步驟,因?yàn)槭褂胊pache--phpfpm 需要這個(gè),具體操作過程:
編譯安裝apache2.2對(duì)應(yīng)的mod_proxy_fcgi.so模塊步驟,因?yàn)槭褂胊pache--phpfpm 需要這個(gè)
#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)生成對(duì)應(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),會(huì)自動(dòng)生成一個(gè)軟連接到/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對(duì)應(yīng)的mod_proxy_fcgi.so模塊步驟,因?yàn)槭褂胊pache--phpfpm 需要這個(gè)就為您介紹到這里,感謝您關(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)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 戴尔电脑 linux ssh,使用SSH
- 下一篇: 传输文件更方便了传输文件更方便了什么意思