On Lucee 5.3.5+92 I get this message when attempting to access the server admin.
The “import file” button does not open a file selection dialog, so I’m assuming that it’s looking for the specific password.txt file at a specific location, which should be /lucee-server/context/password.txt.
In my mind, the “root Lucee server directory” could be referring to one of two places…
The WebRoot
The Server Home
I’ve tried creating a /context/password.txt file within both locations and clicking "import file" but neither worked. What am I not getting here?
I thought I had it figured out when I found Resetting Lost Admin Password. I’m on Mac, but the path for linux didn’t correlate to anything useful on my system. But using the Windows path correlated fine. Starting from the “Server Home” I went up to ".CommandBox" then drilled down to…
.CommandBox/engine/cfml/server/lucee-server/context/ where I placed the password.txt file and tried again confident I had the right location. I didn’t. This did not work either.
I’m using CommandBox version 5.0.1+00137 (latest…I just upgraded)
Your answer was perfect actually. I installed cfconfig as suggested (I didn’t know I needed to before and had not heard of this extension) then ran the command you suggested, restarted, and it worked perfectly! Thanks for your help.
Just for future reference, in your CommandBox properties folder (which might be in ~/.commandbox) there is a folder called “server” which has all the servers that you launch with CB in it. If you open the one with the server you want you can put the password.txt file in “/WEB-INF/lucee-server/context/”
Ah, thanks Dan! That’s what I was looking for, but I’m grateful that Adrian’s solution opened my eyes up to the cfconfig extension because that’s super helpful in a more general sense too! I’m currently (and happily) running down that bunny trail.