Page 1 of 1

Windows Install Help

Posted: Thu Apr 05, 2007 6:50 pm
by loopie
I am looking through the Docs, but I don't see the installation routine for Windows systems.
I would like to have a copy CMSMS running on my Win-XP machine, with a sync'd copy
running on my home Linux box.
I have gotten CMSMS copied onto my XP machine.
I installed IIS onto my XP machine.
I installed PHP and told it to integrate with IIS.
I installed MySQP 5.2 and created the database via the Install.txt files instructions.
I also created a blank/empty config.php file in my "webroot" directory.
but...
As far as chmod'ing files on the XP machine, I am lost as to what is required.
Can someone point me to a Window Install Doc?
Or maybe whip up some notes on what I need to do?

Thanks,

     Loopie.

Re: Windows Install Help

Posted: Thu Apr 05, 2007 6:58 pm
by heatherfeuer
I don't know anything about IIS, I have Apache 1.3 running on my XP box.  However, in both cases, chmoding is not necessary.  The only time you need to worry about that is if a particular file or folder should be "read only."  In that case, you would go into properties and set it there.

So, basically, on XP boxes, ignore the chmoding part and move to the next step.

Re: Windows Install Help

Posted: Thu Apr 05, 2007 7:18 pm
by loopie
Well naturally, like all good sys admins, I skipped all the stuff that didn't fit my install.
And...  It didn't work..  :-)
I created a test php script in my "cms" home dir named test.php


PHP Test Script






  It seems to execute properly, so I think php is working with IIS OK.
I am not sure CMSMS is connecting to the DB properly, or if the admin script
is supposed to ask me about it or what.
I am hoping to find some sort of php logging to determine what is holding php from
finishing the page.  (DB connection, php misconfig, rights, etc..  )
Any hints or suggestions, would be greately appreciated.

Loopie

Re: Windows Install Help

Posted: Thu Apr 05, 2007 7:46 pm
by Nullig
Did you copy the cmsms files to a subdirectory off your webroot?

Did you run the http://localhost//install/install.php script in your browser?

Nullig

Re: Windows Install Help

Posted: Thu Apr 05, 2007 10:25 pm
by loopie
Nullig wrote: Did you copy the cmsms files to a subdirectory off your webroot?

Did you run the http://localhost//install/install.php script in your browser?

Nullig
Yes, I did copy all the files to the "webroot" of my IIS install.
No I didn't run the install.php script. (Hmm....)
Well I ran the install script, and got alot further, than just running opening up the site and waiting for something to happen.
I think the INSTALL.txt file needs to be updated around section 5.
Next complaint was about no MySQL driver installed.
Reran the PHP setup app, selected add "Extensions, MySQL" hoping that would do the job.
Also grabbed and installed a copy of the Windows MySQL Administrator utility.
Now things have started up fine.
P.S.  I also installed using the PHP-GCI gateway instead of PHP-ASAPI install.
Not sure which is proper, but it works..

Re: Windows Install Help

Posted: Thu Apr 05, 2007 10:34 pm
by heatherfeuer
Interesting.  I think the cgi version works better with IIS than the asapi version; but don't quote me on that.

I'm too dependent on my windows based software and too poor to replace them all with mac versions and none of the apps I depend on are written for Linux.  So.  But that doesn't mean I'd want to just jump into using M$'s server!  I've been using a locally installed webserver setup for about 4 or 5 years now and never considered using anything but apache/perl/php/MySql.

Re: Windows Install Help

Posted: Thu Apr 05, 2007 10:44 pm
by kermit
note, if you're sync'ing an install between windows & linux, you cannot use the same config.php. absolute paths and cmsms url's will be different, and pretty urls is a linux/apache thing.

you can use the same database, though.. even the same database server. mysql-server on the windows system wasn't necessary (mysql support in php is, though, but that doesn't require the db server). make sure your linux box and its mysql-server can accept connections from systems other than itself, and refer to it by ip (replacing 'localhost') in your windows' cmsms install's config.php (using the same db name, username & password as the linux install).

to copy an install from linux to windows:
*  clear cmsms cache on linux.
*  ftp or copy working cmsms install to windows (iis) web root somewhere
*  change paths & urls in (windows) config.php and disable pretty url's as necessary
*  windows install's db settings (see above) in config.php
*  and if necessary (wasn't here on several windows systems), make the folders outlined in the docs as writable by the server.

i've done this several times without issue in the last few weeks. this of course assumes you have a working php (and cmsms) compatible web server running with mysql support built into php. one of those turnkey packages for windows might be easier than mukking around with iis, php, mysql, etc. separately... here's a few that come to mind....

http://www.wampserver.com/en/ 
http://www.uniformserver.com/
http://www.apachefriends.org/en/xampp-windows.html
http://sourceforge.net/projects/webdeveloper/

paths in a windows install config.php look like this:

#Document root as seen from the webserver.  No slash at the end
#e.g. http://blah.com
$config['root_url'] = 'http://192.168.1.200';

#Path to document root. This should be the directory this file is in.
#e.g. /var/www/localhost
$config['root_path'] = 'C:\wwwroot\cmstesting\cms105';