You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Michael Rode <in...@pacht-bungalow-thailand.de> on 2005/03/01 11:51:11 UTC

[users@httpd] Apache Problem - automatic change of the location of the Perl interpreter

Hello,

I'm running Apache under the XAMP Server enviroment on Windows XP. I'm 
wrote a big Perl script with many seperate files, my wish is to run the 
Perl Script offline same as online without changing always the location of 
the Perl interpreter of the first line from the Perl script for example 
"#!/usr/bin/perl"

But under the XAMP Server enviroment the location of the Perl interpreter 
is "#!c:\xampp\perl\bin\perl.exe"

Now I search already long for a solution to force Apache for the correct 
location of Perl, without change it in my Perl scripts. I tried to config 
the Apache httpd.conf I open for example a Virtual Server in this way 
below, but it don't work:

############ Virtual Host Datenfeld #############

NameVirtualHost 127.0.0.1
<VirtualHost 127.0.0.1>
    ServerName datenfeld
    DocumentRoot c:/xampp/htdocs/datenfeld
    ScriptAlias /cgi-bin/ c:/xampp/htdocs/datenfeld/cgi-bin/
    ErrorLog logs/datenfeld-error_log
    CustomLog logs/datenfeld-access_log common

<Directory c:/xampp/htdocs/datenfeld/cgi-bin>
    AddHandler cgi-script .cgi .pl
    SetHandler cgi-script
    Action cgi-script c:/xampp/perl/bin/perl.exe
    AllowOverride All
    Order allow,deny
    Allow from all
</Directory>
</VirtualHost>

######################################################

The Window Server OmniHttpd have no problems however the location of Perl 
interpreter is called.

I would be very glad if someone can help me to solve the problem, that I 
don't have always to change the location of the Perl interpreter in the 
first line of my Perl script. Really I don't find any solution over the 
Internet...

Thank you very much in advance!!!!

Best regards,
Michael Rode



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Apache Problem - automatic change of the location of the Perl interpreter

Posted by Joshua Slive <js...@gmail.com>.
On Tue, 01 Mar 2005 11:51:11 +0100, Michael Rode
<in...@pacht-bungalow-thailand.de> wrote:
> Hello,
> 
> I'm running Apache under the XAMP Server enviroment on Windows XP. I'm
> wrote a big Perl script with many seperate files, my wish is to run the
> Perl Script offline same as online without changing always the location of
> the Perl interpreter of the first line from the Perl script for example
> "#!/usr/bin/perl"
> 
> But under the XAMP Server enviroment the location of the Perl interpreter
> is "#!c:\xampp\perl\bin\perl.exe"

See the ScriptInterpreterSource directive.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org