wget http://www.fastcgi.com/dist/mod_fastcgi-current.tar.gz tar -zxvf mod_fastcgi-current.tar.gz cd mod_fastcgi-2.4.6/ cp Makefile.AP2 Makefile make top_dir=/usr/lib64/httpd make install top_dir=/usr/lib64/httpd
Добавляем строчку в конфиг ApacheLoadModule fastcgi_module modules/mod_fastcgi.so
А также указываем путь обработки php
1 2 3 4 5 6 7
# Associate an alias mapping for the 'fake' fcgi call. Alias /php5.fcgi /path/to/example.com/public_html/php5.fcgi # Assign the 'fake' fcgi to call to an 'external' FastCGI Server FastCGIExternalServer /path/to/example.com/public_html/php5.fcgi -flush -host 127.0.0.1:9000 # Create the handler mappings to associate PHP files with a call to '/php5.fcgi' AddType application/x-httpd-fastphp5 .php Action application/x-httpd-fastphp5 /php5.fcgi