FastCGI test?

Just moved to a 1and1 managed server in which FastCGI is enabled.

But I’m having problems getting Movable Type to run under fastcgi - which has never been a problem before, even on shared hosts.

Is there a ‘hello world’-type test for fastcgi - so I can check if it is enabled?

I found one test script code from Google. Below is the test code:

#!/usr/bin/perl

use FCGI;
$cnt = 0;

while (FCGI::accept() >= 0)
{
print ("Content-type: text/html\r
\r
“);
print (”<head>
<title>FastCGI Demo Page (perl)</title>
</head>
“);
print (”<h1>FastCGI Demo Page (perl)</h1>
");
print ("This is coming from a FastCGI server.
<BR>
");
print ("Running on <EM>$ENV{USER}</EM> to <EM>$ENV{REMOTE_HOST}</EM>
<BR>
");
$cnt++;
print ("This is connection number $cnt
");
}

Reference URL: http://snippets.dzone.com/posts/show/288

Thanks!

Thanks.

I’d seen and tried that before - but had problems.

Adding to the .htaccess seems to fix things:

AddHandler fastcgi-script .fcgi .cgi
Options +FollowSymLinks +ExecCGI