[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Another Perl Problem

Nathan R Heagy schrieb:
> I have only had pi3web for a few hours, and already it has saved me that
> much time in revising an SSI design. But, now I'm trying to get a PERL - CGI
> script working, and am having problems (surprise!). From the command line I
> can successfully run hello.pl with the command
> perl c:\progra~1\pi3web\cgi-bin\hello.pl
> but when I use http://localhost/cgi-bin/hello.pl (all the rest of localhost
> works, incl SSI) I get this error:
> 500 Internal Server Error
> The server encountered an internal error while processing this request.
> The following error messages were logged during this request:
> [Sat Jun 06 03:12:16 1998 GMT] CGI: Error reading response headers from CGI
> program.
> Start of command line is 'perl C:\PROGRAM FILES\PI3WEB\Cgi-Bin\hello.pl '.
^^^^^ Hi,

My idea was - compare:
perl c:\progra~1\pi3web ...

A space in cmd-line => 2 parameters to perl interpreter =>error
The solutions:

Change Config.Pi3:
Search all deposits of:
  CommandLineByExt .pl="perl %p%q"
Change into:
  CommandLineByExt .pl="perl \"%p\"%q"
  CommandLineByExt .cgi="perl %p%q"
Change into:
  CommandLineByExt .cgi="perl \"%p\"%q"

I've tested it with Winperl32 from command line and with Pi3Web and it works.

Try to move P3Web into a directory without spaces and reconfigure Config.Pi3.

> Any ideas? I have checked my congif.pi3 and it seems ok, it already has .cgi
> configured for perl (that was comming). when I change the extension to .cgi
> I get the same error.
> Any help is greatly appreciated.
Hope this helps.

> Nathan R Heagy
> -- -- --
> Building Quality Web Sites
> http://heagy.com

with regards

Holger 'Zimpel' Zimmermann    Contact me:
Wendishain                    tel./fax company: on demand
Germany                       tel./fax private: on demand
homepage: http://home.t-online.de/home/zimpel@t-online.de
web server: surf to it from my homepage (online every
            Sunday 20:00-24:00 GMT, start 1. Jule 1998)
e-Mail:     zimpel@t-online.de