Page 1 of 1

How to use my own PERL?

PostPosted: 30. September 2003 21:36
by Guest
I'm new to web-server and the "httpd.conf" in apache. However, I would like to use my own PERL instead of the one installed with WAMPP.

I've read/search through the whole httpd.conf and found that there are no pathway to PERL. (There are some pathways to PHP, PhpMyadmin, etc).

How do I teach apache to use my own PERL for running .cgi?

Thx.

PostPosted: 30. September 2003 21:46
by Kristian Marcroft
Hi,

in the first line of each cgi or perl Script it tells your Script which perl to use...
for example #!C:/xampp/perl/perl.exe
and for linux it would be #!/usr/bin/perl...

All you have to do, is to Adjust this First line to your Perl.

So long
KriS

PostPosted: 30. September 2003 22:22
by Guest
Yup, sure it is. However, it is not the best solution for using my own PERL, as I need to change the first line of every .cgi file.

Is there way to change the setting in apache to locate my own PERL, and so I dont need to change the first lin file by file?

thx.

PostPosted: 30. September 2003 22:32
by nemesis
under linux i think you can use ls for a symlink that point all scripts to your perl

PostPosted: 02. October 2003 11:10
by Kristian Marcroft
Hi,

Anonymous wrote:Is there way to change the setting in apache to locate my own PERL, and so I dont need to change the first lin file by file?

Not that I know of, not on a MS Win System.


nemesis wrote:under linux i think you can use ls for a symlink that point all scripts to your perl

But he has a Win System :)

Win vs. Linux -> 2 different Systems, you should know best :P

So long
KriS

PostPosted: 02. October 2003 12:10
by nemesis
oh, sorry, my mistake
Under Win(NT) System-> Extended-> environment variable->
change the systemvariable under Path C:\Perl\bin\;