Perl Module

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

Perl Module

Postby PH3N0M » 04. March 2008 17:42

Hi, I had a suggestion for a better place for XAMPP to install Perl. I am sure this has been suggested before but C:/usr/bin/perl is the better idea than C:/xampp/perl. I personally created a usr in C:/ folder and moved my perl folder from C:/xampp/perl to C:/usr and it helped me a lot.

In Perl/CGI, you have to do
Code: Select all
#!/usr/bin/perl
for Linux and most other servers on the web, so what you would have to do with XAMPP is
Code: Select all
#!/xampp/perl
which makes things a whole lot harder when you're using XAMPP for testing code on your home computer just to upload it to your actual web server later as I do.

Just a suggestion, maybe even make an option for "Advanced" installation so you can define where you want Perl and other mods installed. I personally think all but Perl's location is fine, but I would hope that will be a future option.

Thanks for your time,

Josh [PH3N0M][/code]
PH3N0M
 
Posts: 1
Joined: 04. March 2008 17:37

Postby Joe_Austin » 20. March 2008 23:24

I'm curious, did you change anything else about the perl configuration?

I tried setting up a new C:/usr/bin/perl/ folder with perl.exe in it and then used the #!/usr/bin/perl shebang line but it wouldn't work until I used
#!/usr/bin/perl/perl.exe
Joe_Austin
 
Posts: 21
Joined: 14. March 2008 21:55

Postby Milligan » 21. March 2008 00:08

Last edited by Milligan on 17. July 2008 05:01, edited 1 time in total.
Milligan
 
Posts: 136
Joined: 03. March 2008 06:23

Postby Joe_Austin » 21. March 2008 00:24

So #!/usr/bin/perl will tranlate to c:/usr/bin/perl.exe (if xampp is on c: drive) ?

I tried that setup but I get a "server - can't start child process" error.

I set up a folder structure like (my xampp is on E drive) E:/usr/bin/perl/
with perl.exe in both the bin folder and the perl folder, but #!/usr/bin/perl still gave me an error.
Joe_Austin
 
Posts: 21
Joined: 14. March 2008 21:55

Postby Milligan » 21. March 2008 00:46

Last edited by Milligan on 17. July 2008 05:02, edited 1 time in total.
Milligan
 
Posts: 136
Joined: 03. March 2008 06:23

Postby Joe_Austin » 21. March 2008 02:06

I tested the shebang #!/usr/bin/perl.exe on the local and remote server and it is working on both.

Looks like sendmail needs some .ini work to be functional locally however.
Joe_Austin
 
Posts: 21
Joined: 14. March 2008 21:55

Postby Milligan » 21. March 2008 02:32

Last edited by Milligan on 17. July 2008 05:03, edited 1 time in total.
Milligan
 
Posts: 136
Joined: 03. March 2008 06:23

Postby Nobbie » 21. March 2008 14:56

Joe_Austin wrote:I tested the shebang #!/usr/bin/perl.exe on the local and remote server and it is working on both.


Maybe there is a link from /usr/bin/perl to /usr/bin/perl.exe on your linux machine? And if not - that might be a solution to everyone how to run cgi with a unique shebang line.

I am not sure if PHP Linux Version really ignores the extension .exe (as you figured out). But creating the appropriate link will do the trick anyway.
Nobbie
 
Posts: 13170
Joined: 09. March 2008 13:04

Postby Milligan » 21. March 2008 22:58

Last edited by Milligan on 17. July 2008 05:04, edited 1 time in total.
Milligan
 
Posts: 136
Joined: 03. March 2008 06:23

Postby Nobbie » 21. March 2008 23:44

Yes of course, this is the Xampp Windows Forum. But the question was how to establish unique shebang lines between different Xampp versions - and there is of course a Linux version and the shebang line shown by "PH3N0M" is a typical Linux-Shebang-Line.

Dont worry if you have no clue about linux and dont understand the meaning of links and so on - thats ok for me. But maybe other readers with more linux knowledge may be more interested in this solution than you are. And of course i dont open a new thread in the linux forum, as it is not a good idea to have several threads about the same problem.
Nobbie
 
Posts: 13170
Joined: 09. March 2008 13:04

Postby Milligan » 22. March 2008 00:56

Last edited by Milligan on 17. July 2008 05:05, edited 1 time in total.
Milligan
 
Posts: 136
Joined: 03. March 2008 06:23

Postby Nobbie » 22. March 2008 15:06

>So I will not be replying to you again,

One post to late - you behave like a forum officer and there is no need for a selfish forums policemen. There is no use in attacking forum members that simply helps other member.

I dont understand what you mean by "scory" thing, but i feel that i am not the first one being attacked from an impolite guy. I never attack people for giving help. This is NOT your forum and you are neither admin nor moderator. We call people like you "troll", therefore *plonk*
Nobbie
 
Posts: 13170
Joined: 09. March 2008 13:04


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 89 guests