How to use my own PERL?

Problems with the Windows version of XAMPP, questions, comments, and anything related.

How to use my own PERL?

Postby Guest » 30. September 2003 21:36

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.
Guest
 

Postby Kristian Marcroft » 30. September 2003 21:46

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
User avatar
Kristian Marcroft
AF Moderator
 
Posts: 2962
Joined: 03. January 2003 12:08
Location: Diedorf

Postby Guest » 30. September 2003 22:22

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.
Guest
 

Postby nemesis » 30. September 2003 22:32

under linux i think you can use ls for a symlink that point all scripts to your perl
Ubuntu 8.04 | SMP P3 1.4 GHz | 6 GByte RegECC | 74 GByte Seagate 15k5 system | 3Ware 9550SXU-4LP with 4x 500 GByte Seagate ES2 Raid 10 data | StoreCase DE400 | PX-230A | Intel Pro/1000MT Dual PCI-X
User avatar
nemesis
AF Moderator
 
Posts: 999
Joined: 29. December 2002 13:14
Location: Ingolstadt

Postby Kristian Marcroft » 02. October 2003 11:10

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
User avatar
Kristian Marcroft
AF Moderator
 
Posts: 2962
Joined: 03. January 2003 12:08
Location: Diedorf

Postby nemesis » 02. October 2003 12:10

oh, sorry, my mistake
Under Win(NT) System-> Extended-> environment variable->
change the systemvariable under Path C:\Perl\bin\;
Ubuntu 8.04 | SMP P3 1.4 GHz | 6 GByte RegECC | 74 GByte Seagate 15k5 system | 3Ware 9550SXU-4LP with 4x 500 GByte Seagate ES2 Raid 10 data | StoreCase DE400 | PX-230A | Intel Pro/1000MT Dual PCI-X
User avatar
nemesis
AF Moderator
 
Posts: 999
Joined: 29. December 2002 13:14
Location: Ingolstadt


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 39 guests