Perl add-on installation destroys portability

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

Perl add-on installation destroys portability

Postby mjwiech » 20. January 2009 18:13

Hi,
After installing Perl add-on for Xampp I noticed that the package portabilty was destroyed.
In many files and in many places the current USB drive letter was written.
This defeats the idea of portability.

mjwiech
mjwiech
 
Posts: 8
Joined: 29. July 2008 09:38

Re: Perl add-on installation destroys portability

Postby Izzy » 20. January 2009 23:27

mjwiech wrote:Hi,
After installing Perl add-on for Xampp I noticed that the package portabilty was destroyed.
In many files and in many places the current USB drive letter was written.
This defeats the idea of portability.

mjwiech
Did you manage to sort this out?

Perhaps not running the setup bat file would have been the go and then configuring the addon by hand.

This would be the same as installing XAMPP to a portable drive by not running the setup bat file as described in the readme_en.bat file install instructions...

...but I agree it should be mentioned in the addon readme file at least.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Re: Perl add-on installation destroys portability

Postby mjwiech » 10. May 2009 11:55

Hi,

I missed somehow your post.
Yes, I did manage to make the Xampp+Perl installation portable again.

1. I created a raw installation, just by unpacking Xampp and Perl to a directory X:\Xampp-Orig
2. I copied the whole installation to another directory X:\Xampp
3. I ran setup_xampp.bat in the X:\Xampp directory, leaving the other directory intact.
4. Using the excellent FolderMatch tool I compared each and every file in both copies of Xampp+Perl, e.g. X:\Xampp and X:\Xampp-Orig
5. I found a lot modified files in many directories. Too many to quote here.

After some work I discovered that (at least for Xampp version 1.6.7 and 1.7.1) instead of running setup_xampp.bat, it is enough to make manually the following changes:
1. Modify \xampp\apache\conf\httpd.conf
At the end add the following line:
Include conf/extra/perl.conf
2. Rename \xampp\apache\conf\extra\perl.conf.new --> perl.conf
3. Rename \xampp\cgi-bin\drivers.pl.new -> drivers.pl
4. In \xampp\install merge perlupdate.sys and serverupdate.sys --> install.sys
Someting like this:
DIR = \Xampp (not X:\Xampp!!! no drive letter!)
xampp = 1.7.1
server = 1.7.1
perl = 5.10.0
python = 0
utils = 0
java = 0
other = 0
5. (Optionally) In \xampp\htdocs\xampp rename all guestbook-xx.cgi.new to guestbook-xx.cgi

Regards
mjw
Izzy wrote:
mjwiech wrote:Hi,
After installing Perl add-on for Xampp I noticed that the package portabilty was destroyed.
In many files and in many places the current USB drive letter was written.
This defeats the idea of portability.

mjwiech
Did you manage to sort this out?

Perhaps not running the setup bat file would have been the go and then configuring the addon by hand.

This would be the same as installing XAMPP to a portable drive by not running the setup bat file as described in the readme_en.bat file install instructions...

...but I agree it should be mentioned in the addon readme file at least.
mjwiech
 
Posts: 8
Joined: 29. July 2008 09:38


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 65 guests