Shadow2531
[H]ard|Gawd
- Joined
- Jun 13, 2003
- Messages
- 1,670
When installing perl on Windows, I usually install to c:\usr so that perl.exe is in c:\usr\bin and I install python to c:\usr\bin so that python.exe is in c:\usr\bin.
That usually solves all problems when using #!/usr/bin/perl and #/usr/bin/python.
However this time I kept the default directory of c:\perl when installing ActivePerl. Too many build scripts look for perl files in c:\perl and I found myself editing them too much to point to c:\usr\bin.
When perl and python are installed to the default directories of c:\perl and c:\python repspectively, apache cannot find perl.exe and python.exe if you use a *nix stile shebang line.
I solved the problem by adding ScriptInterpreterSource registry to httpd.conf so apache would look to the WinXP registry to find the paths. That way I can use *nix style shebang lines.
However, this does not help for the cgi extension. With the cgi extension I have to put #!/perl/bin/perl and #!/python/python or apache cannot find the interpreters.
Without installing perl and python to c:\usr\bin , how can I get the cgi extension to work right with BOTH #!/usr/bin/perl and #!/usr/bin/python ?
BTW, the paths to perl and python are set.
The problem does not exist with SSI and the shtml extension, just the cgi extension.
This is with Apache2
Thanks.
That usually solves all problems when using #!/usr/bin/perl and #/usr/bin/python.
However this time I kept the default directory of c:\perl when installing ActivePerl. Too many build scripts look for perl files in c:\perl and I found myself editing them too much to point to c:\usr\bin.
When perl and python are installed to the default directories of c:\perl and c:\python repspectively, apache cannot find perl.exe and python.exe if you use a *nix stile shebang line.
I solved the problem by adding ScriptInterpreterSource registry to httpd.conf so apache would look to the WinXP registry to find the paths. That way I can use *nix style shebang lines.
However, this does not help for the cgi extension. With the cgi extension I have to put #!/perl/bin/perl and #!/python/python or apache cannot find the interpreters.
Without installing perl and python to c:\usr\bin , how can I get the cgi extension to work right with BOTH #!/usr/bin/perl and #!/usr/bin/python ?
BTW, the paths to perl and python are set.
The problem does not exist with SSI and the shtml extension, just the cgi extension.
This is with Apache2
Thanks.