[ start | index | login ]
start > knowledgebase > linux > webserver > apache > installing and using mod_fastcgi

installing and using mod_fastcgi

Created by retep. Last edited by retep, one year and 174 days ago. Viewed 3,798 times. #6
[diff] [history] [edit] [rdf]
labels
attachments

Installing mod_fastcgi

Grab and extract the fastcgi tarball from >>http://www.fastcgi.com/dist/

VERSION=2.4.2
wget http://www.fastcgi.com/dist/mod_fastcgi-$VERSION.tar.gz
tar xzf mod_fastcgi-$VERSION.tar.gz
cd mod_fastcgi-$VERSION

cp Makefile.AP2 Makefile apt-get install httpd-devel make top_dir=/etc/httpd make top_dir=/etc/httpd install

Add LoadModule fastcgi_module modules/mod_fastcgi.so to /etc/httpd/conf/httpd.conf

Then restart apache with /etc/init.d/httpd restart.

If you're finding your FastCGI application is exhausting your VPSs memory, try something like this in your httpd.conf:

FastCgiConfig -minProcesses 1 -maxProcesses 2 -processSlack 1

Resolving Permission Denied Errors

Getting errors like this?

[Sun Oct 23 01:51:06 2005] [crit] (13)Permission denied: FastCGI: can't create (dynamic) server "/var/www/html/test.fcgi": bind() failed [/var/log/httpd/fastcgi/dynamic/b6430285f5b9734eda3a466e975355c3]
[Sun Oct 23 01:51:11 2005] [alert] [client 60.234.162.14] (13)Permission denied: FastCGI: failed to connect to (dynamic) server "/var/www/html/test.fcgi": something is seriously wrong, any chance the socket/named_pipe directory was removed?, see the FastCgiIpcDir directive
[Sun Oct 23 01:51:11 2005] [error] [client 60.234.162.14] FastCGI: incomplete headers (0 bytes) received from server "/var/www/html/test.fcgi"

I found one mail (>>http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/83308?help-en) about the problem. If I set "FastCgiIpcDir /tmp" in httpd.conf it resolves the problem. The better solution is to probably figure out the permissions (symlink?) issue.

请以发表评论身份登录
Powered by snipsnap.org Found a mistake in a howto? Let us know via an email to p.blikibugs at rimuhosting com.