Windows Install Help

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
loopie

Windows Install Help

Post 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.
heatherfeuer

Re: Windows Install Help

Post 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.
loopie

Re: Windows Install Help

Post 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
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm

Re: Windows Install Help

Post 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
loopie

Re: Windows Install Help

Post 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..
heatherfeuer

Re: Windows Install Help

Post 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.
User avatar
kermit
Power Poster
Power Poster
Posts: 693
Joined: Thu Jan 26, 2006 11:46 am

Re: Windows Install Help

Post 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';
eternity (n); 1. infinite time, 2. a seemingly long or endless time, 3. the length of time it takes a frozen pizza to cook when you're starving.
4,930,000,000 (n); 1. a very large number, 2. the approximate world population in 1986 when Microsoft Corp issued its IPO. 3. Microsoft's net profit (USD) for the quarter (3 months) ending 31 March 2007.
CMSMS migration and setup services | Hosting with CMSMS installed and ready to go | PM me for Info
Locked

Return to “[locked] Installation, Setup and Upgrade”