#Here's the steps to setup the development environment for Open Campfire
Development Environment Setup
This is a work in progress, currently more of an outline, as I am still installing various applications, and haven't gotten to the configuration portions as of yet.
Details
I am starting with a fresh install of Windows Server 2008 Web Edition under Virtual PC 2007. This is in order to isolate this project from my main OS. You can also use Server 2003, XP Pro, or Vista Ultimate all of which include an IIS server. The reason for IIS is simply to allow for multiple projects to run within a single web. Once I get a little farther along, I will create a project for MonoDevelop for use with mod_mono under Apache on Linux, I'll probably use OpenSUSE for development here as mono is best supported under it. Our main target is Windows, and our development environment is VS2008.
- Setup a fresh copy of windows on your virtual environment of choice. Save yourself some heartache now, use a 32bit version of windows for your virtual environment. If your host is 64bit windows, I would suggest either buying VMWare Workstation, or downloading VPC2007 for free.
- Window Settings
- Disable UAC (Vista & 2008)
- Enable Auto-login
- Disable Shutdown Event Tracker
- Setup VM Tools (UI Integration etc)
- Setup IIS, you're going to want the latest support for ASP.Net
- Make certain your user is part of the "Debugger Users" group.
- In win2008, you'll want to add the webserver role, making sure to enable asp.net
- In win2008, you'll want to add all the .Net 3.x features.
- Run through ALL windows updates.
- If you're running Win2003 or XP, you'll need to confirm that your web is running in ASP.Net 2+ mode, not the old 1.x mode.
- I usually set automatic updates to download then prompt, instead of automatic, in a development VM.
- Install additional programs
- Crimson editor (or your editor of choice... N++, Ultra Edit, etc.)
- 7-zip
- JDK 6 Update 6 (installed to C:\Java\...)
- Browsers (Firefox, Opera, Safari)
- Paint .Net (for simple/quick edits)
- Filezilla Client
- TortoiseSVN
- Setup Visual Studio 2008 (I'm using Pro, but Standard should work as well.
- Install VS2008 Updates (hold off on SP1-beta)
- Install ASP.Net MVC Preview 3
- Install AnkhSVN Plugin
- Setup Tomcat (C:\Tomcat\) (optional)
- Setup Eclipse Since eclipse keeps userland data with the application, I install eclipse into a user directory in windows, in my case C:\Users\Administrator\!AppData\Local\Eclipse
- Install Subclipse Plugin
- Tomcat Plugin (optional)
- Install Maven (C:\Java\Maven\)
- Download the Shindig project
- Create a directory for the project C:\Projects\Shindig\
- Right click on this directory, then SVN Checkout (TortoiseSVN Needed).
- Checkout URL: http://svn.apache.org/repos/asf/incubator/shindig/trunk/
- SetupWAMP for Shindig PHP. I've had difficulty in installing recent versions of PHP under IIS, so this is just easier.
- Remove the MySQL service (optional)
- Edit the PHP php.ini file, in the extensions section, enable the following... (note some may not be listed, just add them.)
- extension=php_json.dll
- extension=php_simplexml.dll
- extension=php_mcrypt.dll
- extension=php_curl.dll
- extension=php_http.dll
- Edit the apache httpd.conf
- Change the listen port from 80 to 8000
- wamp -> apache -> Apache Modules -> check rewrite_module
- Setup Shindig (PHP)
- create a c:\wamp\alias\shindig.conf file and add the following lines
- Alias /shindig "C:/Projects/Shindig/"
- <Directory "C:/Projects/Shindig/">
- Options Indexes !FollowSymLinks !MultiViews
- !AllowOverride all
- Order Deny,Allow
- Allow from all
- </Directory>
- edit `shindig/php/.htaccess'
- change index.php to /shindig/php/index.php
- create a shindig/php/config/local.php file
- add the following line to the local.php file
- <?php $shindigConfig['web_prefix'] = '/shindig/php'; ?>
- Right-click local.php -> Tortoise SVN -> Add to ignore list -> local.php
- wamp, Restart Services...
- the PHP version should be up and ready for use on port 8000 now. :)
- Setup Shindig (Java)
- (Create/Checkout VS2008 Projects)
- Setup OpenCampfire.Net under IIS
- Windows Settings
- Re-enable UAC (Vista & 2008)
- Defragment inside VM
- Shutdown VM, and shrink non-fixed virtual disk.