how to run perl script

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

Re: how to run perl script

Postby spanish26 » 02. February 2009 08:19

am using windows xp, yes am getting error 404
spanish26
 
Posts: 21
Joined: 01. February 2009 12:16

Re: how to run perl script

Postby Izzy » 02. February 2009 08:27

Read my last post again and answer all the questions please! for example:
Izzy wrote:What exactly do you type in the address bar of your browser to try and load the perl script?
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Re: how to run perl script

Postby spanish26 » 02. February 2009 08:34

http://localhost/cgi-bin/script.cgi ,because i saved the file in the cgi-bin like you said earlier
spanish26
 
Posts: 21
Joined: 01. February 2009 12:16

Re: how to run perl script

Postby Izzy » 02. February 2009 08:42

Move the cgi file from the cgi-bin to the htdocs folder and then type http://localhost/script.cgi and paste back only that part of the error.log file that relates to that attempt and please do clear your browser's cache first.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Re: how to run perl script

Postby spanish26 » 02. February 2009 09:11

Hello,

This is the error i am getting [Mon Feb 02 16:09:49 2009] [error] [client 127.0.0.1] File does not exist: C:/Program Files/xampp/htdocs/xampp/htdocs
spanish26
 
Posts: 21
Joined: 01. February 2009 12:16

Re: how to run perl script

Postby Izzy » 02. February 2009 09:19

Tell me what you see when you go to http://localhost please?
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Re: how to run perl script

Postby spanish26 » 02. February 2009 09:22

Its the inetrface for XAMPP with alll the features e,g :

Welcome to XAMPP for Windows Version 1.6.6a !
Congratulations:
You have successfully installed XAMPP on this system!

Now you can start using Apache and Co. You should first try »Status« on the left navigation to make sure everything works fine.

For OpenSSL support please use the test certificate with https://127.0.0.1 or https://localhost

For this release a special thanks to Uwe Steinmann for his excellent development and compilation of all current "Special" modules!

Good luck, Kay Vogelgesang + Kai 'Oswald' Seidler
spanish26
 
Posts: 21
Joined: 01. February 2009 12:16

Re: how to run perl script

Postby Izzy » 02. February 2009 09:31

That's fine.

Now tell me what you see when you go to http://localhost/cgi-bin/perltest.cgi please.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Re: how to run perl script

Postby spanish26 » 02. February 2009 09:34

Ok, this is what is displayed : GCI with MiniPerl
CGI with MiniPerl is ready ...

Thanks
spanish26
 
Posts: 21
Joined: 01. February 2009 12:16

Re: how to run perl script

Postby Izzy » 02. February 2009 09:40

Your XAMPP installation world appear to be fine.

Then your scrip.cgi is at fault or you need to install the perl addon for it to work.

Follow the instructions to install it but first delete the bin folder in the perl folder and install to the perl folder when asked - run the setup_xampp.bat file 2 times and answer the questions when asked - it is very easy to install.

Then try your script and the perltest.cgi again but now you will also have a Perl menu item in the XAMPP Welcome page you get when going to http://localhost.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Re: how to run perl script

Postby spanish26 » 02. February 2009 09:54

Please sorry for this question i know it looks lame, but i have deleted the bin folder in the perl folder, you said i should install to to the perl folder when asked - run the setup_xampp 2times and the qusetion.
when i run the bat file i only see a statement saying sorry nothing to do.... press any key to continue.
Please how do i install to the perl folder and how to see the question, sorry please
spanish26
 
Posts: 21
Joined: 01. February 2009 12:16

Re: how to run perl script

Postby Izzy » 02. February 2009 09:58

You download the perl addon from the XAMPP for Windows home page - the same place you found XAMPP to download. Look for the addon link.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Re: how to run perl script

Postby spanish26 » 02. February 2009 10:22

I have downloaded the perl addon : (Mod) Perl Adddon 5.10.0(Apache 2.2.11) when i try to save the file i see a a warnig : Cannot found Apachr httpd2.2.11 for mod_perl(recommended)! Continue, when i click on yes, it doesnt go the the next step
spanish26
 
Posts: 21
Joined: 01. February 2009 12:16

Re: how to run perl script

Postby Izzy » 02. February 2009 10:30

I have never used the installer version for anything XAMPP related so I have no idea what is going on.

I suggest you dump the installer version and download the EXE (7zip) self extracting version.

Double click on the file and when asked, extract to C:\Program Files\xampp\perl folder.

When asked, overwrite all files.

Then run the setup-xampp.bat file 2 times and answer the questions.
If you don't need mod_perl then select not to install it when asked in the bat file.

Then follow my other post re testing the perl install.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Re: how to run perl script

Postby spanish26 » 02. February 2009 10:50

Thank very much, i have extracted the files to the perl folder, C://Program Files/xampp/perl, but now i dont know if its the right part, but this is the batch file i am running ' setup_xampp' located in the C:\Program Files\xampp path, and when i run it it shows " sorry, but .. nothing to do! press any key to continue" please is this the same batch file you are talking about, or where can i find the particular one...please

Thank you
spanish26
 
Posts: 21
Joined: 01. February 2009 12:16

PreviousNext

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 39 guests