I seem to be having some real trouble with setting up a web administrator password for Lucee 6.0.1.0 running in CommandBox. I have tried just about every solution I could find within the various forum posts here and around the internet, but I’m just not getting any good results.
Some background: I am trying CommandBox for my production server after having manually managed a Lucee+Nginx server for many, many years. I tried moving to Lucee+Apache2 and have encountered unbelievably undiagnosable memory issues and I’m wondering if CommandBox will help to simplify my setup.
This is just a hobbyist’s web application server. I’ve never used CommandBox before and I have heard its praises sung far and wide, but I’ll be honest, it is an all new area for me and I think it’s easy to say I am pretty overwhelmed by it, at least for now.
I had an existing Lucee (6.0.1.0)/Apache2 server running on this machine. I shut down Lucee and Apache and installed ComandBox, went to my web root, located at /web/default/wwwroot
, and used box server start
. I was able to get things running enough to start the CommandBox web server on port 8080 using a server.json
file located at /web/default/wwwroot/server.json
. This is my server.json
configuration, which is very basic at this time.
{
"profile": "production",
"web": {
"host": "0.0.0.0",
"http": {
"port": 8080
},
"welcomeFiles": "default.cfm,index.cfm",
"blockCFAdmin": false,
},
"app": {
"cfengine": "lucee@6.0.1+0",
}
}
In researching this password issue, I looked up using CFConfig, which is now much more confusing since Lucee adopted a .CFConfig.json
configuration file. I tried to do an import of the old configuration with this command: box cfconfig import from=/opt/lucee/tomcat/lucee-server/context/.CFConfig.json
and it was just errors. I tried manually building out a .CFConfig.json
file in my web root /web/default/wwwroot/.CFConfig.json
and that didn’t really work.
I tried setting the password via this command (while in my web root at /web/default/wwwroot/): box cfconfig set adminPassword=myPass
. That didn’t work. (Please note I also did box server restart
after attempting everything, each time.)
I tried editing files in the `/home/ubuntu/.CommandBox/server/{serveridcode}-wwwroot/lucee-6.0.1.0/WEB-INF/’ directories and that did nothing.
So … I’m not sure. Have I started off on the completely wrong foot with my setup here? Am I missing something obvious? Am I approaching this totally wrong? Again: I have no idea.
I’m really interested in CommandBox as a solution, but there is really very limited documentation on how to move from an existing server set up to a new one, nor much help for folks looking for basic, “How do I use CommandBox as a production server?” types of questions. The documentation here is just not really helping me, it’s quite overwhelming and does not contain a lot of specifics about how I can do this.
And, at the core of all of this, is that I just simply can not set a web administrator password, which honestly is step one of a thousand steps I need to be able to complete in order to set this up. That’s why I’m so focused on it.
Any help that could be offered would be greatly appreciated, as I am at a loss. Thank you very much.