在 FreeBSD 下让 APACHE2 支持 mod_fastcgi ☆海鹰原创作品☆
发表于:2007-05-25来源:作者:点击数:
标签:
安装过程如下: [quote:c498d1487f] 8:54[root]/usr/ports/www/mod_fastcgi==makeWITH_APACHE2=yesinstallclean 以下是编译代码 ===Installingformod_fastcgi-2.4.0 ===Generatingtemporarypackinglist ===Checkingifwww/mod_fastcgia lr eadyinstalled /bin
安装过程如下:
[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 a
lready 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 w
ant 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:
xiaohua 回复于:2003-12-12 16:05:08
|
呵呵,精华了!感谢版主 :lol: :mrgreen: :em06:
|
HonestQiao 回复于:2003-12-12 16:09:30
|
多多努力呀
|
xiaohua 回复于:2003-12-12 17:02:45
|
好 :D
|
hao_h 回复于:2004-02-16 15:18:02
|
:( :(
|
原文转自:http://www.ltesting.net
|