How to implement a Zend-based PHP site on a Windows box?

I have a client with a site written in PHP & Zend. It was originally hosted on Linux, but I’ve got it working perfectly here locally on IIS, and now want to upload it to a Windows hosting account.

Problem is, the site is structured using a number of folders at the same level as the web root folder:

/application
/bin
/data
/externals
/library
/public ← web root
/scripts

I think this is a Zend thing (I’m not a php guy). I have it working here by simply setting “public” as the app root folder in IIS, give the IIS user r/w access to all folders, and everything seems to work ok.

So how do I implement this on a Jodo Windows server? Should I do this:

/application
/bin
/data
/externals
/library
/mydomain.com ← web root
/scripts

Or this:

/mydomain.com

  • application
  • bin
  • data
  • externals
  • library
    - public ← ask support to point web root here
  • scripts

?

I’d prefer the second option, if possible, as it’s neater.

Last one will be best, but once done DON’T change IIS settings in Hsphere!

Alternatively, you could just set the /public/index.php at the directory index I believe as well!

Ooh, hadn’t thought of that; very clever, since everything goes through index.php anyway.

What I’ll probably do is see if I can change the rewrite rule in web.config, so it refers everything to “/public/index.php” instead of “/index.php”, that would be neater still, if it doesn’t affect Zend’s calls to scripts in the other folders. Cheers!