Novice user - How to connect Lucee to IIS

Don’t forget to tell us about your stack!

OS: Windows 2016 Standard
Java Version: 21.0.6 (Eclipse Adoptium) 64bit
Tomcat Version: Apache Tomcat/10.1.36
Lucee Version: Lucee 6.2.0.321

OK got Lucee installed and run the test application http://localhost:8888/myFirstPage.cfm

All good.

So It seems that the page at the moment needs to live in folder C:\lucee\tomcat\webapps\ROOT for this page to work? So I would like to move this to the C:\inetpub\wwwroot folder but can’t easily see how to do this.

Also I want to access this on a local IPaddress http://192.168.253.50/iisstart.htm

This is for testing at the moment so obviously it will have a domain at some stage. I’ve used Coldfusion and IIS, but Lucee doesn’t default to the IIS website folder. How do I move it?

Welcome! so you’d like to know how to use IIS with Lucee right?

@andreas created a series of 5 videos walking you thru how to do this

Here’s the first in the series

Lucee uses athe Boncode connector which is bundled with the installer to connect Tomcat to IIS

There is some additional info here

1 Like

Good afternoon. So worked through 4 steps. modified the index.cfm to do the cgi dump. But now get. IIS is still fine and can run htm files. CFM I get this error. I’ve obviously got something wrong? Lucee is fine all up and running and the myFirstpage.cfm in the tomcat root is still working. Any ideas?

HTTP Status 403 – Forbidden


Type Status Report
Description The server understood the request but refuses to authorize it.

Apache Tomcat/10.1.36

Never had the message Can’t create directory. Just had this

http://localhost/index.cfm?&__&__&__&__&__&__&__&__&__&__&__&__&__&__&__&__&__&__&__&__&__&__&__&__&__&__&__&__&__&__&__&__&__&__&__&__&__&__

Tried the lastest installer on windows 2022 and still get the same problem. Lucee is working when not trying to access IIS folders. As soon as you do you get the error Err_too_Many_redirects.

Tried this on winows 2016 as well and I get the same problem. Looked at various ways around this and get nowhere?

uninstall, reboot, redownload, then reinstall - could be corrupted download?

oh and DELETE any directories it created in installer directory (it will leave logs and config files), it will leave stuff which might then cause same issue on reinstall. :wink:

also try a previous version you can always upgrade easily in the admin.

in older versions of windows I also had to sometimes give IUSR permissions to write to the folder.

You should (from doing this for years) just be able to create a iis site and it will generate the WEB-INF directory inside that and then run the .cfm files.

I find if I have issues, it’s the installer (either corrupted download or something to do with that.

Afternoon thanks. Got Lucee working on Ubuntu but not on Windows 2022. I have tried various windows operating systems and followed your instructions. Uninstalled, deleted folders. downloaded older versions. But always end up at the same place. Step 4 of the video series looking at http://localhost/index.cfm. Before setting the Local Service permissions I can’t get the screen you show about Lucee not being able to create the folders. c:\inetpub\wwwroot\web-inf\lucee. Then when I set the permissions just back to the http://localhost/index.cfm?&__&__&__&__&__&__&__&__&__&__&__&__&__&__&__&__&__&__&__&__&__&__&__&__&__&__&__&__&__&__&__&__&__&__&__&__&__&__. Can’t get any further

Do you really need IIS, chances are you do not
What details are you omitting, is this a shared host or vps
Is this a graphical install of windows or no desktop version?
Add a loopback adaptor, not sure, see the documentation here: install the Microsoft Loopback Adapter - Windows Server | Microsoft Learn

Assign the loopback adaptor a private ip address, we will give it 127.0.0.2

confirm the loopback adaptor is installed and working by opening up the cmd line and typing
ping 127.0.0.2
You should see a reply.

For the graphical install

For best results install on a freshly installed windows server, fully patched

If you are using an existing server,
go to control panel
user accounts
remove any previously installed user account for lucee and clear its profile data

Download lucee windows binary, with the installer.

Right click on the installer and choose, Run as Administrator
Follow the prompts
Allow Lucee to download its own version of Java
Install the bonicode connector
choose to run at startup

After lucee installs, go to run
type in services.msc
go find the IIS Admin Service, Restart it
go find the World Wide Web Publishing service, Restart it
go find the Apache Topmcat Lucee service, restart it

Open up a browser on that machine, go first to 127.0.0.2:8888 , by default IIS and Lucee listen to everything

Confirm you see a lucee server page

Once done, go to 127.0.0.2/index.cfm confirm you see the lucee page
Once done go to 127.0.0.2/ confirm you still see the lucee page

If you want anything else, you will need to configure the firewall and bindings in IIS.

If you receive any errors, beyond this, open up event viewer
go to find the services and or system entries for the error
post them here along with any other error you receive.

Windows 2022 GUI version Datacenter trial. I’m trying to see if I can setup Lucee for development before looking to move away from Coldfusion. I can see the admin for Lucee adjust everything in the settings. if I go to 127.0.0.1 if get the index.cfm fine but with this message and no css.
Warning, if you can see this message, your webserver webroot is not mapped to [C:\inetpub\wwwroot].
This means Lucee is only configured to handle .cfm and .cfc and other files like css, js and images won’t load properly

IIS is not properly configured

Go to your iis admin
Go to your default site,
Click connections
Click Basic settings
Click in the Phyiscal path field
change this C:\inetpub\wwwroot
to
driveLetter\Where\Ever\You\Installed\Lucee\tomcat\webapps\Root

usually that is c:\lucee\tomcat\webapps\ROOT

Once changed, click ok
Restart IIS

OK All working now thanks for your help