This guide will tell you how to install ColdFusion MX 7 Under Apache with gentoo. It assumes you already have Apache installed via the normal 'emerge apache' command, didn't change any of the default directories/install files for apache, no version of ColdFusion previously installed, and makes no assumptions about what database you will use.

If you don't have apache installed, search the forums. There are already plenty of installation guides for setting up your own apache server...

You cannot install the server configuration of Macromedia ColdFusion MX 7 if it is already installed on this computer.

Is there already a server configuration of Macromedia ColdFusion MX 7 installed on this computer?

1- Yes
->2- No

ENTER THE NUMBER FOR YOUR CHOICE, OR PRESS <ENTER> TO ACCEPT THE DEFAULT:
: 2

(system init is for SUSE and Redhat (as far as I know). So we remove it as shown. I'm also going to remove the other two options because they seem to break the install (installer will lock up on last tier. If anyone knows a workaround, please post:

Code:

Sub-component installation
--------------------------

The following options are available for installation.

An option with "[X]" in front will be installed and an option with "[ ]" will
not. Choosing an option will toggle it on or off

ENTER AN ABSOLUTE PATH, OR PRESS <ENTER> TO ACCEPT THE DEFAULT
: /opt/coldfusionmx7

INSTALL FOLDER IS: /opt/coldfusionmx7
IS THIS CORRECT? (Y/N): y

Code:

Existing ColdFusion Installation?
---------------------------------

The installer could not determine if there was an earlier version of ColdFusion on this machine. If there is a previous version of ColdFusion installed your settings can be migrated.

Is there an earlier version of ColdFusion on this machine?

1- Yes
->2- No

ENTER THE NUMBER FOR YOUR CHOICE, OR PRESS <ENTER> TO ACCEPT THE DEFAULT:
: 2

This part is key. We're not going to configure apache here, as gentoo has changed the location of the default apache files...

Code:

Configure Web Servers
---------------------

Please configure your web server(s). If you do not configure a web server the
built-in web server will be used on port 8500 or the next available port.

1- Add Web Server Configuration
->2- Continue with installation

Choice: 2

I've seen a lot of people have problems with using nobody, so we need to have a real shell user here (I chose user 'cfm'):

Code:

Runtime User
------------

Enter the name of the runtime user. This user must exist already on the system.

User Name: (DEFAULT: nobody): cfm

I think this part is obvious:

Code:

Administrator Password
----------------------

Enter the password that you will use to control access to the ColdFusion MX
Administrator.

This field is required.

Password:
Confirm Password:

This part I'm not sure about... I've always chose "No" but if anyone is successful with "Yes" let me know, I'll update that guide.

Code:

RDS Password
------------

The ColdFusion Remote Development Service (RDS) lets developers using
Macromedia tools remotely connect to this server for development purposes.

If this is a production server, Macromedia recommends that you disable RDS.
Note, however, that disabling RDS also disables the directory browsing applets
in the ColdFusion Administrator and some of the functionality in the Report
Designer.

You have successfully completed the first step in installing Macromedia
ColdFusion MX 7.

To continue with your installation, go to /opt/coldfusionmx7/bin and type
"./coldfusion start" to start your server.

Once the server is started log in to the Configuration Wizard at
http://[machinename]:8500/CFIDE/administrator/index.cfm

PRESS <ENTER> TO EXIT THE INSTALLER:

Step 5:
Now we're at the fun part...

Code:

cd /opt/coldfusionmx7/bin
./coldfusion start

Will give this error:

Code:

ln: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
ps: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
Starting ColdFusion MX 7...
The ColdFusion MX 7 server is starting up and will be available shortly.
sleep: error while loading shared libraries: libm.so.6: cannot open shared object file: No such file or directory
ps: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
There has been an error starting ColdFusion MX 7, please check the logs.

# Some Java JVMs (both from Sun and IBM) don't work with the new floating stack
# feature of the i686 version of glibc. Force glibc to use the deprecated stack model.
# Check if the OS is SuSE8.1 - if it is, do not use the deprecated stack model.
# SUSEFLAG=`grep 'SuSE Linux 8.1\|UnitedLinux 1.0' /etc/SuSE-release /etc/UnitedLinux-release /etc/UnitedLinux-release 2> /dev/null`
# if [ ! "$SUSEFLAG" ]; then
# LD_ASSUME_KERNEL=2.2.5
# export LD_ASSUME_KERNEL
# fi
;;

Yay! It works! At this point, you can view your server at "localhost:8500/CFIDE/administrator/index.cfm" (assuming you're installing on localhost. This is the standalone server, which doesn't do you much good if you want to install with Apache support. So let's continue...

(This part had me bashing my head against the wall for a while, until I figured it out... It's actually really easy..)

Step 7:
We're going to install the apache connectors.. just replace framerate.info with whatever your domain or IP is ...

if while installing, everything goes well until you try to log in to the administrator and see:

Quote:

The Graphing service is not available.

This can be fixed by "emerge xorg", since you're missing a file called "libXp.so.6" (thanks arma).

I didn't want to emerge xorg on my server, and chances are you don't either. But it fixes it. If you have another suggestion to how to fix this, please post it._________________
Linux User | 364705howto install coldfusion mx 7 under gentoo

Posted: Mon Jul 04, 2005 11:29 pm Post subject: SOLVED: The Graphing service is not available

I found a post on another forum explaining what causes this. Apparently, you have to have some of the X-11 libraries installed. I modified my Fedora Core 3 installation to include the optional X libraries and the developer libraries and my CF 7 works fine now.

Honestly, I'm not sure either. I did the same thing you did, edited my own coldfusion file and couldn't get it to work. But then I started over from scratch and just cut and pasted the one from -Blade- and it worked..

Got it working.. just figure that /apache2/httpd.conf is now the default config file, just copy the JRUN settings from your old config into the bottom of the new /apache2/httpd.conf and restart. CF came back online for me._________________
Linux User | 364705howto install coldfusion mx 7 under gentoo

Calling that directly or symlinking it back to $CF_DIR/bin just gives me the following error

Code:

Exception in thread "main" java.util.zip.ZipException: No such file or directory
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.jar.JarFile.<init>(Unknown Source)
at java.util.jar.JarFile.<init>(Unknown Source)
autorestart: Process died in less than 30 seconds; not restarting

This implies that it can't find the cfusion.jar file. I can provide the CF_START a full path to the jar but nothing changes.

First many thanks for your work. I did a complete fresh install of 7.1 and I'd choosen to set the Apache as web server because of the conf "problem" has been corrected in newer apache versions from the portage tree, but run in trouble with the connector script. The log shows

First many thanks for your work. I did a complete fresh install of 7.1 and I'd choosen to set the Apache as web server because of the conf "problem" has been corrected in newer apache versions from the portage tree, but run in trouble with the connector script. The log shows

I'd choosen the folder /opt/cfmx for coldfusion instead of the default, should not be a problem.

Another question I want to ask you about the RDS and Search Services, did you test and run in trouble or didn't you test and just skip them out?

Thanks,
Christian

So to all although the confs are now as macromedia except, the installer script is still not working setting up the connectors. So there is always the need to install the connector manually following the instructions given in the first post. Now I got ColdFusion working, for users running a firewall you would need to add rules allowing connections from localhost to localhost AS WELL as from the official machine IP to the official machine IP, can be set to -i lo. I'm quite unsure if there are additional rules neccessary on other IPs if multi-IP environment, but the process "shooting" with SYNs the processes to start (really funny to follow the startup with netstat -ap | grep "cfmx") uses not localhost but the first official IP on my machine. If anyone get more information on that or how to handle in firewall rules more efficiently please post it here.

First many thanks for your work. I did a complete fresh install of 7.1 and I'd choosen to set the Apache as web server because of the conf "problem" has been corrected in newer apache versions from the portage tree, but run in trouble with the connector script. The log shows

I dont know why this hapened really, I have the packages zip and unzip installed
does anyone know how these errors can be resolved? as I see many sites explaining how to install cfmx but not how to troubleshoot hte install _________________Programming today is a race between Software Engineers striving to build bigger and better idiot-proof Programs, and the Universe trying to produce bigger and better idiots.
So far, the Universe is winning!

ok, apparely this was due to a corrupt download....but now I get differfent errrors:
ServiceFactory unable to create Service of class coldfusion.license.OEMLicenseService (and a whole stacktrace)

the cfmx_mbean.jar is definitly there had to unzip jrun_config.zip myself O_o ) and I even placedd it in all possible classpaths....
CFMX is using the built in JRE so the /jre/lib/ext thing about MBeans is not applicable here...._________________Programming today is a race between Software Engineers striving to build bigger and better idiot-proof Programs, and the Universe trying to produce bigger and better idiots.
So far, the Universe is winning!

I used previously installed 7.0.0 and have updated to both 7.0.1 and 7.0.2 using the updaters and did a full install on another machine using the 7.0.2 installer and this worked._________________Registered linux user #256555

So apparently this tutorial isn't too good for the newer version of coldfusion. I'm trying to get it working using 702 (newest version) but when I try to visit localhost:8500/CFIDE/Administrator/index.cfm I get

So apparently this tutorial isn't too good for the newer version of coldfusion. I'm trying to get it working using 702 (newest version) but when I try to visit localhost:8500/CFIDE/Administrator/index.cfm I get

the problem was with my /etc/hosts file. I fixed that and it seems to be ok... I'm working on rewriting this tutorial for the 702 bin but I haven't had time to finish it yet... Sorry... the info is all here, though. Just scattered._________________
Linux User | 364705howto install coldfusion mx 7 under gentoo

and it worked fine for me. I am, however, not using apache and use the built-in webserver. I just change the port and select developer edition during install.

Still a good howto!_________________Note: This post is a natural product. The slight variations in spelling and grammar enhance its individual character and beauty and in no way are to be considered flaws or defects.