安装过程如下:
[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: