(This guide was written because the ColdFusion support for version 7 (and even prior) was SO sparse. Some info taken from other posts (credit given below)
EDIT 9/28: This was written before apache has been changed to follow "normal" config options. Be aware. I'll update this if I have time at a later date.
===================================
HOW TO INSTALL COLDFUSION MX 7 WITH APACHE !
===================================
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...
Step One:
Download The Coldfusion Installer from http://www.macromedia.com/cfusion/tdrc/ ... coldfusion (coldfusion-70-lin.nin)
Step Two:
You need to make sure the file is executable:
Code: Select all
chmod +x coldfusion-70-lin.binAdd a user cfm to run the server (this is optional if you know what you're doing)
Code: Select all
(as root)
useradd cfmand link gentoo's apache2.conf to the normal httpd.com
Code: Select all
ln -s /etc/apache2/conf/apache2.conf /etc/apache2/conf/httpd.confWe're going to run the coldfusion installer
Code: Select all
./coldfusion-70-lin.binCode: Select all
===============================================================================
Choose Locale...
----------------
->1- English
CHOOSE LOCALE BY NUMBER: 1Code: Select all
Install Type
------------
If you do not have a serial number, select either 30-day trial or Developer
Edition.
->1- Install new version of ColdFusion MX with a serial number
2- 30-day trial
3- Developer Edition
Installation Choice: 2Code: Select all
Installer Configuration
-----------------------
What kind of installation do you want?
->1- Server configuration
2- Multiserver configuration
3- J2EE configuration (EAR file)
4- J2EE configuration (WAR file)
Please select one of the following options: 1
Code: Select all
Macromedia ColdFusion MX 7 (server configuration) Installed
-----------------------------------------------------------
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
Code: Select all
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
[X] 1) Getting Started Experience, Tutorials, & Documentation
[X] 2) ColdFusion MX 7 Search Services
[X] 3) Start ColdFusion on system init
4) Continue with installation
Select an option: 3
Sub-component installation
[X] 1) Getting Started Experience, Tutorials, & Documentation
[X] 2) ColdFusion MX 7 Search Services
[ ] 3) Start ColdFusion on system init
4) Continue with installation
Select an option: 2
Sub-component installation
[X] 1) Getting Started Experience, Tutorials, & Documentation
[ ] 2) ColdFusion MX 7 Search Services
[ ] 3) Start ColdFusion on system init
4) Continue with installation
Select an option: 1
Sub-component installation
[ ] 1) Getting Started Experience, Tutorials, & Documentation
[ ] 2) ColdFusion MX 7 Search Services
[ ] 3) Start ColdFusion on system init
4) Continue with installation
Select an option: 4
Code: Select all
Choose Install Folder
---------------------
Select the directory in which to install Macromedia ColdFusion MX 7.
Directory:
Default Install Folder: /opt/coldfusionmx7
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: Select all
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:
: 2Code: Select all
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
Code: Select all
Runtime User
------------
Enter the name of the runtime user. This user must exist already on the system.
User Name: (DEFAULT: nobody): cfm
Code: Select all
Administrator Password
----------------------
Enter the password that you will use to control access to the ColdFusion MX
Administrator.
This field is required.
Password:
Confirm Password: Code: Select all
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.
Enable RDS (required for Report Builder and DW Extensions) (Y/N)
: N
Code: Select all
Installation Confirmation
-------------------------
Installation Type:
Server configuration
Licensing:
30-day trial
Installation Directories:
Product: /opt/coldfusionmx7
Web root: /opt/coldfusionmx7/wwwroot
Server Information:
Web Server: Built-in Web Server
Port: 8500
Search Service: installed
Sample Apps: installed
RDS: disabled
Disk Space Information (for Installation Target):
Required: 401,412,655 bytes
Available: 42,593,136,640 bytes
PRESS <ENTER> TO CONTINUE: Code: Select all
Installation Complete
---------------------
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:
Now we're at the fun part...
Code: Select all
cd /opt/coldfusionmx7/bin
./coldfusion startCode: Select all
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.
Here's the fix. First make sure you have "sys-libs/lib-compat" installed
Code: Select all
emerge lib-compatCode: Select all
nano -w /opt/coldfusionmx7/bin/coldfusionCode: Select all
#!/bin/sh
# chkconfig: 345 90 14
# description: starts the ColdFusion MX server
PATH=/usr/xpg4/bin:/bin:/sbin:/usr/bin:/usr/sbin:$PATH
CONNECTOR=""
RUNTIME_USER="cfm" # must be a real shell user
JAVA_HOME="/opt/coldfusionmx7/runtime/jre"
JAVA_EXECUTABLE="/opt/coldfusionmx7/runtime/jre/bin/java"
DOCROOT="/opt/coldfusionmx7/wwwroot"
CF_DIR="/opt/coldfusionmx7"
ID=`id -u`
if [ ! $ID -eq 0 ]; then
echo "You must be root to start ColdFusion MX."
exit 1
fi
cfstart() {
[ -f $CF_DIR/bin/jvm.config ] || {
ln -s $CF_DIR/runtime/bin/jvm.config $CF_DIR/bin/jvm.config
}
if [ "$OS" = "HPUX" ]; then
ps -e | grep -e [c]fmx7 > /dev/null 2>&1 && {
echo "ColdFusion MX 7 is already running"
echo exiting
exit 2
}
else
ps -e | grep -w [c]fmx7 > /dev/null 2>&1 && {
echo "ColdFusion MX 7 is already running"
echo exiting
exit 2
}
fi
echo "Starting ColdFusion MX 7..."
eval $CFSTART >> $CF_DIR/logs/cfserver.log 2>&1
echo "The ColdFusion MX 7 server is starting up and will be available shortly."
# Insert a sleep statement to give the server a few moments.
sleep 12
if [ "$OS" = "HPUX" ]; then
ps -e | grep -e [c]fmx7 > /dev/null 2>&1 || {
echo "There has been an error starting ColdFusion MX 7, please check the logs."
exit 1
}
else
ps -e | grep -w [c]fmx7 > /dev/null 2>&1 || {
echo "There has been an error starting ColdFusion MX 7, please check the logs."
exit 1
}
fi
[ -f "$CF_DIR/bin/cfmx-connectors.sh" ] && {
echo "======================================================================"
echo "Running the ColdFusion MX 7 connector wizard"
echo "======================================================================"
sh $CF_DIR/bin/cfmx-connectors.sh && {
mv -f $CF_DIR/bin/cfmx-connectors.sh $CF_DIR/bin/cfmx-connectors-run.sh
}
}
echo "======================================================================"
echo "ColdFusion MX 7 has been started."
echo "ColdFusion MX 7 will write logs to $CF_DIR/logs/cfserver.log"
echo "======================================================================"
}
cfstop() {
if [ "$OS" = "HPUX" ]; then
ps -e | grep -e [c]fmx7 > /dev/null 2>&1 || {
echo "ColdFusion MX 7 does not seem to be currently running"
return
}
else
ps -e | grep -w [c]fmx7 > /dev/null 2>&1 || {
echo "ColdFusion MX 7 does not seem to be currently running"
return
}
fi
echo "Stopping ColdFusion MX 7, please wait"
eval $CFSTOP
sleep 10
if [ "$OS" = "HPUX" ]; then
ps -e | grep -e [c]fmx7 > /dev/null 2>&1 && {
echo "The ColdFusion MX 7 server seems to be hanging, will stop non-gracefully"
ps -e | grep -e [c]fmx7 | awk '{print $1}' | xargs kill -9 > /dev/null 2>&1
sleep 2
}
else
ps -e | grep -w [c]fmx7 > /dev/null 2>&1 && {
echo "The ColdFusion MX 7 server seems to be hanging, will stop non-gracefully"
ps -e | grep -w [c]fmx7 | awk '{print $1}' | xargs kill -9 > /dev/null 2>&1
sleep 2
}
fi
if [ "$OS" = "HPUX" ]; then
ps -e | grep -e [c]fmx7 > /dev/null 2>&1 && {
echo "There are some very stubborn ColdFusion MX 7 processes that will not die, please kill the following PIDs by hand: "
ps -e | grep -e [c]fmx7 | awk '{print $1}'
echo exiting
exit 1
}
else
ps -e | grep -w [c]fmx7 > /dev/null 2>&1 && {
echo "There are some very stubborn ColdFusion MX 7 processes that will not die, please kill the following PIDs by hand: "
ps -e | grep -w [c]fmx7 | awk '{print $1}'
echo exiting
exit 1
}
fi
echo "ColdFusion MX 7 has been stopped"
}
case `uname` in
SunOS)
OS=Solaris
LD_LIBRARY_PATH="$CF_DIR/lib:$CF_DIR/lib/_solaris/bin"
CFSTART='su $RUNTIME_USER -c "PATH=$PATH:$CF_DIR/runtime/bin; export PATH; LD_LIBRARY_PATH=$LD_LIBRARY_PATH; export LD_LIBRARY_PATH; cd $CF_DIR/runtime/bin; nohup $CF_DIR/bin/cfmx7 -jar cfusion.jar -autorestart -start coldfusion &"'
CFSTOP='su $RUNTIME_USER -c "PATH=$PATH:$CF_DIR/runtime/bin; export PATH; cd $CF_DIR/runtime/bin; $CF_DIR/bin/cfmx7 -jar cfusion.jar stop coldfusion"'
;;
HP-UX)
OS=HPUX
CFSTART='su $RUNTIME_USER -c "PATH=$PATH:$CF_DIR/runtime/bin; export PATH; cd $CF_DIR/runtime/bin; nohup $CF_DIR/bin/cfmx7 -jar cfusion.jar -autorestart -start coldfusion &"'
CFSTOP='su $RUNTIME_USER -c "PATH=$PATH:$CF_DIR/runtime/bin; export PATH; cd $CF_DIR/runtime/bin; $CF_DIR/bin/cfmx7 -jar cfusion.jar stop coldfusion"'
;;
Linux)
OS=Linux
LD_LIBRARY_PATH="$CF_DIR/lib:$CF_DIR/lib/_ilnx21/bin"
CFSTART='su $RUNTIME_USER -c "export PATH=$PATH:$CF_DIR/runtime/bin; export LD_LIBRARY_PATH=$LD_LIBRARY_PATH; cd $CF_DIR/runtime/bin; nohup $CF_DIR/bin/cfmx7 -jar cfusion.jar -autorestart -start coldfusion &"'
CFSTOP='su $RUNTIME_USER -c "env -i; cd $CF_DIR/runtime/bin; $CF_DIR/bin/cfmx7 -jar cfusion.jar stop coldfusion"'
# 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
;;
*)
echo "Your OS: `uname` is unsupported"
echo "exiting"
exit 1
;;
esac
ARG=$1
[ -z "$ARG" ] && ARG=usage
case $ARG in
start)
cfstart
;;
stop)
cfstop
;;
restart)
echo "Restarting ColdFusion MX 7..."
cfstop
cfstart
;;
status)
if [ -x "$CF_DIR/bin/cfstat" ]; then
shift
$CF_DIR/bin/cfstat $@
else
echo "$0: $CF_DIR/bin/cfstat no such file"
fi
;;
wsconfig)
WSCONFIG_JAR=$CF_DIR/runtime/lib/wsconfig.jar
if [ $# -eq 0 ]; then
# no arguments so display built-in help from wsconfig.jar
$JAVA_EXECUTABLE -jar $WSCONFIG_JAR -help
break
else
# brief help
if [ "$2" = "help" ]; then
echo "To configure a webserver connector you must specify the -ws and -dir options."
echo "If configuring Apache it is recomended that you also specify the -bin and "
echo "-script options."
echo ""
echo "To list all configured webserver connectors use the -list option."
echo "To remove a configured webserver connector use the -r option with the "
echo "-ws and -dir options."
echo "To remove all webserver connectors use the -uninstall option."
echo "To upgrade all installed webserver connectors use the -upgrade option."
echo ""
echo "For more detailed help see $0 $1."
fi
break
fi
# pass on all args to wsconfig.jar
shift
$JAVA_EXECUTABLE -jar $WSCONFIG_JAR $@ -coldfusion
;;
*)
echo "Usage:$0 (start|stop|restart|status|wsconfig)"
;;
esac
exit 0
Now start the standalone server:
Code: Select all
/opt/coldfusionmx7/bin/coldfusion start(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 ...
Code: Select all
/opt/coldfusionmx7/bin/coldfusion wsconfig -host framerate.info -server coldfusion -ws Apache -dir /etc/apache2/conf -coldfusion -v -bin /usr/sbin/apache2 -script /etc/init.d/apache2Code: Select all
cp -r /opt/coldfusionmx7/CFIDE/ /var/www/localhost/htdocs/
cp -r /opt/coldfusionmx7/cfdocs/ /var/www/localhost/htdocs/
Now all that's left is open a web browser to:
http://127.0.0.1/CFIDE/administrator/index.cfm
and run the config (automated) and now you're good to go! Coldfusion is installed on your system!
If you want / directories to autoload index.cfm files, add this to your apache2.conf
Code: Select all
DirectoryIndex index.html, index.cfmNow restart your servers and you're good to go!
Code: Select all
/etc/init.d/apache2 restartCode: Select all
/opt/coldfusionmx7/bin/coldfusion restartGood luck everyone! Post any comments or errors here!
===============
credits
===============
howto by framerate
using information obtained from:
-Blade- : http://forums.gentoo.org/viewtopic-t-312113.html
bitter : http://forums.gentoo.org/viewtopic-t-150729.html
macromedia docs: http://livedocs.macromedia.com/coldfusi ... wwhelp.htm
(if I forgot anyone, please let me know!)[/quote][/code]


