Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Discussion & Documentation Documentation, Tips & Tricks
  • Search

HOW TO: Install Coldfusion MX 7 With Apache

Unofficial documentation for various parts of Gentoo Linux. Note: This is not a support forum.
Post Reply
Advanced search
35 posts
  • 1
  • 2
  • Next
Author
Message
frameRATE
Guru
Guru
User avatar
Posts: 386
Joined: Mon Apr 28, 2003 10:28 pm
Location: Orange County California
Contact:
Contact frameRATE
Website

HOW TO: Install Coldfusion MX 7 With Apache

  • Quote

Post by frameRATE » Mon Jun 27, 2005 7:48 pm

EDIT: 9/10/2006 - I'm going to be doing a fresh install on my server this weekend, so I'll post back if this tutorial is still valid and make any necessary changes if I can...

(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.bin
Step Three:
Add a user cfm to run the server (this is optional if you know what you're doing)

Code: Select all

(as root)
useradd cfm
Note, make sure this user is in a group that has permissions to the /wwwroot folder! Otherwise actions like CFFILE won't upload properly (took me a while to realize the issue here...)

and link gentoo's apache2.conf to the normal httpd.com

Code: Select all

ln -s /etc/apache2/conf/apache2.conf /etc/apache2/conf/httpd.conf
Step Four:
We're going to run the coldfusion installer

Code: Select all

./coldfusion-70-lin.bin
During the install process:

Code: Select all

===============================================================================
Choose Locale...
----------------

  ->1- English

CHOOSE LOCALE BY NUMBER: 1

Code: 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: 2

Code: 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
(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: 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:
   : 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: 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

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: Select all

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: 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:    
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: 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
Almost done..

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: 
If all goes well, you should get this screen:

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: 
Step 5:
Now we're at the fun part...

Code: Select all

cd /opt/coldfusionmx7/bin
./coldfusion start
Will give this error:

Code: 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.
This one really kicked my ass, until I found -Blade- 's post on his install...http://forums.gentoo.org/viewtopic-t-31 ... usion.html

Here's the fix. First make sure you have "sys-libs/lib-compat" installed

Code: Select all

emerge lib-compat
Next we're going to edit the coldfusion file (/opt/coldfusionmx7/bin/coldfusion):

Code: Select all

nano -w /opt/coldfusionmx7/bin/coldfusion
to this: (thanks to - Blade -)

Code: 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 
Step 6:
Now start the standalone server:

Code: Select all

/opt/coldfusionmx7/bin/coldfusion start
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 ...

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/apache2
Now just copy over the CFIDE and cfdocs directories

Code: Select all

 cp -r /opt/coldfusionmx7/CFIDE/ /var/www/localhost/htdocs/
cp -r /opt/coldfusionmx7/cfdocs/ /var/www/localhost/htdocs/
Step 8:

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.cfm
(as well as index.php or any others you want do act as index pages)

Now restart your servers and you're good to go!

Code: Select all

/etc/init.d/apache2 restart
and

Code: Select all

/opt/coldfusionmx7/bin/coldfusion restart

Good 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]
Last edited by frameRATE on Sun Sep 10, 2006 4:02 am, edited 2 times in total.

Linux User | 364705

howto install coldfusion mx 7 under gentoo
Top
frameRATE
Guru
Guru
User avatar
Posts: 386
Joined: Mon Apr 28, 2003 10:28 pm
Location: Orange County California
Contact:
Contact frameRATE
Website

Installing Problem: The Graphing service is not available.

  • Quote

Post by frameRATE » Thu Jun 30, 2005 11:03 pm

if while installing, everything goes well until you try to log in to the administrator and see:
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 | 364705

howto install coldfusion mx 7 under gentoo
Top
r0nn1ef
n00b
n00b
Posts: 1
Joined: Mon Jul 04, 2005 11:19 pm
Location: Colorado Springs
Contact:
Contact r0nn1ef
Website

SOLVED: The Graphing service is not available

  • Quote

Post by r0nn1ef » Mon Jul 04, 2005 11:29 pm

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.

http://www.talkingtree.com/blog/index.c ... 201B3621EB
"A good plan, violently executed now, is better than a perfect plan next week." -- Gen George S. Patton, Jr.
Top
rutski89
Guru
Guru
User avatar
Posts: 468
Joined: Mon Mar 14, 2005 3:57 pm
Location: United States N.Y.
Contact:
Contact rutski89
Website

  • Quote

Post by rutski89 » Thu Jul 21, 2005 4:38 am

What is different about your ./bin/coldfusion file? All I know of is the commenting of these few lines:

Code: Select all

#       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 
If I comment those lines out in my default coldfusion file, it will hang when I do ./coldfusion start. However, if I copy and paste yours, it works :-D

I tried to diff my coldfusion file against yours, but it wasn't very helpful. I don't want to search the file by hand, so If you know any other differences, please let me know.

I like to know whats going on with my box in all possible places, please... will you appease my obsessive compulsiveness?

P.S. Thanks for the great tutorial; although, I've not yet gotten to the apache2 part on account of this issue.
<< ^ | ~ >>
Top
frameRATE
Guru
Guru
User avatar
Posts: 386
Joined: Mon Apr 28, 2003 10:28 pm
Location: Orange County California
Contact:
Contact frameRATE
Website

  • Quote

Post by frameRATE » Thu Jul 21, 2005 12:16 pm

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..

Odd, huh? I'll take a look again later to see if I can spot it...

Glad you liked the tutorial!

Linux User | 364705

howto install coldfusion mx 7 under gentoo
Top
thijsj
n00b
n00b
User avatar
Posts: 1
Joined: Wed Aug 17, 2005 10:31 am
Location: Pellenberg, Belgium

  • Quote

Post by thijsj » Wed Aug 17, 2005 12:09 pm

thanks for the explenation

had idd a problem while installing at the last tier :P

coldfusion now is installed but i can't start the server

Code: Select all

Cubewano ~ # /opt/coldfusionmx7/bin/coldfusion start
Starting ColdFusion MX 7...
anybody an idee??
al the rest is correctly installed, (i think ;))
Top
Yann|ck
n00b
n00b
User avatar
Posts: 4
Joined: Wed May 28, 2003 8:43 am

  • Quote

Post by Yann|ck » Thu Sep 15, 2005 3:26 pm

This is not just the commented lines, but also the part in "Linux":

Code: Select all

        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"'
Note the "su" parts.
Top
frameRATE
Guru
Guru
User avatar
Posts: 386
Joined: Mon Apr 28, 2003 10:28 pm
Location: Orange County California
Contact:
Contact frameRATE
Website

  • Quote

Post by frameRATE » Tue Sep 27, 2005 7:55 pm

I just upgraded my apache without thinking and my Coldfusion is broken. I'm going to look into fixing it this week, but if anyone has already fixed this, please post here.

Linux User | 364705

howto install coldfusion mx 7 under gentoo
Top
frameRATE
Guru
Guru
User avatar
Posts: 386
Joined: Mon Apr 28, 2003 10:28 pm
Location: Orange County California
Contact:
Contact frameRATE
Website

  • Quote

Post by frameRATE » Wed Sep 28, 2005 12:21 am

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 | 364705

howto install coldfusion mx 7 under gentoo
Top
amccarty
n00b
n00b
Posts: 3
Joined: Thu Oct 20, 2005 4:48 pm

  • Quote

Post by amccarty » Thu Oct 20, 2005 5:17 pm

Has anyone tried with CFMX 7.1.

It seems that the cfmx7 executable was moved to $CF_DIR/runtime/bin

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

Code: Select all

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.

Any help is greatly appreciated.
Top
amccarty
n00b
n00b
Posts: 3
Joined: Thu Oct 20, 2005 4:48 pm

  • Quote

Post by amccarty » Thu Oct 20, 2005 5:54 pm

I figured it out. The CFSTART and CFSTOP lines in the coldfusion script need to be changed as follows.

Code: Select all

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/runtime/bin/cfmx7 -jar jrun.jar -autorestart -start coldfusion &"'
CFSTOP='su -s /bin/sh $RUNTIME_USER -c "env -i; cd $CF_DIR/runtime/bin; $CF_DIR/runtime/bin/cfmx7 -jar jrun.jar stop coldfusion"'

Sorry for the noise.
Top
frameRATE
Guru
Guru
User avatar
Posts: 386
Joined: Mon Apr 28, 2003 10:28 pm
Location: Orange County California
Contact:
Contact frameRATE
Website

  • Quote

Post by frameRATE » Thu Oct 20, 2005 10:46 pm

I got it to work when updated from 7.0. Did you try a fresh 7.1 install?

Linux User | 364705

howto install coldfusion mx 7 under gentoo
Top
amccarty
n00b
n00b
Posts: 3
Joined: Thu Oct 20, 2005 4:48 pm

  • Quote

Post by amccarty » Fri Oct 21, 2005 5:02 am

yes, fresh install.
Top
frameRATE
Guru
Guru
User avatar
Posts: 386
Joined: Mon Apr 28, 2003 10:28 pm
Location: Orange County California
Contact:
Contact frameRATE
Website

  • Quote

Post by frameRATE » Fri Oct 21, 2005 6:47 pm

amccarty wrote:yes, fresh install.
Well thanks for the post then =)

Hopefully it'll help someone!

Linux User | 364705

howto install coldfusion mx 7 under gentoo
Top
heutger
n00b
n00b
Posts: 9
Joined: Tue Apr 13, 2004 6:58 pm

  • Quote

Post by heutger » Sun Oct 30, 2005 9:10 pm

Hi!

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
/opt/cfmx/runtime/jre/bin/java: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory
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
Top
heutger
n00b
n00b
Posts: 9
Joined: Tue Apr 13, 2004 6:58 pm

  • Quote

Post by heutger » Sun Oct 30, 2005 9:59 pm

heutger wrote:Hi!

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
/opt/cfmx/runtime/jre/bin/java: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory
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.

So still be happy to get a feedback on RDS and Search Services.
Top
frameRATE
Guru
Guru
User avatar
Posts: 386
Joined: Mon Apr 28, 2003 10:28 pm
Location: Orange County California
Contact:
Contact frameRATE
Website

  • Quote

Post by frameRATE » Mon Oct 31, 2005 2:01 pm

heutger wrote:Hi!

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
/opt/cfmx/runtime/jre/bin/java: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory
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
That sounds like it may have been the file that xorg-x11 provided (I talked about it in the "Graphing Services" post above. Do a google search to confirm.. it's been quite a while for me.

Also, whenever I did RDS installs, it was on the OLD apache config system and it would just lock up the installer. I'm thinking it might work now but I don't have a system to test a fresh install on.

If anyone can confirm or deny RDS works now, I can amend the tutorial.

Linux User | 364705

howto install coldfusion mx 7 under gentoo
Top
canoba
n00b
n00b
Posts: 1
Joined: Mon Jan 16, 2006 5:40 pm

  • Quote

Post by canoba » Tue Jan 17, 2006 3:21 pm

has anyone gotten the verity search to install? i tried installing it seperatly and the installer just hangs at the very end of it. anyone have any luck?
Top
incubator
Guru
Guru
Posts: 584
Joined: Thu Jun 05, 2003 3:57 pm
Location: Belgium

  • Quote

Post by incubator » Wed Apr 26, 2006 8:34 am

I always keep getting errors during the installation.
I try to install CFMX 7.01
(file:coldfusion-701-lin.bin )
my java environment vars:

Code: Select all

JDK_HOME=/home/merlidi/j4
JAVAC=/home/merlidi/j4/bin/javac
PATH=$PATH:/home/merlidi/j4/bin:/home/merlidi/j4/jre/bin
ROOTPATH="/home/merlidi/j4/bin:/home/merlidi/j4/jre/bin"
LDPATH="/home/merlidi/j4/jre/lib/i386/:/home/merlidi/j4/jre/lib/i386/native_threads/:/home/merlidi/j4/jre/lib/i386/server/:/home/merlidi/j4/jre/lib/i386/client/"
JAVA_HOME=/home/merlidi/j4
I have sun-jdk 1.4.2.11 installed , here is what got from the log:

Code: Select all

Expand Archive:           /tmp/3841.tmp/ant_bin_dir.zip
Status: ERROR
Additional Notes: ERROR - Problems occured with the expander of Z_/installers/CustomCode/includes/ant_bin_dir.zip's type.It said: error in opening zip file

Install File:             /tmp/3841.tmp/CFMX7 Ext-0_8_4.mxp
                          Status: ERROR

Install File:             /tmp/3841.tmp/CFReportBuilderInstaller.exe
                          Status: ERROR

o entry found: MakeExecutableAction_zg_ia_sf.jar
                          Status: ERROR

Install Uninstaller:      Macromedia ColdFusion MX 7 (Install All Uninstaller Components)
                          Status: ERROR
                          Additional Notes: ERROR - Error installing uninstaller: java.util.zip.ZipException: error in opening zip file
                                            ERROR - Failure to install Uninstaller executable: java.lang.NullPointerException

No entry found: MakeExecutableAction_zg_ia_sf.jar
                          Status: FATAL ERROR

Create LaunchAnywhere:    JRE_Install (Install All LaunchAnywhere Java Executable Components)
                          Status: ERROR

Install Merge Module:     Z:\installers\verity\mergemodules\search_linux.iam.zip
                          Status: ERROR
                          Additional Notes: ERROR - java.lang.NullPointerException

ANT Script Error:
                          Status: ERROR
                          Additional Notes: ERROR - configure-installers.xmljava.lang.NoSuchMethodError: org.apache.tools.ant.util.FileUtils.getFileUtils()Lorg/apache/tools/ant/util/FileUtils;

Modify Text File - Multiple Files: No target chosen
                          Status: ERROR
                          Additional Notes: ERROR - Unable to locate directory to be manipulated.  Deferring...

Install File:             /opt/coldfusionmx7/cfstat
                          Status: ERROR

Install File:             /opt/coldfusionmx7/cfinfo
                          Status: ERROR

Install File:             /opt/coldfusionmx7/coldfusion
                          Status: ERROR

Install File:             /opt/coldfusionmx7/cfmx-init.sh
                          Status: ERROR

Modify Text File - Single File:   cfstat
                          Status: ERROR
                          Additional Notes: ERROR - Unable to locate ASCII text file to be manipulated.  Deferring...

Modify Text File - Single File:   cfinfo
                          Status: ERROR
                          Additional Notes: ERROR - Unable to locate ASCII text file to be manipulated.  Deferring...

Modify Text File - Single File:   coldfusion
                          Status: ERROR
                          Additional Notes: ERROR - Unable to locate ASCII text file to be manipulated.  Deferring...

Modify Text File - Single File:   cfmx-init.sh
                          Status: ERROR
                          Additional Notes: ERROR - Unable to locate ASCII text file to be manipulated.  Deferring...

ANT Script Error:
                          Status: ERROR
                          Additional Notes: ERROR - standalone.xmljava.lang.VerifyError: (class: org/apache/tools/ant/taskdefs/optional/XMLValidateTask, method: createDTD signature: ()Lorg/apache/tools/ant/types/DTDLocation;) Incompatible argument to function

Install File:             /opt/coldfusionmx7/jrun-config.zip
                          Status: ERROR

Install File:             /opt/coldfusionmx7/license.txt
                          Status: ERROR

Install File:             /opt/coldfusionmx7/Readme.htm
                          Status: ERROR

ANT Script Error:
                          Status: ERROR
                          Additional Notes: ERROR - standalone.xmljava.lang.VerifyError: (class: org/apache/tools/ant/taskdefs/optional/XMLValidateTask, method: createDTD signature: ()Lorg/apache/tools/ant/types/DTDLocation;) Incompatible argument to function

Modify Text File - Multiple Files: No target chosen
                          Status: ERROR
                          Additional Notes: ERROR - Unable to locate directory to be manipulated.  Deferring...

ANT Script Error:
                          Status: ERROR
                          Additional Notes: ERROR - unix_basic_commands.xmljava.lang.VerifyError: (class: org/apache/tools/ant/taskdefs/optional/XMLValidateTask, method: createDTD signature: ()Lorg/apache/tools/ant/types/DTDLocation;) Incompatible argument to function

Modify Text File - Multiple Files: No target chosen
                          Status: ERROR
                          Additional Notes: ERROR - Unable to locate directory to be manipulated.  Deferring...

Modify Text File - Single File:   cfstat
                          Status: ERROR
                          Additional Notes: ERROR - Unable to locate ASCII text file to be manipulated.  Deferring...

Modify Text File - Single File:   cfinfo
                          Status: ERROR
                          Additional Notes: ERROR - Unable to locate ASCII text file to be manipulated.  Deferring...

Modify Text File - Single File:   coldfusion
                          Status: ERROR
                          Additional Notes: ERROR - Unable to locate ASCII text file to be manipulated.  Deferring...

Modify Text File - Single File:   cfmx-init.sh
                          Status: ERROR
                          Additional Notes: ERROR - Unable to locate ASCII text file to be manipulated.  Deferring...

Modify Text File - Multiple Files: No target chosen
                          Status: ERROR
                          Additional Notes: ERROR - Unable to locate directory to be manipulated.  Deferring...

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!
Top
incubator
Guru
Guru
Posts: 584
Joined: Thu Jun 05, 2003 3:57 pm
Location: Belgium

  • Quote

Post by incubator » Thu Apr 27, 2006 10:20 am

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!
Top
VinnieNZ
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 126
Joined: Thu Mar 11, 2004 1:56 am
Location: New Zealand

  • Quote

Post by VinnieNZ » Sat Jul 01, 2006 9:53 am

Has anyone managed to get this to work with the latest version of ColdFusion?

I get the following errors when I try to install:

Code: Select all

Preparing to install...
Extracting the JRE from the installer archive...
Unpacking the JRE...
Extracting the installation resources from the installer archive...
Configuring the installer for this system's environment...
awk: error while loading shared libraries: libdl.so.2: cannot open shared object file: No such file or directory
dirname: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
/bin/ls: error while loading shared libraries: librt.so.1: cannot open shared object file: No such file or directory
basename: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
dirname: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
basename: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory

Launching installer...

grep: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
/tmp/install.dir.16145/Linux/resource/jre/bin/java: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory
Does anyone have any ideas as how to get this to compile. I'm willing to provide additional information if required.[/code]
Top
ragefan
n00b
n00b
User avatar
Posts: 63
Joined: Sat Jun 01, 2002 6:59 am
Location: New Hampshire, USA

  • Quote

Post by ragefan » Mon Aug 28, 2006 3:02 pm

VinnieNZ wrote:Has anyone managed to get this to work with the latest version of ColdFusion?

I get the following errors when I try to install:

Code: Select all

Preparing to install...
Extracting the JRE from the installer archive...
Unpacking the JRE...
Extracting the installation resources from the installer archive...
Configuring the installer for this system's environment...
awk: error while loading shared libraries: libdl.so.2: cannot open shared object file: No such file or directory
dirname: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
/bin/ls: error while loading shared libraries: librt.so.1: cannot open shared object file: No such file or directory
basename: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
dirname: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
basename: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory

Launching installer...

grep: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
/tmp/install.dir.16145/Linux/resource/jre/bin/java: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory
Does anyone have any ideas as how to get this to compile. I'm willing to provide additional information if required.
I found the answer on this page: http://www.talkingtree.com/blog/index.c ... tion-Guide

Basically, the "export LD_ASSUME_KERNEL=2.2.5" lines need to be commented out.

Whether doing a full install or using the updaters, this works:

Code: Select all

# cp coldfusion-702-lin.bin coldfusion-702-lin.bak
# cat coldfusion-702-lin.bak | sed "s/export LD_ASSUME_KERNEL/#xport LD_ASSUME_KERNEL/" > coldfusion-702-lin.bin
# ./coldfusion-702-lin.bin
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
Top
frameRATE
Guru
Guru
User avatar
Posts: 386
Joined: Mon Apr 28, 2003 10:28 pm
Location: Orange County California
Contact:
Contact frameRATE
Website

  • Quote

Post by frameRATE » Mon Sep 11, 2006 11:20 pm

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

Code: Select all

500 Null
(I hate this error....)

and when i try to run the connector script I see

Code: Select all

thedeathstar justin # /opt/coldfusionmx7/bin/coldfusion wsconfig -host framerate.info -server coldfusion -ws Apache -dir /etc/apache2  -coldfusion -v -bin /usr/sbin/apache2 -script /etc/init.d/apache2
Could not connect to any JRun/ColdFusion servers on host framerate.info.
Possible causes:
o Server not running
  -Start Macromedia JRun4 or ColdFusion MX server
o Server running
  -JNDI listen port in jndi.properties blocked by TCP/IP filtering or firewall
   on server
  -host restriction in security.properties blocking communication with server
Any help would be appreciate so I can rewrite this tutorial

Linux User | 364705

howto install coldfusion mx 7 under gentoo
Top
frameRATE
Guru
Guru
User avatar
Posts: 386
Joined: Mon Apr 28, 2003 10:28 pm
Location: Orange County California
Contact:
Contact frameRATE
Website

  • Quote

Post by frameRATE » Wed Sep 27, 2006 7:13 pm

frameRATE wrote: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

Code: Select all

500 Null
(I hate this error....)

and when i try to run the connector script I see

Code: Select all

thedeathstar justin # /opt/coldfusionmx7/bin/coldfusion wsconfig -host framerate.info -server coldfusion -ws Apache -dir /etc/apache2  -coldfusion -v -bin /usr/sbin/apache2 -script /etc/init.d/apache2
Could not connect to any JRun/ColdFusion servers on host framerate.info.
Possible causes:
o Server not running
  -Start Macromedia JRun4 or ColdFusion MX server
o Server running
  -JNDI listen port in jndi.properties blocked by TCP/IP filtering or firewall
   on server
  -host restriction in security.properties blocking communication with server
Any help would be appreciate so I can rewrite this tutorial
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 | 364705

howto install coldfusion mx 7 under gentoo
Top
Klainn
n00b
n00b
User avatar
Posts: 67
Joined: Fri Aug 27, 2004 2:45 pm
Location: Indianapolis

  • Quote

Post by Klainn » Wed Nov 01, 2006 9:41 am

I followed your guide this morning and I only needed to emerge lib-compat before running the cfml installer and do the following:

Code: Select all

# cp coldfusion-702-lin.bin coldfusion-702-lin.bak
# cat coldfusion-702-lin.bak | sed "s/export LD_ASSUME_KERNEL/#xport LD_ASSUME_KERNEL/" > coldfusion-702-lin.bin
# ./coldfusion-702-lin.bin 
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.
Top
Post Reply

35 posts
  • 1
  • 2
  • Next

Return to “Documentation, Tips & Tricks”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic