Page 3 of 3

Re: how to run perl script

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

Re: how to run perl script

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

Re: how to run perl script

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

Re: how to run perl script

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

Re: how to run perl script

PostPosted: 02. February 2009 12:49
by Izzy
So you have a file called perl.conf and a file called perl.conf.new?

Re: how to run perl script

PostPosted: 02. February 2009 12:53
by spanish26
yes both

Re: how to run perl script

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

Re: how to run perl script

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

Re: how to run perl script

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

Re: how to run perl script

PostPosted: 03. February 2009 03:53
by spanish26
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.

Re: how to run perl script

PostPosted: 03. February 2009 04:07
by Izzy
Thanks for posting back.

Re: how to run perl script

PostPosted: 03. February 2009 04:56
by spanish26
Thank you for your time, really apppreciate