Page 2 of 3

Re: how to run perl script

PostPosted: 02. February 2009 08:19
by spanish26
am using windows xp, yes am getting error 404

Re: how to run perl script

PostPosted: 02. February 2009 08:27
by Izzy
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?

Re: how to run perl script

PostPosted: 02. February 2009 08:34
by spanish26
http://localhost/cgi-bin/script.cgi ,because i saved the file in the cgi-bin like you said earlier

Re: how to run perl script

PostPosted: 02. February 2009 08:42
by Izzy
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.

Re: how to run perl script

PostPosted: 02. February 2009 09:11
by spanish26
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

Re: how to run perl script

PostPosted: 02. February 2009 09:19
by Izzy
Tell me what you see when you go to http://localhost please?

Re: how to run perl script

PostPosted: 02. February 2009 09:22
by spanish26
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

Re: how to run perl script

PostPosted: 02. February 2009 09:31
by Izzy
That's fine.

Now tell me what you see when you go to http://localhost/cgi-bin/perltest.cgi please.

Re: how to run perl script

PostPosted: 02. February 2009 09:34
by spanish26
Ok, this is what is displayed : GCI with MiniPerl
CGI with MiniPerl is ready ...

Thanks

Re: how to run perl script

PostPosted: 02. February 2009 09:40
by Izzy
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.

Re: how to run perl script

PostPosted: 02. February 2009 09:54
by spanish26
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

Re: how to run perl script

PostPosted: 02. February 2009 09:58
by Izzy
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.

Re: how to run perl script

PostPosted: 02. February 2009 10:22
by spanish26
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

Re: how to run perl script

PostPosted: 02. February 2009 10:30
by Izzy
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.

Re: how to run perl script

PostPosted: 02. February 2009 10:50
by spanish26
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