• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

FastCGI

J

JCXR

Guest
Hello,

I am running Plesk 8.1 on Fedora Core 4 and Apache 2.0.
I'd like to run the app a.fcg using fastcgi. I went to domain/setup/ and checked mod_fcgid support.
Next I did
cd /etc/httpd/conf.d/
and edited the file fcgid.conf
to add .fcg to
AddHandler fastcgi-script .fcgi .rb
which is now like this:
AddHandler fastcgi-script .fcgi .rb .fcg
I restarted Apache.
When I type url/a.fcg from a browser, I don't see the output of the cgi app but I am offered the "opportunity" to download that file a.fcg.
How could I get that right?
Many thanks in advance
 
I just enabled FastCGI for my domain, renamed my *.cgi scripts to *.fcgi and everything worked just fine. No configuration edited whatsoever. Did you try doing that?
 
Hello,

It works fine for .fcgi files. And it is true that there is no need to go outside Plesk. Here, I am trying to make FastCGI work for files ending with .fcg and possibly for other extensions. To some people, it matters that the extension of the app be something specific.
 
Every domain's httpd.include file has the following:

Code:
<IfModule mod_fcgid.c>
                AddHandler fcgid-script .fcgi
                Options +FollowSymLinks +ExecCGI
        </IfModule>

I have no AddHandler statement in my /etc/httpd/conf.d/fcgid.conf. You could try setting AddHandler fcgid-script .fcgi .rb .fcg (fcgid-script instead of fastcgi-script) in /etc/httpd/conf.d/fcgid.conf or you can probably override the list of extension's in a domain specific vhost.conf.
 
Back
Top