how to run perl script

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

Re: how to run perl script

Postby Izzy » 02. February 2009 11:17

These are the instructions in the readme-addon-perl.txt file located here and in the xampp folder:
http://www.apachefriends.org/winxampp/r ... n-perl.txt
Code: Select all
ENGLISH: Simply extract this add-on in your current XAMPP-Directory.
All older files are overwritten. Then start the "setup_xampp.bat"
to configure XAMPP with Perl. Now restart the apache. After that with the
"setup_xampp.bat" file, you can choice "with mod_perl" or "without mod_perl".

Documentroot mod_perl           =   .\xampp\htdocs\modperl\
Documentroot mod_perl [perl-asp]    =   .\xampp\htdocs\modperlasp\
URL                    =   http://localhost/perl/
URL [perl-asp]                =   http://localhost/asp/
Configuration file         =       .\xampp\apache\conf\extra\perl.conf
PerlHOME             =       .\xampp\perl


If that does not work and you can try again without harm, then perhaps it is time to uninstall XAMPP in the Program Files folder and reinstall to the C:\ drive, only this time use the EXE (7zip) version of XAMPP not the Installer version.

Here's how.

Go to the XCP and Stop all XAMPP components then un-tick any Svc boxes.
Close the XCP.
Delete the C:\Program Files\xampp folder.

Download the EXE (7zip) file and extract to C:\ drive - it will create C:\xampp and put all the file where they should be.

Now run the setup_xampp.bat file in the xampp folder only once, to set all the paths in XAMPP correctly.

Now start Apache and MySQL from the XCP.

Next go to http://localhost, select your language and then test your install by clicking on all the demos etc. in the XAMPP Welcome Page.

When you are happy that XAMPP is installed properly and working then, and only then, extract the perl addon again following the readme instructions above.

Test perl is installed properly by clicking on the Perl link in the XAMPP Welcome Page.

Then add your own script.cgi to either the htdocs folder or the cgi-bin and test it again - you know how to do that now.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Re: how to run perl script

Postby spanish26 » 02. February 2009 12:36

Hello, i have re-intstalled the xampp using exe filew and also add the perl addon, i can now see the perl link with the examples , but the examples are giving error: server experienced internal error : couldnt create child process 720003 for the cgi-script
spanish26
 
Posts: 21
Joined: 01. February 2009 12:16

Re: how to run perl script

Postby Izzy » 02. February 2009 12:41

You did run the setup_xampp.bat file 2 times after installing the perl addon?

Go to C:\xampp\apache\conf\extra\ folder and look for a file perl.conf

If the file is called perl.conf.new then rename it to perl.conf then try again.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Re: how to run perl script

Postby spanish26 » 02. February 2009 12:45

Ok, i have done that, but when i rename the file it shows thata file with that name already exist and cannot be renamed, i deleted the first one and renamed the perl.conf.new to perl.conf, but still the same error
spanish26
 
Posts: 21
Joined: 01. February 2009 12:16

Re: how to run perl script

Postby Izzy » 02. February 2009 12:49

So you have a file called perl.conf and a file called perl.conf.new?
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Re: how to run perl script

Postby spanish26 » 02. February 2009 12:53

yes both
spanish26
 
Posts: 21
Joined: 01. February 2009 12:16

Re: how to run perl script

Postby Izzy » 02. February 2009 13:01

spanish26 wrote:yes both
Well you can't rename a file if the file you are renaming it to already exists, that is normal Windows behavior and I did not ask you to rename it if perl.conf was already in the folder, did I?

Well not much more I can suggest, we have gone through everything I know to get you up and running that over 500,000 other down loaders of XAMPP per month have no problems doing.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Re: how to run perl script

Postby spanish26 » 02. February 2009 21:05

Hello,

Thanks alot for all the help and patience , i got it working now, I owe someday, some where hopefully .... wish u all the best.
spanish26
 
Posts: 21
Joined: 01. February 2009 12:16

Re: how to run perl script

Postby Izzy » 03. February 2009 00:02

Well, we spent a lot of time and patience telling you what we knew, now would you mind telling us what you know.

Please tell the forum how you eventually got this all working so others who have the time and patience to read this massive thread looking for a solution, may also benefit form your newly acquired knowledge or is this topic going to be all one sided?
Thanks.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Re: how to run perl script

Postby spanish26 » 03. February 2009 03:53

I changed the shebang to the new directory after i re-installed xampp, then added the perl addon to the directory that i installed the xampp, i also deleted the second file perl.conf.new, so i had only one file perl.conf.
spanish26
 
Posts: 21
Joined: 01. February 2009 12:16

Re: how to run perl script

Postby Izzy » 03. February 2009 04:07

Thanks for posting back.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Re: how to run perl script

Postby spanish26 » 03. February 2009 04:56

Thank you for your time, really apppreciate
spanish26
 
Posts: 21
Joined: 01. February 2009 12:16

Previous

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 107 guests