BlueDragon 6.2 on Knoppix
Now that I got my Knoppix box lit up in very little time, I want to run BlueDragon on it. For those of you who don't know, BlueDragon is a free alternative to ColdFusion, which is just under $1700 for the standard version of CFMX 7. Free ain't too bad a price, I figure.
I tried installing BlueDragon before on my Fedora Core 2 box, and it never did work. I just couldn't figure out what was going wrong, and not being a Linux guru, I gave up.
Well, that was then, this is now. I downloaded BlueDragon 6.2 for Linux from www.newatlanta.com, got it untarr'd, read the ReadMe, and ran the installer as root. Then I ran the installer as not-root, cuz it dies if you run it as root. I think the docs said as much but I didn't catch on.
Anyhow, I ran the GUI version of the installer, and changed the default install directory to the /opt2 directory I made on /dev/hda3. Guess what? It didn't work. I ran the same installation again in "command line" mode, and I saw the problem. It looks like some paths are hardcoded in the installer. I re-ran the installer from the command line, this time, going with the default paths. Everything worked like a champ.
What took a while was finding the startup and shutdown scripts. Here is where they are:
/usr/local/NewAtlanta/BlueDragon_Server_62/bin/StopBlueDragon.sh
/usr/local/NewAtlanta/BlueDragon_Server_62/bin/StartBlueDragon.sh
I stuck these into webmin, cuz I like webmin for an easy server admin tool. The docs explain how to add them without webmin, but whatever.
Anyhow, I fired up BlueDragon, visited http://localhost:8080/index.cfm and wah-la, there is the startup page. Sweet.
The whole thing took probably 30 minutes of my time.
Did I mention I'm loving Knoppix?
And now for Apache 2
Okay, a few weeks pass, as does the novelty of using port 8080 for all the web requests. I notice when using the BlueDragon admin that it claims it cannot install the Apache adapter because there is no Apache in place. Well, there certainly is Apache, but according to the BD docs, it isn't the right version. The version of Apache installed by the Knoppix CD is the 1.3x version, and BD requires the new 2.0x version.
I googled around for solutions, and really never found an obvious answer. The closest I found was "apt-get".
# apt-get update
And a bunch of stuff gets listed.
Hm. I read what I can on apt-get, learn almost nothing, try and fail, and then try:
# apt-get upgrade apache
Reading Package Lists... Done
Building Dependency Tree... Done
The following packages have been kept back:
ipppd isdnacti
{a load more of stuff}
zlib1g zlib1g-dev
273 upgraded, 0 newly installed, 0 to remove and 63 not upgraded.
Need to get 273MB of archives.
After unpacking 11.9MB of additional disk space will be used.
Do you want to continue? [Y/n]
I answer "Y". And after watching the endless scroll of stuff, it occurs to me that I should have read the previous dialog a bit better before answering "Y". It turns out I just asked apt-get to upgrade all the packages, not just Apache. Oh well, no use whining about it. I'll let it run and see how things go. Looks like this could be an all-nighter.
I run Apahce. And it's still version 1.3. Arg.
# apt-get remove apache
And from all I can see, Apache is still installed.
I restart the server, and yeah, Apache is still there. Whatever.
I decide to download Apache2 from www.apache.org, figuring on that they are the best source, right? Nothing on the page leaps out and shouts "apache2", and searching their site for "apache2" is pretty useless, too. Turns out what I want is "HTTP Server", which makes sense. The Apache folks have dozens of projects , of which Apache itself is but one. From there I end up at the download page.
And... realizing I'm working on my Windows laptop, I instead do an ssh into my linux box and...
# wget http://apache.mirrormax.net/httpd/httpd-2.0.54.tar.bz2
and you do the md5sum thing, unzip, untar, blah blah, and now I have a /tmp/httpd-2.0.54 subdirectory, cuz' I did the wget from the /tmp folder.
okay, so now what?
I go into the /httpd-2.0.54 directory, and read the INSTALL file. The instructions seem real good, so I'm willing to follow 'em.
I follow the instructions, basically it's...
# ./configure --prefix=/usr/local/apache2
# make
# make install
# /usr/local/apache2/bin/apachectl start
And wah-lah, when I fire up Firefox and visit the default page for my server, it is the new Apache. Great.
I visit the BlueDragon admin page on the server, go to the Adapters section, and see the same old "No web servers are present" notice. I know Apache2 is running, but BlueDragon doesn't.
I'm thinking reboot. Before doing so, though, I use webmin to shut down the old Apache, and I set it to "Disable on boot". I create a new bootup/shutdown action, name it "apache2", and I set the start/stop actions to...
/usr/local/apache2/bin/apachectl start
/usr/local/apache2/bin/apachectl stop
After that, I do the reboot.
And success is mine. Thank you Jesus! I visit the BlueDragon admin page, go to the Adapters section, and there is the Apache adapter. I leave the default port of 9999 alone, cuz' the documentation says that the adapter port is not the same as the port you will use for web browsing.
So, now, I've got BlueDragon running on Knoppix, using Apache as the webserver. Great! I haven't tried connecting to mySQL on my other server, but I'll wait on that for another day.


