Help Setting Up a Local Development Environment

I’m a ColdFusion developer and I maintain my own servers.  I’ve always just worked directly on the servers (via FTP) when developing new apps.  I want to get away from this.  I want do what all other developers do… set up a local development environment on my laptop.

But here’s the problem… ARGH.  It never works properly.  How do you friggin’ people do it?

My set up includes:

Windows XP
MySQL and/or SQL Server Express
ColdFusion MX 7 Developer

The biggest hurdle is the fact that I am not running Windows 2003 Server on my laptop.  I have XP and therefore a stripped version of IIS.  I want to replicate multiple websites on my local machine… not just one.  Here is an example as to why this is a problem:

I have Ooine.com replicated and running on my laptop, but none of the images show up because the application references “/image/blah.jpg” all over the place.  Because the XP version of IIS only allows a single website, the path /image/blah.jpg is mapping to the physical path “C:inetpubwwwrootImagelah.jpg” which doesn’t exist.  This image actually resides under the physical path C:inetpubwwwrootOoineImagelah.jpg“.

I can’t think of any way to make this work short of modifying my application code, which of course, nullifies the entire purpose to replicating Ooine.com on my laptop.  The obvious “solution” is to create some sort of mapping, but I don’t see how I can do this and successfully run multiple websites locally.

What am I missing?

4 comments to Help Setting Up a Local Development Environment

  • David

    your problem stems from the fact that you want to replicate many IIS sites on XP, which you can’t do (at least, not the same way that you do it on Windows Server). I think if you research “virtual paths” on IIS, you may find something.

    Maybe someone else on here knows more.

  • Writing image src’s that use relative links is probably the best option for your setup, since it will work if the site is in a sub directory as well as a root directory.

    Assuming you don’t want to spend time reworking your existing sites…

    Virtual directories are an option, as Dave suggested. But it will fall down if you want to set up multiple sites that have the an ‘image’ directory.

    Some people use a Virtual Server product and get Windows 2003 running on the same machine as Windows XP.

    Using Apache Web Server instead of IIS ‘light’ is another option.

    And if all else fails, you can hack IIS

    http://weblogs.asp.net/stevencohn/articles/59782.aspx

    ( I assume you’ll choose the last option? )

  • Steve

    And why would you assume that? :)

    Actually I just posted the solution I intend to use… unless something falls apart during set-up, I’ll avoid the IIS hack for now.

Leave a Reply

  

  

  

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>