Wednesday, May 23, 2012

Here we go again. Railo Setup Apache-Tomcat with IIS7.5 on Win7x64

My notes from a recent IIS7.5 setup on Win7x64 for Railo 3.3.1.000 Final (which uses Apache-Tomcat)

Started with a blank installation of IIS, by adding it as a feature in Windows 7x64bit

Using my already installed and running Railo 3.2 on Apache:

Edited C:\railoserver\tomcat\conf\server.xml. I changed line 55 back to default port 8888 (Had mine set to 80 previously)

<Connector port="8888" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" />

Restarted Apache.

For some reason, on my workstation the railoserver's connector hadn't been modified by the vivio installer to have the correct path variable "@@installdir@@" replaced with a static value.. (Which is required!)

Edited C:\railoserver\connector\iis7connect.bat and iis7remove.bat
Replaced "@@installdir@@" with "C:\railoserver" 
Ran iis7connect.bat
Created website in IIS, added jakarta as a virtual directory, pointing to C:\railoserver\connector as usual.

Then... Nuts... "Insert picture of ambiguous error here"


Eventually figured out that it wasn't lying to me.. there was a problem with the isapiFilterModule..

Edited: C:\railoserver\connector\isapi_redirect-1.2.30.properties
Replaced "@@installdir@@" with "C:\railoserver" 

(This workstation must have installed strangely... I thought this @@ stuff was supposed to be changed by the installer.. anyways...)

Restarted IIS.

Victory!!

Other Notes:

Read through: http://wiki.getrailo.org/wiki/Server_2008_R2_IIS_7.5_with_Tomcat_and_Plesk

Which mentions about 500.19  .. I only seem to get this error when attempting to setup a webroot outside of IIS   C:\inetpub\wwwroot    and I specifically get 0x8007000d   (Notice the d at the end... which microsoft says is an web.config error.. which it isn't in my case.. removing web.config just changes the error to 500... so I have a permissions issue in this case... great...)


I incorrectly thought it was something to do with web.config attempting to override a setting that had overrides disabled... (It wasn't) : http://learn.iis.net/page.aspx/376/delegating-configuration-to-webconfig-files/


This was actually caused by attempting to enable the rewrite module, when the rewrite module was not installed: http://www.microsoft.com/web/gallery/install.aspx?appid=urlrewrite2



No comments: