在 FreeBSD 下让 APACHE2 支持 mod_fastcgi ☆海鹰原创作品☆

王朝厨房·作者佚名  2007-01-05
窄屏简体版  字體: |||超大  

安装过程如下:

[quote:c498d1487f]

8:54 [root] /usr/ports/www/mod_fastcgi ==>make WITH_APACHE2=yes install clean

以下是编译代码

===> Installing for mod_fastcgi-2.4.0

===> Generating temporary packing list

===> Checking if www/mod_fastcgi already installed

/bin/sh /usr/local/share/apache2/build/libtool --silent --mode=install cp mod_fastcgi.la /usr/local/libexec/apache2/

----------------------------------------------------------------------

Libraries have been installed in:

/usr/local/libexec/apache2

If you ever happen to want to link against installed libraries

in a given directory, LIBDIR, you must either use libtool, and

specify the full pathname of the library, or use the `-LLIBDIR'

flag during linking and do at least one of the following:

- add LIBDIR to the `LD_LIBRARY_PATH' environment variable

during execution

- add LIBDIR to the `LD_RUN_PATH' environment variable

during linking

- use the `-Wl,--rpath -Wl,LIBDIR' linker flag

See any operating system documentation about shared libraries for

more information, such as the ld(1) and ld.so(8) manual pages.

----------------------------------------------------------------------

install -c -o root -g wheel -m 444 /usr/ports/www/mod_fastcgi/work/mod_fastcgi-2.4.0/docs/LICENSE.TERMS /usr/local/share/doc/mod_fastcgi

install -c -o root -g wheel -m 444 /usr/ports/www/mod_fastcgi/work/mod_fastcgi-2.4.0/docs/mod_fastcgi.html /usr/local/share/doc/mod_fastcgi

************************************************************

* You need to add following lines to your apache *

* configuration file. and restart it ! *

* *

* LoadModule fastcgi_module libexec/apache2/mod_fastcgi.so *

* AddHandler fastcgi-script fcgi fcgi fpl *

* *

************************************************************

===> Registering installation for mod_fastcgi-2.4.0

[/quote:c498d1487f]

完后要在 /usr/local/etc/apache2/httpd.conf 增加两句(其实就是上面的提示):

[quote:c498d1487f]

LoadModule fastcgi_module libexec/apache2/mod_fastcgi.so

AddHandler fastcgi-script fcgi fcgi fpl

[/quote:c498d1487f]

然后 httpd -t 看是否 OK

OK,一切已经完成,重启你的 APACHE2 就行了

:mrgreen: :mrgreen: 这就是 FreeBSD ports 的魅力 :evil: :twisted:

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
 
© 2005- 王朝網路 版權所有 導航