Hi Leam,
> I've been asked to look at PHP on IIS on WIN 2008 talking to a
> SQLServer. Having been in FOSS for so long I have no idea on this. Is
> it reasonably doable? Would PHP on Apache on WIn 2008 be a better
> solution in terms of ease of use and setting up?
See attached for the notes I use to set this up. Actually works quite well,
though my notes may not be 100% complete - let me know if any issues.
H
IIS/FastCGI PHP Install
Download/run http://www.iis.net/webpi
Add IIS 7 Recommended Configuration
Remove everything else, Install then exit WPI
Enable FastCGI
Windows 7
Control Panel\All Control Panel Items\Programs and Features ->
Turn Windows features on or off
Internet Information Systems -> World Wide Web Services
-> Application Development Features -> Check CGI -> Ok
Windows Server
Server Manager -> Roles -> Add Role Services.
Web Server -> Application Development -> Check CGI -> Ok
Download/run installer for VC9 x86 Non Thread Safe
http://windows.php.net/download/
Web Server Setup: IIS FastCGI
Next -> Finish
Download/run installer for PHP Manager for IIS
http://phpmanager.codeplex.com/
IIS Manager -> PHP Manager
View recommendations -> Review options -> Check all
Manage all settings -> short_open_tag -> On
Configure error reporting -> Production machine (even if a
development server)
If dev server:
Manage all settings -> error_reporting -> E_ALL
Customize - Check HTTP Redirection, URL Rewrite
Databases - install SQL Server 2008 driver if needed
Download MongoDB
http://www.mongodb.org/display/DOCS/Quickstart+Windows
Create c:\mongo and c:\mongo\data
In mongo\bin:
mongod.exe --remove to remove an existing service if
this is an upgrade
Install web service using:
mongod.exe --reinstall --logpath c:\mongo\log.txt
--dbpath c:\mongo\data
Then start the service.
Setup PHP extension
http://www.mongodb.org/display/DOCS/PHP+Language+Center
Edit c:\windows\system32\drivers\etc\hosts
Add entries for each environment, for examples:
192.168.17.100 yoursite.local
yoursite.local must be the same hostname as you've configured in IIS
_______________________________________________
New York PHP User Group Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk
http://www.nyphp.org/show-participation