Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
HOW TO: Install Coldfusion MX 7 With Apache
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
frameRATE
Guru
Guru


Joined: 28 Apr 2003
Posts: 385
Location: Orange County California

PostPosted: Mon Jun 27, 2005 7:48 pm    Post subject: HOW TO: Install Coldfusion MX 7 With Apache Reply with quote

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/index.cfm?product=coldfusion (coldfusion-70-lin.nin)



Step Two:
You need to make sure the file is executable:
Code:
 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:
(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:
ln -s /etc/apache2/conf/apache2.conf /etc/apache2/conf/httpd.conf


Step Four:
We're going to run the coldfusion installer

Code:
./coldfusion-70-lin.bin


During the install process:

Code:

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

  ->1- English

CHOOSE LOCALE BY NUMBER: 1


Code:


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:

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:

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:

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:

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:


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.

Enable RDS (required for Report Builder and DW Extensions) (Y/N)
   : N


Almost done..
Code:

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


This one really kicked my ass, until I found -Blade- 's post on his install...https://forums.gentoo.org/viewtopic-t-312113-start-0-postdays-0-postorder-asc-highlight-coldfusion.html

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

Code:
emerge lib-compat


Next we're going to edit the coldfusion file (/opt/coldfusionmx7/bin/coldfusion):
Code:
nano -w /opt/coldfusionmx7/bin/coldfusion


to this: (thanks to - Blade -)

Code:

#!/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:
/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:
/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:
 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:

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:
/etc/init.d/apache2 restart

and
Code:
/opt/coldfusionmx7/bin/coldfusion restart



Good luck everyone! Post any comments or errors here!

===============
credits
===============
howto by framerate
using information obtained from:
-Blade- : https://forums.gentoo.org/viewtopic-t-312113.html
bitter : https://forums.gentoo.org/viewtopic-t-150729.html
macromedia docs: http://livedocs.macromedia.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/js/html/wwhelp.htm
(if I forgot anyone, please let me know!)[/quote][/code]
_________________

Linux User | 364705

howto install coldfusion mx 7 under gentoo


Last edited by frameRATE on Sun Sep 10, 2006 4:02 am; edited 2 times in total
Back to top
View user's profile Send private message
frameRATE
Guru
Guru


Joined: 28 Apr 2003
Posts: 385
Location: Orange County California

PostPosted: Thu Jun 30, 2005 11:03 pm    Post subject: Installing Problem: The Graphing service is not available. Reply with quote

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

howto install coldfusion mx 7 under gentoo
Back to top
View user's profile Send private message
r0nn1ef
n00b
n00b


Joined: 04 Jul 2005
Posts: 1
Location: Colorado Springs

PostPosted: Mon Jul 04, 2005 11:29 pm    Post subject: SOLVED: The Graphing service is not available Reply with quote

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.cfm?mode=entry&entry=8CABEC95-50DA-0559-A0ECFA201B3621EB
_________________
"A good plan, violently executed now, is better than a perfect plan next week." -- Gen George S. Patton, Jr.
Back to top
View user's profile Send private message
rutski89
Guru
Guru


Joined: 14 Mar 2005
Posts: 468
Location: United States N.Y.

PostPosted: Thu Jul 21, 2005 4:38 am    Post subject: Reply with quote

What is different about your ./bin/coldfusion file? All I know of is the commenting of these few lines:
Code:
#       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.
_________________
<< ^ | ~ >>
Back to top
View user's profile Send private message
frameRATE
Guru
Guru


Joined: 28 Apr 2003
Posts: 385
Location: Orange County California

PostPosted: Thu Jul 21, 2005 12:16 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
thijsj
n00b
n00b


Joined: 17 Aug 2005
Posts: 1
Location: Pellenberg, Belgium

PostPosted: Wed Aug 17, 2005 12:09 pm    Post subject: Reply with quote

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:
Cubewano ~ # /opt/coldfusionmx7/bin/coldfusion start
Starting ColdFusion MX 7...


anybody an idee??
al the rest is correctly installed, (i think ;))
Back to top
View user's profile Send private message
Yann|ck
n00b
n00b


Joined: 28 May 2003
Posts: 4

PostPosted: Thu Sep 15, 2005 3:26 pm    Post subject: Reply with quote

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

Code:
        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.
Back to top
View user's profile Send private message
frameRATE
Guru
Guru


Joined: 28 Apr 2003
Posts: 385
Location: Orange County California

PostPosted: Tue Sep 27, 2005 7:55 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
frameRATE
Guru
Guru


Joined: 28 Apr 2003
Posts: 385
Location: Orange County California

PostPosted: Wed Sep 28, 2005 12:21 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
amccarty
n00b
n00b


Joined: 20 Oct 2005
Posts: 3

PostPosted: Thu Oct 20, 2005 5:17 pm    Post subject: Reply with quote

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:
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.
Back to top
View user's profile Send private message
amccarty
n00b
n00b


Joined: 20 Oct 2005
Posts: 3

PostPosted: Thu Oct 20, 2005 5:54 pm    Post subject: Reply with quote

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

Code:

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.
Back to top
View user's profile Send private message
frameRATE
Guru
Guru


Joined: 28 Apr 2003
Posts: 385
Location: Orange County California

PostPosted: Thu Oct 20, 2005 10:46 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
amccarty
n00b
n00b


Joined: 20 Oct 2005
Posts: 3

PostPosted: Fri Oct 21, 2005 5:02 am    Post subject: Reply with quote

yes, fresh install.
Back to top
View user's profile Send private message
frameRATE
Guru
Guru


Joined: 28 Apr 2003
Posts: 385
Location: Orange County California

PostPosted: Fri Oct 21, 2005 6:47 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
heutger
n00b
n00b


Joined: 13 Apr 2004
Posts: 9

PostPosted: Sun Oct 30, 2005 9:10 pm    Post subject: Reply with quote

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

Quote:
/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
Back to top
View user's profile Send private message
heutger
n00b
n00b


Joined: 13 Apr 2004
Posts: 9

PostPosted: Sun Oct 30, 2005 9:59 pm    Post subject: Reply with quote

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

Quote:
/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.
Back to top
View user's profile Send private message
frameRATE
Guru
Guru


Joined: 28 Apr 2003
Posts: 385
Location: Orange County California

PostPosted: Mon Oct 31, 2005 2:01 pm    Post subject: Reply with quote

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

Quote:
/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
Back to top
View user's profile Send private message
canoba
n00b
n00b


Joined: 16 Jan 2006
Posts: 1

PostPosted: Tue Jan 17, 2006 3:21 pm    Post subject: Reply with quote

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?
Back to top
View user's profile Send private message
incubator
Guru
Guru


Joined: 05 Jun 2003
Posts: 584
Location: Belgium

PostPosted: Wed Apr 26, 2006 8:34 am    Post subject: Reply with quote

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:

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:

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!
Back to top
View user's profile Send private message
incubator
Guru
Guru


Joined: 05 Jun 2003
Posts: 584
Location: Belgium

PostPosted: Thu Apr 27, 2006 10:20 am    Post subject: Reply with quote

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!
Back to top
View user's profile Send private message
VinnieNZ
Tux's lil' helper
Tux's lil' helper


Joined: 11 Mar 2004
Posts: 126
Location: New Zealand

PostPosted: Sat Jul 01, 2006 9:53 am    Post subject: Reply with quote

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:

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]
Back to top
View user's profile Send private message
ragefan
n00b
n00b


Joined: 01 Jun 2002
Posts: 63
Location: Roanoke, Virginia, USA

PostPosted: Mon Aug 28, 2006 3:02 pm    Post subject: Reply with quote

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:
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.cfm/2006/4/5/Fedora-Core-5-Installlation-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:
# 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
Back to top
View user's profile Send private message
frameRATE
Guru
Guru


Joined: 28 Apr 2003
Posts: 385
Location: Orange County California

PostPosted: Mon Sep 11, 2006 11:20 pm    Post subject: Reply with quote

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:
500 Null
(I hate this error....)

and when i try to run the connector script I see

Code:

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
Back to top
View user's profile Send private message
frameRATE
Guru
Guru


Joined: 28 Apr 2003
Posts: 385
Location: Orange County California

PostPosted: Wed Sep 27, 2006 7:13 pm    Post subject: Reply with quote

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:
500 Null
(I hate this error....)

and when i try to run the connector script I see

Code:

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
Back to top
View user's profile Send private message
Klainn
n00b
n00b


Joined: 27 Aug 2004
Posts: 67
Location: Indianapolis

PostPosted: Wed Nov 01, 2006 9:41 am    Post subject: Reply with quote

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

Code:
# 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.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum