0

Installing CFMX7 & Apache2.2.2 on Ubuntu 6.06

ColdFusion
One week into being an Ubuntu convert and I still have ZERO complaints.  This distro of Linux is so comfortable to use that not once in the past week have I thought "Man, if I was just using Windows!".   This weekend, I setup CFMX7 Developer edition with Apache 2.2.2 which just became officially supported by Adobe a couple of weeks ago. 

There were a few tricks to setting up ColdFusion with Apache though so I thought I might write about it to save someone else a few minutes if they follow the same path.

***DISCLAIMER*** I am not a long-time Linux guy.  I do not claim to be doing things the "right" way.  I realize there are likely other more efficient ways to achieve the things I am doing, but I don't know about them! :)  That said...

  • Installing Apache 2.2.2 - One of the painless things about setting up new software in Ubunutu (and other Debian distros) is the apt-get command.  For intance if you want to install Apache, just open a command propmet and type in:

    >$ sudo apt-get install apache2

    Then in a few minutes you have an instance of Apache running.   ***HOWEVER***..... this is not what you want to do in this case.  By doing apt-get, you (read "I") do not have the ability to recompile it to suit your needs.  I found that when I tried to use the ColdFusion connector tool, it failed due to the installation type of Apache that I had.  So, to remove this I did:

    >$ sudo apt-get remove apache2

    I then removed the startup scripts from /etc/init.d.  Once this was complete found that there were a few prerequisites I needed as I went through the Apache compile/install.  

    1. Make sure you have GCC installed, which was not installed on my system.  To do this run:
      >$ sudo apt-get install gcc
    2. You also need a C compiler installed.  I am not sure this is the most efficient method, but what worked quite simply for me was to install Build Essential like this:
      >$ sudo apt-get install build-essential
    3. I also found that I needed ZLib installed.  I pulled down the source from the ZLib project page and did the following:
      • extract tar to a directory and terminal into it.
      • run >$ sudo ./configure
      • run >$ sudo make
      • run >$ sudo make install
    4. Once these prerequisite steps are taken, you are ready to install Apache.  Do the following:
      • Download the UNIX source here
      • Extract the tar file into a working directory and terminal into it.
      • run >$ sudo ./configure --prefix=/usr/local/apache2 --enable-mods-shared=all
      • run >$ sudo make
      • run >$ sudo make install
      You can start Apache now by running >$ sudo /usr/local/apache2/bin/apachectl start and test your installation by pulling up http://localhost/.


  • Installing ColdFusion MX7 - Now that Apache is intalled we can install ColdFusion.  Pull down the latest ColdFusion binary from www.adobe.com.  There is nothing exceptionally tricky during the installation process except for a couple of key points. 
    • During the pre-installation checklist you may get a warning regarding a missing C++ compatability pack.  This is used for C++ custom tags, and I believe for Verity as well.  I disregarded this warning and moved on.  I did choose to install "Search Services" when prompted however, and will address that issue in the near future with a Verity project that I have on the horizon.  When I do that I will come back and update this post.
    • Another point to note is that I chose the multi-server installation.  I am not sure how the server configuration might differ from these steps.
    • Lastly, when you get to the point of choosing which webserver you would like to use, choose the internal webserver that ships with ColdFusion.

  • Once the installation is complete and you start the ColdFusion server by running:
    >$ sudo /opt/jrun4/bin/jrun start cfusion
    ... and then testing your installation by going to http://localhost:8300/CFIDE/administrator/

  • Now it is time to connect ColdFusion to Apache.  You need to have the updated wsconfig.jar that was released in May 2006, and can be downloaded here.  Make a backup of /opt/jrun4/lib/wsconfig.jar ($> sudo mv wsconfig.jar wsconfig.jar.bak) and replace it with the wsconfig.jar in that zip file. 

  • Stop and start the jrun process so that it picks up the new wsconfig.jar.

  • Now open the connecter by running: >$ sudo /opt/jrun4/bin/wsconfig.  Once it opens make the following changes:
    1. For "Web Server" choose Apache
    2. For configuration directory, choose: /usr/local/apache2/conf
    3. Check the box for "Configure webserver for ColdFusion MX applications"
    4. Click OK and accept the prompt to restart the webserver.

  • Copy the CFIDE directory into your webroot so that you have access to the ColdFusion administrator.  Run the following:
    >$ sudo cp -R /opt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/CFIDE/ /usr/local/apache2/htdocs/
At this point you should be able to log into the ColdFusion administrator by going to:
http://localhost/CFIDE/administrator/index.cfm.

Have fun!
tags:
ColdFusion
 
It works! I am running the latest release of Kubuntu (KDE desktop) and I am 100% noob when it comes to Linux.

Thanks for helping my laptop not suck Dave!
 
posted 800 days ago
Add Comment Reply to: this comment OR this thread
 
Oguz Demirkapi said:
 
Wyh don't you put this into http://howtoforge.com" target="_blank">http://howtoforge.com as a tutorial.

http://howtoforge.com/coldfusion_installation_debian_sarge" target="_blank">http://howtoforge.com/coldfusion_installation_debi..." target="_blank">http://howtoforge.com/coldfusion_installation_debian_sarge" target="_blank">http://howtoforge.com/coldfusion_installation_debi...


:)

 
posted 800 days ago
Add Comment Reply to: this comment OR this thread
 
Seth Bienek said:
 
Great pointers, Dave! Thanks for sharing, your tips were a big help to me.
 
posted 753 days ago
Add Comment Reply to: this comment OR this thread
 
Matt Woodward said:
 
EXCELLENT stuff Dave. Couple of nitpicky things to add. First, when I got to the part where I was running the web server connector, I had to do a chmod 766 on /opt/jrun4/servers/cfusion/SERVER-INF/jrun.xml in order to allow the web server connector to write to that file.

Also, in the step where you copy all the CF admin files over, I'd suggest instead of copying the files, just create a symlink to the CFIDE files in your apache htdocs directory. From /usr/local/apache2/htdocs, just run:
ln -s /opt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/CFIDE CFIDE

I think you could also create an alias to all this stuff in httpd.conf, but I prefer the symlink myself.

Thanks so much for these instructions!
 
posted 672 days ago
Add Comment Reply to: this comment OR this thread
 
Mark said:
 
Thanks for the tutorial! Very helpful. You ought to post this to the ubuntu forums as well.
 
posted 651 days ago
Add Comment Reply to: this comment OR this thread
 
 
Hmmm... Matt, I just now saw your comment here due to a problem with replies on this particular post. Sorry for the unintended snub. Good points though on all accounts. Regarding the connector, I believe I ran it with sudo so I didn't run into the same issue.

Mark, you are welcome. Glad you found it useful.
 
posted 651 days ago
Add Comment Reply to: this comment OR this thread
 
Todd said:
 
The multi-server setup is gives you the ability to setup individual domains with their own protected sandbox. Nothing can bleed over between domains because they are indeed, one copy of cfmx instance per domain.

You could have setup one instance of cfmx with multiple domains via apache virtual directory and setup sandboxes, etc. Especially for a development machine. The multi-server setup is going to be a slight pig in resources, especially if you do choose to setup more than one cfmx instance. I can see using the multi-server in production where you have a quad processor box and clients that demand their own instance without sharing with others.

Hope this makes sense.
 
posted 641 days ago
Add Comment Reply to: this comment OR this thread
 
Jeff said:
 
I went through all the steps listed here and it still didn't work. I'm using Edgy Eft. My question now is how do I uninstall it, I tried using checkinstall to re-install in and then remove it using synaptic, but it remains. "It Works!" still shows up whenever I go to localhost. I need it to vanish so that I can re-run my LAMP installation with Apache2.0. Can you offer me any assistance?
 
posted 630 days ago
Add Comment Reply to: this comment OR this thread
 
 
Before you go about trying to remove software, you may want to read through the comments on this post:
http://www.daveshuck.com/blog/index.cfm/2006/10/26...

I have not had any time at all to try the last couple of suggestions, but several people are posting success stories. I will update with a new blog entry once I try it.

Good luck...
 
posted 630 days ago
Add Comment Reply to: this comment OR this thread
 
Jeff said:
 
Hey guys, after 3 days of trying to get this thing to work I finally got it on Edgy Eft. Apache2, PHP, MySQL, and Coldfusion all working together. You can see how I did it below. I've given thanks to those I can remember reading, if I missed you, please let me know.

http://wulfshayde.blogspot.com/2006/11/ubuntu-610e...
 
posted 629 days ago
Add Comment Reply to: this comment OR this thread
 
Jeff said:
 
Hey guys, after 3 days of trying to get this thing to work I finally got it on Edgy Eft. Apache2, PHP, MySQL, and Coldfusion all working together. You can see how I did it below. I've given thanks to those I can remember reading, if I missed you, please let me know.

http://wulfshayde.blogspot.com/2006/11/ubuntu-610e...
 
posted 629 days ago
Add Comment Reply to: this comment OR this thread
 
Jeff said:
 
Hey guys, I successfully got Coldfusion installed with apache connectors on Edgy Eft, Apache2 with PHP and MySQL. You can read how I did it here:

http://wulfshayde.blogspot.com/2006/11/ubuntu-610e...

Hope this helps some, it took me three days to get it going, total linux newbie!
 
posted 629 days ago
Add Comment Reply to: this comment OR this thread
 
Jeff said:
 
Sorry about the triple post, it kept erroring out on me...
 
posted 628 days ago
Add Comment Reply to: this comment OR this thread
 
Jeff said:
 
P.S. The new link is:

http://wulfshayde.blogspot.com/2006/11/ubuntu-610e...

Okay, I'm done now
 
posted 628 days ago
Add Comment Reply to: this comment OR this thread
 
Adam Howitt said:
 
I've just setup an AMD 64 bit Ubuntu Gutsy machine and it seems that deflate, dependent on zlib causes the apache make command to fail with the message "recompile with -fPIC". I found an ubuntu comment suggesting disabling deflate and it worked. The configure would then be:
sudo ./configure --prefix=/usr/local/apache2 --enable-mods-shared=all --disable-deflate
 
posted 162 days ago
Add Comment Reply to: this comment OR this thread
 
 
I have actually come around since posting this (shockingly almost 2 years ago!) to where I now use the packaged Apache from the repos. I was such a noob at the time that I didn't quite "get" how to make it work, but looking back I am not sure why I had the issues I did. I suppose I need to do a re-write of this sometime and discuss installing it using Apache from the Ubuntu repos. Thanks for the update though Adam. I wasn't aware of that issue.
 
posted 162 days ago
Add Comment Reply to: this comment OR this thread
 

Search

Dave at work...