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@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx