Jump to content


Photo

Help needed in setting Apache to run CGI (on Win)


  • Please log in to reply
1 reply to this topic

#1 apet

apet
  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 12 July 2006 - 02:55 PM

Hi,

I have problems running cgi scripts on Apache server. cgi scripts are part of Bugzilla 2.22 installation on Apache 2.2. Perl version is ActivePerl 5.8.8.817 and OS is MS Win Server 2003.

cgi scripts run fine when using the first line #!... to find Perl interpreter, but when I add line

ScriptInterpreterSource registry

to Apache httpd.conf file in order to find Perl interpreter through the registry, it doesn't work, page is opening for a while and ends in the following error:

Premature end of script headers: index.cgi

I have

    AddHandler cgi-script .cgi
    Options +Indexes +ExecCGI
    DirectoryIndex index.cgi
    AllowOverride Limit

in Apache config file.

What should I do to make Apache find Perl through win registry?
Any help is greatly appreciated,

Anita


#2 apacheguy

apacheguy
  • Members
  • PipPipPip
  • Advanced Member
  • 108 posts

Posted 13 July 2006 - 11:35 PM

You probably have to specify the path in the registry where you have that setting.  Otherwise apache won't know where to look.  Also try google.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users