[ms4w-users] Changing install root MS4W 2.2.4

Persaud,Bruce [Ontario] Bruce.Persaud at ec.gc.ca
Fri Jul 27 16:14:37 EDT 2007


Jeff,

This works PERFECTLY. This would be a great addition to the README for
new paths which do not contain spaces.
I think when I tried it on my own I changed WAY more files than I
needed.

On Monday, I will test with a new path which does contain spaces (such
as Program Files).

Thank you!
Bruce 

-----Original Message-----
From: ms4w-users-bounces at lists.maptools.org
[mailto:ms4w-users-bounces at lists.maptools.org] On Behalf Of Jeff McKenna
Sent: July 27, 2007 2:52 PM
To: ms4w-users at lists.maptools.org
Subject: Re: [ms4w-users] Changing install root MS4W 2.2.4

Bruce,

You won't find much help in changing MS4W for an install not on the root
of a drive, because MS4W and all of its add-on packages (e.g. Chameleon)
are configured for that root-drive structure.  So making a change to
that will require re-configuring all of the add-on packages as well. 
But yes it can be done.
I'll outline what I think are the steps, you can try them, and if you
are still running into problems we can discuss support options offline.
If the following does work or you had to make some changes please let
the list know, so I can add these notes to the MS4W README for all to
have.

Modifying MS4W for an Installation not at the Drive Root
========================================================

Do the following steps in a text editor:

1. Open /ms4w/Apache/conf/httpd.conf and search for "/ms4w/" and replace
with your new path from your drive root (such as "/Temp/ms4w/")

2. Open /ms4w/Apache/cgi-bin/php.ini and search for "/ms4w/" and replace
with your new path from your drive root (such as "/Temp/ms4w/")

3. Open all files in /ms4w/httpd.d and search for "/ms4w/" and replace
with your new path from your drive root (such as "/Temp/ms4w/")

4. Configure your add-on packages.  Using Chameleon as an example: Open
/ms4w/apps/chameleon/config/chameleon.xml and search for "/ms4w/" and
replace with your new path from your drive root (such as "/Temp/ms4w/")

Recommendation: avoid installing MS4W in a path that contains spaces


Persaud,Bruce [Ontario] wrote:
> Hi Jeff,
>  
> I am recieving some conflicting information regarding the possibility 
> of installing MS4W as well as chameleon for MS4W into subdirectories
(eg.
> C:/program files/ms4w)
>  
> In the installation documentation it states:
>  
> "The directory structure, while fixed within itself, is designed to be

> somewhat portable. While it needs to be installed at the root of a 
> hard drive, it doesn't have to be the C: drive. Moving the package to 
> the root of a different drive is simple - just copy it there. To move 
> it to a subdirectory is more difficult - you'll need to search for 
> /ms4w in all the files and replace it with your new path."
>  
>  From this I take it you must extract/install to c: drive and you may 
> MOVE it to a subdirectory if ALL of the files are changed with the new

> path.  Also to clarify, can you extract + install from a subdirectory 
> if the pathing editing is done? (e.g. extract to program files > 
> double click apache-install.bat etc...) if the pathing is modified.
>  
> Or is it strictly install to c:\ MOVE to subdirectory with new
pathing.
>  
> However, I've searched the user-list and came upon
>  
> "John,
> 
> Make sure ms4w is installed right at the root - you should have 
> c:/ms4w, and not c:/ms4w_2.0/ms4w (the applications are configured for

> c:/ms4w, or d:/ms4w etc, and will not work if it is a longer path).  I

> would rename your original ms4w and extract another at the root of the

> drive (c:/), then extract the itasca package at that same root (c:/).
> 
> jeff"
> This leads me to believe it may not work at all, even if you change 
> the paths in alll the files.
>  
> I really need some clarification on this and I cannot find anymore 
> documentation regarding this issue.  Additionally, the issues which 
> have be discussed on the user-lists have all pointed to installing to
the c:
> root which WORKS but is not allowed in my situation.
>  
> Thank you,
> Bruce
> 
> ----------------------------------------------------------------------
> --
> *From:* Persaud,Bruce [Ontario]
> *Sent:* July 25, 2007 1:12 PM
> *To:* Persaud,Bruce [Ontario]; ms4w-users at lists.maptools.org
> *Subject:* RE: [ms4w-users] Changing install root MS4W 2.2.4
> 
> Will doing a windows search of "ms4w" in the c:\ms4w be sufficent?
>  
> It has indicated 40 files containing A word or phrase in the file 
> using the word ms4w.
>  
> Thank you.
> 
> ----------------------------------------------------------------------
> --
> *From:* ms4w-users-bounces at lists.maptools.org
> [mailto:ms4w-users-bounces at lists.maptools.org] *On Behalf Of 
> *Persaud,Bruce [Ontario]
> *Sent:* July 24, 2007 4:04 PM
> *To:* ms4w-users at lists.maptools.org
> *Subject:* [ms4w-users] Changing install root MS4W 2.2.4
> 
> Hi All,
> 
> I've read the installation documentation and while it works flawlessly

> as is, I've inevitably run into the issue of installing to the root 
> C:\
> 
> To be blunt, I cannot have it installed to C:\ (or any root
directory).
> 
> Does anyone know of a list or know how to find ALL the files which 
> need to be edited for modified pathing? It should be the same for 
> everyone, apart from the new path.
> 
> Searching with Windows doesn't seem to bring up any results, perhaps 
> I'm doing it wrong.
> 
> Thanks,
> Bruce
> 
> 

--
Jeff McKenna
DM Solutions Group Inc.
http://www.dmsolutions.ca
_______________________________________________
ms4w-users mailing list
ms4w-users at lists.maptools.org
http://lists.maptools.org/mailman/listinfo/ms4w-users



More information about the ms4w-users mailing list