How To Make Lucee "Look in the right folder"

I’ll preface this by saying that I am pretty new to server settings in general, not just Lucee settings.

Today I took a server out of our main pool to upgrade it from 5.3.7.48 to to 5.3.10.120. At a point when I thought the upgrade had completed, I restarted Lucee in Lucee-Tomcat Service Control. When I tried to get back into the Lucee Server Admin, it said that I didn’t have a password stored. Ruh-roh. Upon adding the password in the appropriate place and importing, I found out that all of our server settings were gone (datasources, mappings, etc.). I exported the settings from another prod server using CommandBox and imported into the problematic server and again restarted Lucee. The mappings now look good but I have the following problem with the server. The “root” folder appears to be one level too low. When an Application.cfm file references “/child1/targetFile.cfm,” it looks for “/parent/child2/child1/targetFile.cfm” rather than “/parent/child1/targetFile.cfm”. The Application.cfm file in reference is in “/parent/child2”. There is a mapping for “/child1” that directs to the actual Windows path for “child1”. What do I need to do to get the path correct again?

OS: Windows Server 2012 R2 Datacenter
Java Version: 1.8.0_181 (Oracle Corporation) 64bit
Tomcat Version: Apache Tomcat/8.5.33
Lucee Version: Lucee 5.3.7.48 (attempting to upgrade to 5.3.10.120)

Depends on how you setup lucee, one way is to edit the lucee\tomcat\conf\server.xml file:

<Host name="lucee.org" appBase="webapps">
     <Context path="" docBase="/var/sites/lucee.org" />
     <Context path="/admin" docBase="/var/sites/lucee.org/somewhere/else" />
     <Alias>www.lucee.org</Alias>
     <Alias>my.lucee.org</Alias>
</Host>

Thanks for the reply Michael. I found out it was pilot error. Somehow I had managed to remove the leading slash on that path on that machine. (face_palm)

1 Like