<rdf:RDF
    xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'
    xmlns:s='http://snipsnap.org/rdf/snip-schema#'
    xml:base='http://bliki.rimuhosting.com/rdf'>
    <s:Snip rdf:about='http://bliki.rimuhosting.com/rdf#knowledgebase/linux/webserver/apache/installing+and+using+mod_fastcgi'
         s:cUser='retep'
         s:oUser=''
         s:mUser='retep'>
        <s:name>knowledgebase/linux/webserver/apache/installing and using mod_fastcgi</s:name>
        <s:content>1 Installing mod_fastcgi&#xD;&#xA;&#xD;&#xA;Grab and extract the fastcgi tarball from http://www.fastcgi.com/dist/&#xD;&#xA;&#xD;&#xA;{code:none}&#xD;&#xA;VERSION=2.4.2&#xD;&#xA;wget http\://www.fastcgi.com/dist/mod_fastcgi-$VERSION.tar.gz&#xD;&#xA;tar xzf mod_fastcgi-$VERSION.tar.gz&#xD;&#xA;cd mod_fastcgi-$VERSION&#xD;&#xA;&#xD;&#xA;cp Makefile.AP2 Makefile&#xD;&#xA;apt-get install httpd-devel&#xD;&#xA;make top_dir=/etc/httpd&#xD;&#xA;make top_dir=/etc/httpd install&#xD;&#xA;{code}&#xD;&#xA;&#xD;&#xA;Add LoadModule fastcgi_module modules/mod_fastcgi.so to /etc/httpd/conf/httpd.conf&#xD;&#xA;&#xD;&#xA;Then restart apache with /etc/init.d/httpd restart.&#xD;&#xA;&#xD;&#xA;If you&apos;re finding your FastCGI application is exhausting your VPSs memory, try something like this in your httpd.conf:&#xD;&#xA;{code}&#xD;&#xA;FastCgiConfig -minProcesses 1 -maxProcesses 2 -processSlack 1&#xD;&#xA;{code}&#xD;&#xA;&#xD;&#xA;&#xD;&#xA;1 Resolving Permission Denied Errors&#xD;&#xA;&#xD;&#xA;Getting errors like this?&#xD;&#xA;{code:none}&#xD;&#xA;[Sun Oct 23 01:51:06 2005] [crit] (13)Permission denied: FastCGI: can&apos;t create (dynamic) server &quot;/var/www/html/test.fcgi&quot;: bind() failed [/var/log/httpd/fastcgi/dynamic/b6430285f5b9734eda3a466e975355c3]&#xD;&#xA;[Sun Oct 23 01:51:11 2005] [alert] [client 60.234.162.14] (13)Permission denied: FastCGI: failed to connect to (dynamic) server &quot;/var/www/html/test.fcgi&quot;: something is seriously wrong, any chance the socket/named_pipe directory was removed?, see the FastCgiIpcDir directive&#xD;&#xA;[Sun Oct 23 01:51:11 2005] [error] [client 60.234.162.14] FastCGI: incomplete headers (0 bytes) received from server &quot;/var/www/html/test.fcgi&quot;&#xD;&#xA;{code}&#xD;&#xA;&#xD;&#xA;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 &quot;FastCgiIpcDir /tmp&quot; in httpd.conf it resolves the problem.  The better solution is to probably figure out the permissions (symlink?) issue.</s:content>
        <s:mTime>2007-03-17 21:51:53.0</s:mTime>
        <s:cTime>2005-09-02 23:05:33.0</s:cTime>
        <s:comments
             rdf:type='http://www.w3.org/1999/02/22-rdf-syntax-ns#Bag'/>
        <s:snipLinks>
            <rdf:Bag>
                <rdf:li rdf:resource='http://bliki.rimuhosting.com/rdf#knowledgebase/linux/webserver/apache'/>
                <rdf:li rdf:resource='#snipsnap-search'/>
                <rdf:li rdf:resource='http://bliki.rimuhosting.com/rdf#knowledgebase/linux/miscapplications/ruby on rails'/>
                <rdf:li rdf:resource='#knowledgebase'/>
                <rdf:li rdf:resource='http://bliki.rimuhosting.com/rdf#knowledgebase/linux/webserver'/>
                <rdf:li rdf:resource='http://bliki.rimuhosting.com/rdf#knowledgebase/linux'/>
                <rdf:li rdf:resource='http://bliki.rimuhosting.com/rdf#knowledgebase/linux/misc/ajax autocomplete'/>
                <rdf:li rdf:resource='http://bliki.rimuhosting.com/rdf#knowledgebase/linux/mail/postfix with amavis and mysql'/>
                <rdf:li rdf:resource='#snipsnap-index'/>
                <rdf:li rdf:resource='http://bliki.rimuhosting.com/rdf#knowledgebase/'/>
                <rdf:li rdf:resource='http://bliki.rimuhosting.com/rdf#SnipSnap/config'/>
                <rdf:li rdf:resource='http://bliki.rimuhosting.com/rdf#knowledgebase/linux/webserver/proxy servers: squid'/>
                <rdf:li rdf:resource='http://bliki.rimuhosting.com/rdf#knowledgebase/linux/miscapplications/grub boot cd'/>
                <rdf:li rdf:resource='http://bliki.rimuhosting.com/rdf#knowledgebase/linux/networking/null route an attackers ip'/>
                <rdf:li rdf:resource='http://bliki.rimuhosting.com/rdf#knowledgebase/linux/miscapplications/postgresql notes'/>
                <rdf:li rdf:resource='http://bliki.rimuhosting.com/rdf#knowledgebase/linux/webserver/setting up plone'/>
                <rdf:li rdf:resource='http://bliki.rimuhosting.com/rdf#knowledgebase/linux/mail/dovecot compile'/>
                <rdf:li rdf:resource='http://bliki.rimuhosting.com/rdf#knowledgebase/linux/webserver/'/>
                <rdf:li rdf:resource='http://bliki.rimuhosting.com/rdf#knowledgebase/linux/misc/bash'/>
            </rdf:Bag>
        </s:snipLinks>
        <s:attachments
             rdf:type='http://www.w3.org/1999/02/22-rdf-syntax-ns#Bag'/>
    </s:Snip>
</rdf:RDF>
