安装fastcgi时发现 yum search mod_fastcgi 没有。那么只有编译安装mod_fastcgi了
逐
cd /usr/local/vipcloud/src/
wget http://www.fastcgi.com/dist/mod_fastcgi-current.tar.gz
tar -zxvf mod_fastcgi-current.tar.gz
cd mod_fastcgi-2.4.6
more README 然后发现需要看INSTALL.AP2
继续
more INSTALL.AP2 看到
*NIX
====
$ cd
$ cp Makefile.AP2 Makefile
$ make
$ make install
If your Apache2 installation isn't in /usr/local/apache2, then
set the top_dir variable when running make (or edit the
Makefile), e.g.
$ make top_dir=/opt/httpd/2.0.40
Add an entry to httpd.conf like this:
LoadModule fastcgi_module modules/mod_fastcgi.so 看第7行,需要指定apache2的安装目录
由于apache是yum安装的 没有特定的安装目录,浪个办?想到反正这里是需要module的目录吧,于是将
cp Makefile.AP2 Makefile
vim Makfiel
把top_dir=替换为
top_dir = /usr/lib64/httpd 然后 make && make install
报错。
看来不能直接这样。
度娘之。
度娘出来的都是编译安装apache的fastcgi安装
google之
http://www.cyberciti.biz/tips/rhel-centos-fedora-apache2-fastcgi-php-configuration.html