Writing CFCs using UML with Poseidon

February 4th, 2007 rupert Comments off

It seems the xmi2cfc tool from cfcxmi.tigris.org works only for Poseidon 2.x versions. The visio works well and poseidon can export the xmi as well but I still encounter problems during the xmi to cfc conversion.

I just bought a 1GB ram for my notebook since Poseidon peaks at 200MB. How to create cfc’s with Poseidon?

1. Download and install Poseidon. Im using Poseidon 5 Professional.
2. Download the poseidon custom templates from http://cfcxmi.tigris.org/.
3. Extract it to Poseidon/lib/. You should have the ff directories:

Poseidon/
lib/
custom/

4. Start poseidon
5. Click on “Generation” -> “Java”
6. Click on the ellipses tool and point to the custom templates.
7. “Apply” the settings.
8. Create your class
9. Click on the source code to view your cfc.

I have made some changes to the templates to reflect the output=”false” and required=”true”. You can download the templates from here.

Categories: coldfusion Tags: , ,

ColdSpring bean creation magic…

February 1st, 2007 rupert Comments off

Adam describes some fun and exciting changes in ModelGlue Unity. I can now ditch cflocation by using argument.event.forward(“location.cfm”).

Its just now that im loving ColdSpring, I think its much better to instantiate beans and set/create other objects using setters/getters through the property instead of constructor-arg. Here’s an example:

<cfcomponent displayname="UserService" output="false" hint="I am a UserService.">
	<cffunction name="init" access="Public" returntype="UserService" output="false" hint="I am a new UserService">
		<cfreturn>
	</cfreturn>
 
	</cffunction><cffunction name="setUserGateway" returntype="void" access="public" output="false" hint="Dependency: UserService">
		<cfargument name="userGateway" type="cfcodetrack.model.UserGateway" required="true">
		<cfset variables.usergateway="arguments.userGateway">
	</cfset>
 
	<cffunction name="getUserGateway" access="public" returntype="cfcodetrack.model.UserGateway" output="false">
		<cfreturn>
	</cfreturn>	
 
	</cffunction><cffunction name="authenticate" access="public" returntype="string" output="false">
		<cfargument name="username" type="string" required="true">
		</cfargument><cfargument name="password" type="string" required="true">
		<cfdump var="#password#">
		<cfabort>
	</cfabort>	
 
	<cffunction name="getUsers" access="public" returntype="any" output="false">
		<cfreturn>
	</cfreturn>
 
</cffunction>
</cfdump></cfargument></cffunction></cfargument></cffunction></cfcomponent>

In your ColdSpring.xml your beans should only look like this:

	<bean id="dsn" class="cfcodetrack.model.dsn">
		<constructor -arg name="dsn">
			<value>cfcodetrack</value>
		</constructor>
	</bean>	
 
	<bean id="reactorFactory" class="reactor.reactorFactory">
		<constructor -arg name="configuration">
			<ref bean="reactorConfiguration">
		</ref>
	</constructor>
 
	<!-- Security Service
	-->
	</bean><bean id="securityService" class="cfcodetrack.model.SecurityService" singleton="true"></bean>
 
	<bean id="userGateway" class="cfcodetrack.model.UserGateway" singleton="true">
<property name="reactorFactory">
			<ref bean="reactorFactory">
		</ref>
</property><property name="dsn">
			<ref bean="dsn">
		</ref>
	</property>
 
	</bean><bean id="userService" class="cfcodetrack.model.UserService" singleton="true">
<property name="userGateway">
			<ref bean="userGateway">
		</ref>
	</property>
</bean>
Categories: Uncategorized Tags: ,

UML Explained

February 1st, 2007 rupert Comments off

As Im making some progress in ColdSpring/Reactor, I need some modelling to be able to visualise things much better and to help the team understand. Here is a very good post regarding Use Case Diagrams and Activity Diagrams that Doug wrote.

Some UML Tools:
ArgoUML
- hard to copy and paste objects

Poseidon for UML5.0.1 – without JRE
- cannot save

cfcxmi convert XML models to CFC

Visio 2003 UML Class Export Tool

1. Open your class diagram at a page with a class you wish to export.
2. Control+click each class you wish to export
3. Open the Visual Basic Editor (Alt+F11)
4. Double click on "ThisDocument" if no script is currently loaded
5. Paste the script below here into the empty page
6. Edit the "LogFileLocation" string to tell it where you wish to save your file. (Note: this must exist before the script runs)
7. Hit F5 to run the script
8. Enter a name for the file in the popup box
9. Hit OK

Sub ExportShapes()
    Const LogFileLocation As String = "C:\visioExportFiles\"
    Dim selObj As Visio.Selection 'Shapes selection collection
    Dim shpObj As Visio.Shape 'A shape instance
    Dim i As Integer
    Dim myClassDef As String
    Dim LogFileName As String
    Dim FileNum As Integer
 
    myClassDef = "<classes>"
    Set selObj = Visio.ActiveWindow.Selection
    For i = 1 To selObj.Count
        Set shpObj = selObj(i)
        myClassDef = myClassDef &amp; "<class>"
        myClassDef = myClassDef &amp; "
<properties>
<property>" &amp; Replace(shpObj.Shapes.Item(6).Text, Chr(10), "</property>
<property>") &amp; "</property></properties>"
        myClassDef = myClassDef &amp; "<methods><method>" &amp; Replace(shpObj.Shapes.Item(5).Text, Chr(10), "</method><method>") &amp; "</method></methods>"
        myClassDef = myClassDef &amp; "</class>"
    Next i
    myClassDef = myClassDef &amp; "</classes>"
    'Begin export
    LogFileName = InputBox("What is the file name you wish to use (exclude the .xml extension)?", "Export Classes")
    MsgBox (myClassDef)
    If Len(LogFileName) Then
 
        FileNum = FreeFile ' next file number
        Open LogFileLocation &amp; LogFileName &amp; ".xml" For Output As #FileNum ' creates the file if it doesn't exist
        Print #FileNum, myClassDef ' write information at the end of the text file
        Close #FileNum ' close the file
    Else
        MsgBox ("Bad file name")
    End If
 
End Sub
Categories: Uncategorized Tags:

Installing a qmail server

February 1st, 2007 rupert Comments off

Its been almost two years now since I installed a mail server. Nevertheless, qmail still rocks as qmailtoaster becomes more convenient to install. I also tried the install on a fresh CentOS4.4 machines, and it works like a charm.

--------------------------------------------------------------------
EZ QmailToaster Fresh Install on CentOS 4.3
Nick Hemmesch <nick @ndhsoft.com> June 08, 2006
--------------------------------------------------------------------
 
CentOS 4.3: This test install was performed on an
P4 3Ghz with 2GB ram on an Intel m/b. 
 
--------------------------------------------------------------------
This tutorial is for CentOS 4.3 (cnt40) i386 
 
To install CentOS 4.3 x86_64, replace cnt40 with cnt4064
 
To install Fedora Core 4 &amp; 5, change download path from centos to
fedora &amp; cnt40 to fdr40, fdr4064, fdr50 or fdr5064 per your distro
--------------------------------------------------------------------
 
Notes:
 
You must have either a local dns server or a local caching name
server. If you need a caching namserver, we will add one in Step 8.
 
Be sure to replace "your-domain.com" with your real domain name,
and "your.fqdn.com" with your server's "Fully Qualified Domain Name".
 
--------------------------------------------------------------------
1. Download CentOS 4.3 CD iso's or the DVD iso.
--------------------------------------------------------------------
 
  Burn iso's to CD, or DVD if you downloded a DVD iso
 
  Boot with your CD 1 or the DVD
 
--------------------------------------------------------------------
2. CentOS Installation (This is the configuration of my test box):
--------------------------------------------------------------------
 
  Splash Page: <enter> to install in graphical mode  
 
  CD Found window: Choose "Skip" to bypass media test  
 
  Welcome to CentOS: Click "Next"
 
  Language Selection: Select your language &amp; Click "Next"
 
  Keyboard Configuration: Select language type &amp; Click "Next"
 
  Installation Type: Select "Server" &amp; Click "Next"
 
  Disk Partitioning Setup: Select "Automatically Partition &amp; Click "Next"
 
      Warning: Click "Yes"
 
  Automatic Partitioning: Select "Remove all partitions" &amp; Click "Next"
 
      Warning: Click "Yes"
 
  Disk Setup: Click "Next"
 
  Boot Loader Configuration: Click "Next"
 
  Network Configuration: Click "Edit"
 
      Edit Interface eth0: Deselect "Configure using DHCP"
 
      Select "Activate on boot"
 
      Enter your "IP Address" &amp; "Netmask"
 
      Click "OK
 
      Set the hostname:
 
          Deselect "automatically via DHCP"
 
          Select "manually" &amp; enter your "fully qualified domain name"
 
      Miscellaneous Settings:
 
          Gateway: enter IP address of your gateway
 
          Primary DNS: enter IP address of primary dns server
 
          Secondary DNS: enter IP address of secondary dns server
 
      Click "Next"
 
  Firewall Configuration:
 
      Select "No firewall"
 
      Select "Disabled" mode for SELinux
 
      Click "Next"
 
          Warning - No Firewall: Click "Proceed"
 
  Additional Language Support" Click "Next"
 
  Time Zone Selection: Select your time zone &amp; Click "Next"
 
  Set Root Password: Enter your root password twice &amp; Click "Next"
 
--------------------------------------------------------------------
3. Package Group Selection - Select ONLY the following groups:
--------------------------------------------------------------------
 
  Server Configuration Tools: Select
 
  Web Server: Select
 
      Click "Details" and add php-mysql plus the defaults
 
  DNS Name Server: Select
 
  FTP Server: Select
 
  MySQL Database: Select
 
      Click "Details" and add mysql-bench, mysql-server plus the defaults
 
  Development Tools: Select
 
      Click "Details" and add expect to the defaults
 
  Administration Tools: Select
 
  System Tools: Select
 
      Click "Details" and add mrtg to the defaults
 
  Click "Next"
 
  About to Install: Click "Next"
 
      Required Install Media: verify and click "Continue"
 
  Installing Packages: Click "Next" &amp; watch the install
 
  After installation: remove your media &amp; Click "Reboot"
 
--------------------------------------------------------------------
4. After reboot, login as root:
--------------------------------------------------------------------
 
  mkdir -p /usr/src/qtms-install
 
  cd /usr/src/qtms-install
 
  This example is CentOS 4.3 i386 so the qmailtoaster switch is cnt40 
 
--------------------------------------------------------------------
5. Prepare to Install QmailToaster:
--------------------------------------------------------------------
 
  wget http://www.qmailtoaster.com/centos/cnt40/cnt40-deps.sh
 
      sh cnt40-deps.sh
 
  wget http://www.qmailtoaster.com/centos/cnt40/cnt40-perl.sh
 
      sh cnt40-perl.sh
 
  wget http://www.qmailtoaster.com/centos/cnt40/cnt40-svcs.sh
 
  wget http://www.qmailtoaster.com/centos/cnt40/firewall.sh
 
      nano -w cnt40-svcs.sh
 
      edit MYSQLPW=your-mysql-password
 
      ctl-o and enter to save
 
      ctl-x to exit
 
      nano -w firewall.sh
 
      edit MYIP="your-IP-address"
 
      ctl-o and enter to save
 
      ctl-x to exit
 
      sh cnt40-svcs.sh
 
  === NOTE ===
 
  This script turns on or off all necessary services. Then the script sets
  up your mysql root account, creates and grants privileges for your vpopmail
  mysql account, makes a symlink so your krb5 is read properly, edits your
  php.ini, sets inittab to start at runlevel 3, and sets up your firewall.
 
  Note: You might see some service errors while the script runs,
  don't worry about them.
 
  ============
 
  Update all your packages:
 
      yum -y update
 
  REBOOT
 
--------------------------------------------------------------------
6. Get QmailToaster Packages:
--------------------------------------------------------------------
 
  cd /usr/src/qtms-install
 
  wget http://www.qmailtoaster.com/info/current-download-script.sh
 
      sh current-download-script.sh
 
  This script downloads all necessary packages into you current
  directory (should be /usr/src/qtms-install/).
 
--------------------------------------------------------------------
7. Install QmailToaster Packages:
--------------------------------------------------------------------
 
  wget http://www.qmailtoaster.com/centos/cnt40/cnt40-install-script.sh
 
      sh cnt40-install-script.sh
 
  Check your services:
 
      setup: Select Services
 
          See that the following services are selected: acpid anacron
 
          atd autofs cpuspeed crond djbdns freshclam haldaemon httpd
 
          iptables kudzu messagebus mysqld network ntpd qmail rawdevices
 
          smartd sshd syslog xinet
 
          Also: irqbalance (w/dual processors) xfs (w/xwindows)
 
--------------------------------------------------------------------
8. Add djbdns (if you don't want bind)
--------------------------------------------------------------------
 
  rpm -e --nodeps bind bind-chroot caching-nameserver
 
  rpmbuild --rebuild --with cnt40 djbdns*.src.rpm
 
  rpm -Uvh ../redhat/RPMS/i386/djbdns-localcache*.rpm
 
  echo "search your-domain.com" &gt; /etc/resolv.conf
  echo "nameserver 127.0.0.1" &gt;&gt; /etc/resolv.conf
 
  REBOOT
 
--------------------------------------------------------------------
9. Setup QmailToaster:
--------------------------------------------------------------------
 
  qmailctl stat
 
  (Should look somewhat like this)
 
      [root@gateway ~]# qmailctl stat
      authlib: up (pid 2425) 65 seconds
      clamd: up (pid 2425) 65 seconds
      imap4: up (pid 2421) 65 seconds
      imap4-ssl: up (pid 2423) 65 seconds
      pop3: up (pid 2414) 65 seconds
      pop3-ssl: up (pid 2409) 65 seconds
      send: up (pid 2416) 65 seconds
      smtp: up (pid 2418) 65 seconds
      spamd: up (pid 2407) 65 seconds
      authlib/log: up (pid 2417) 65 seconds
      clamd/log: up (pid 2417) 65 seconds
      imap4/log: up (pid 2422) 65 seconds
      imap4-ssl/log: up (pid 2424) 65 seconds
      pop3/log: up (pid 2415) 65 seconds
      pop3-ssl/log: up (pid 2413) 65 seconds
      send/log: up (pid 2420) 65 seconds
      smtp/log: up (pid 2419) 65 seconds
      spamd/log: up (pid 2408) 65 seconds
      [root@gateway ~]#
 
  Add a domain:
 
      /home/vpopmail/bin/vadddomain your-domain.com
<postmaster -password>
 
  Add a user:
 
      /home/vpopmail/bin/vadduser you@your-domain.com <your -password>
 
  Edit /etc/php.ini and set register_globals = On
 
      service httpd restart  
 
  Bring up your browser and go to:
 
      http://www.your-domain.com/admin-toaster/
 
        Username: admin
        Password: toaster
 
      Change your password . . . 
 
  Edit /etc/php.ini and set register_globals = Off
 
      service httpd restart  
 
  Check your mail server:
 
      http://www.your-domain.com/webmail
 
      login with your full email address and your password
 
      Send yourself an email - should show right away
 
      Send an email to yourself if you have another address
 
      Go to your other email account and reply to the message you sent
 
  If Isoqlog doesn't show right away, do this:
 
      sh /usr/share/toaster/isoqlog/bin/cron.sh
 
--------------------------------------------------------------------
10. Add domainkeys:
--------------------------------------------------------------------
 
  Make dir for yourdomain.com: 
 
      mkdir /var/qmail/control/domainkeys/your-domain.com 
 
  Make domainkey (Remove the "\"): 
 
      dknewkey /var/qmail/control/domainkeys/your-domain.com/private &gt; \
                                                         your-domain-dk.txt 
 
      chown root:qmail /var/qmail/control/domainkeys/your-domain.com/private
      chmod 444 /var/qmail/control/domainkeys/your-domain.com/private
 
  Make dns entry: 
 
      BIND - in the your-domain.com zone file (see yourdomain-dk.txt):
 
         private._domainkey IN TXT "k=rsa; p=MEwwDQY . . . to end of key"
            (NOTE QUOTATION MARKS MUST BE THERE) 
 
      DJBDNS - in /var/djbdns/tinydns/root/data (make from your-domain-dk.txt): 
 
        '_domainkey.your-domain.com:o=-; r=postmaster@your-domain.com
        'private._domainkey.your-domain.com:k=rsa; p=MEwwDQY . . . to end of key 
 
  Test your mailserver:
 
      http://domainkeys.sourceforge.net/policycheck.html
      http://domainkeys.sourceforge.net/selectorcheck.html
 
      In squirrelmail, send a test email, select View Full Header and you
      should find something like the following:
 
      ----------- snip ------------
      DomainKey-Status: good
      Received: by simscan 1.2.0 ppid: 22641, pid: 22644, t: 0.8416s
           scanners: clamav: 0.88.2/m:38/d:1476 spam: 3.1.1
      X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on ndh1.whatgives.org
      X-Spam-Level: *
      X-Spam-Status: No, score=1.6 required=5.0 tests=FROM_DOMAIN_NOVOWEL
           autolearn=no version=3.1.1
      Received: from unknown (HELO ns1.ndhsdns.com) (216.221.100.227)
           by ndh1.whatgives.org with (DHE-RSA-AES256-SHA encrypted) SMTP; 22 May 2006 20:03:36 -0000
      Received-SPF: pass (ndh1.whatgives.org: SPF record at ndhsdns.com designates 216.221.100.227 as permitted sender)
      Received: (qmail 28034 invoked by uid 89); 22 May 2006 20:03:36 -0000
      Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
      DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;
           s=private; d=ndhsdns.com;
           b=XVKQZe446BXMnSoQKvgchf0DRx4v8YQYZn5KVLj5O8XYf7V1dX7ETaJ1VGWGp5Bf ;
      Received: from unknown (HELO www.ndhsdns.com) (127.0.0.1)
           by ns1.ndhsdns.com with SMTP; 22 May 2006 20:03:36 -0000
      ----------- snip ------------
 
--------------------------------------------------------------------
11. Logs for all packages except freshclam are at:
--------------------------------------------------------------------
 
  /var/log/qmail/*
 
  Freshclam is at /var/log/clamav
</your></postmaster></enter></nick>

Notes:
The only problem I stumbbled upon is when using vadddomain, as the mysql password was still set to “SsEeCcRrEeTt”. Edit these files before adding a domain. I dont use the web interface when adding a domain, i prefer it by command line.

[root@mail vpopmail]# find . | grep mysql
./etc/vpopmail.mysql.dist
./etc/vpopmail.mysql

After all the installs is completed, reboot and check if qmail is running.

Administrator links:
http://your-mail-server-ip/admin-toaster/ -> this is the main administration interface
http://your-mail-server-ip/qmailadmin/ -> administrative interface to manage accounts
http://your-mail-server-ip/webmail/ -> an email account interface

Categories: linux Tags: , ,

Verbose Installation of ColdFusion and Apache in Linux

January 18th, 2007 rupert Comments off

You would find all the installers here:

http://192.168.1.10/installers/

1. Edit hosts file as follows:

[root@appserver php]# more /etc/hosts

# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1               localhost.localdomain localhost
192.168.1.10            appserver

2. Edit your host as follows:
[root@appserver php]# more /etc/sysconfig/network

NETWORKING=yes
HOSTNAME=appserver
GATEWAY=192.168.1.1

3. Apache:

http://192.168.1.10/installers/httpd-2.0.58.tar.gz

# tar -zxvf httpd-2.0.58.tar.gz
# cd httpd-2.0.58
# ./configure --help
# ./configure --prefix=/usr/local/apache2 --enable-so --with-mpm=prefork --enable-rewrite
# make
# make install

3.1 Starting apache2 on boot

#cd /usr/local/apache2/bin
#cp -Rf apachectl /etc/init.d/httpd

3.2 Edit httpd as follows

#cd /etc/init.d
#vi httpd

#!/bin/sh
# chkconfig: 35 80 15
# processname: httpd
# description: httpd
# Copyright 2000-2005 The Apache Software Foundation or its licensors, as
# applicable.

3.3 create runlevels for httpd

#/sbin/chkconfig --add httpd
#/sbin/chkconfig --level 345 httpd on
#/etc/init.d/httpd start

4. ColdFusion
4.1 Download http://192.168.1.10/installers/coldfusion-61-lin.bin
# chmod +x coldfusion-61-lin.bin

4.2 Run installer
# ./coldfusion-61-lin.bin

4.3 ColdFusion install:

Launching installer...
 
Preparing CONSOLE Mode Installation...
 
===============================================================================
Choose Locale...
----------------
 
  -&gt;1- English
 
CHOOSE LOCALE BY NUMBER: 1
 
DO YOU ACCEPT THE TERMS OF THIS LICENSE AGREEMENT?
    (Y/N) : Y
 
The installer has found the following errors/warnings:
 
Warning: C++ compatibility pack
 
The installer was unable to determine if the C++ compatibility pack is
installed by running the following command: rpm --query compat-libstdc++
If this machine uses a version of glibc that is 2.2.5.x or higher the
compatibility pack is necessary for C++ custom tags, Verity, and web server
connectors to work properly.
 
For more information see the installation manual at
http://www.macromedia.com/go/livedocs_cfmx61docs
 
PRESS  TO CONTINUE WITH THE INSTALLER:
 
===============================================================================
Existing Macromedia ColdFusion MX Installation?
-----------------------------------------------
 
You cannot install a new installation of Macromedia ColdFusion MX 6.1 if you
have an existing version of Macromedia ColdFusion MX installed on this
computer.
 
If you do have a previous version installed, the installer can update your
current current installation to Macromedia ColdFusion MX 6.1.
 
Is there already a version of Macromedia ColdFusion MX installed on this
   computer? (Y/N): N
===============================================================================
Install Type
------------
 
Choose the type of Macromedia ColdFusion MX installation you want to perform:
 
  -&gt;1- Install new version of ColdFusion MX
    2- 30-day trial (Enterprise Edition)
    3- Developer Edition (Single-IP Only)
 
Installation Choice: 1
 
Serial Number: CED600-18040-87264-92597
 
===============================================================================
Install Configuration
---------------------
 
What kind of installation do you want?
 
  -&gt;1- Server configuration
    2- J2EE configuration (ColdFusion MX with JRun 4)
    3- J2EE configuration (EAR file)
    4- J2EE configuration (WAR file)
 
Please choose one of the following options: 1
 
===============================================================================
Choose Install Folder
---------------------
 
Select the directory in which to install Macromedia ColdFusion MX.
 
Directory:
 
  Default Install Folder: /opt/coldfusionmx
 
ENTER AN ABSOLUTE PATH, OR PRESS  TO ACCEPT THE DEFAULT
: [just press enter]
 
===============================================================================
Existing ColdFusion 4.5 or 5 Installation?
------------------------------------------
 
The installer can migrate your settings from ColdFusion 4.5 or 5 if you have
an
installation on this computer.
 
Is there a version of ColdFusion 4.5 or 5 installed on this computer? (Y/N) N
 
===============================================================================
Configure Web Servers
---------------------
 
Please configure your webserver(s).  If you do not configure a webserver the
built-in webserver will be used on port 8500.
 
    1- Add Web Server Configuration
  -&gt;2- Continue with installation
 
Choice: 2
 
===============================================================================
Runtime User
------------
 
Enter the name of the runtime user.   This user must exist already on the
system.
 
User Name: (DEFAULT: nobody): [enter]
 
===============================================================================
Init System
-----------
 
Would you like ColdFusion MX to start at System Boot? Please note, this is
only supported on Solaris and Red Hat Linux. If you answer no to this, you can add
ColdFusion MX to system boot post install by running
/opt/coldfusionmx/bin/cfmx-init.sh
 
Answer (Y/N): Y
 
===============================================================================
Administrator Password
----------------------
 
Enter the password you will use to control access to the ColdFusion MX
Administrator.
 
This field is required.
 
Password:
Confirm Password:
 
===============================================================================
Installation Confirmation
-------------------------
 
Installation Type:
  Server configuration
 
Licensing:
  Fully Licensed Edition
  Serial Number: CED600-18040-87264-92597
 
Install Directories:
  Product: /opt/coldfusionmx
  Web root: /opt/coldfusionmx/wwwroot
 
Server Information:
  Web Server: Built-in Web Server
  Port: 8500
 
Disk Space Information (for Installation Target):
  Required: 433,293,879 bytes
  Available: 25,831,923,712 bytes
 
PRESS  TO CONTINUE:
[enter]
 
PRESS  TO CONTINUE:
 
===============================================================================
Installing...
-------------
 
 [==================|==================|==================|==================]
 [------------------|------------------|------------------|------------------]
 
===============================================================================
Installation Complete
---------------------
 
You have successfully completed the first step in installing Macromedia
ColdFusion MX.
 
To continue with your installation, go to /opt/coldfusionmx/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  TO EXIT THE INSTALLER:

5. Start coldfusion
# /etc/init.d/coldfusionmx start
Starting ColdFusion MX…
There may be a few moments before you can access the ColdFusion MX administrator. This is normal.
======================================================================
ColdFusion MX has been started.
ColdFusion MX will write logs to /opt/coldfusionmx/logs/cfserver.log
======================================================================

6. Bind ColdFusion with Apache.

$JAVA_EXECUTABLE -jar $CF_DIR/runtime/lib/wsconfig.jar \
        -ws apache \
        -dir /usr/local/apache2/conf \
        -bin /usr/local/apache2/bin/httpd \
        -script /usr/local/apache2/bin/apachectl \
        -coldfusion -v


[root@appserver /]# cd /opt/coldfusionmx/bin/connectors/
[root@appserver connectors]# ls
apache_connector.sh connectorslist.sh iplanet_connector.sh remove_all_connectors.sh upgrade_all_connectors.sh
[root@appserver connectors]# sh -v apache_connector.sh

You can check if your binding is successfull if you see the ff
messages:
 
Found JRun server default at 127.0.0.1:2901
CentOS release 4.4 (Final)
Detected Red Hat Linux release 7 or lower
Using Apache binary /usr/local/apache2/bin/httpd
Server version: Apache/2.0.58
Apache 2.0.58 is supported
Using Apache control script /usr/local/apache2/bin/apachectl
Parsing Apache configuration file /usr/local/apache2/conf/httpd.conf
Exec'ing chmod 777 /opt/coldfusionmx/runtime/lib/wsconfig/1
Set permission to 777 on /opt/coldfusionmx/runtime/lib/wsconfig/1
Exec'ing chmod +x /opt/coldfusionmx/runtime/lib/wsconfig/1/mod_jrun20.so
Set permission to execute on /opt/coldfusionmx/runtime/lib/wsconfig/1/mod_jrun20.so
Created file /opt/coldfusionmx/runtime/lib/wsconfig/1/mod_jrun20.so
Wrote file /usr/local/apache2/conf/httpd.conf
Added JRun configuration to Apache configuration file /usr/local/apache2/conf/httpd.conf
Created file /opt/coldfusionmx/runtime/lib/wsconfig/1/README.txt
Wrote file /opt/coldfusionmx/runtime/lib/wsconfig/wsconfig.properties
Exec'ing /usr/local/apache2/bin/apachectl restart
httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
Restarted Apache server
The Apache connector was installed to /usr/local/apache2/conf

7. Your httpd.conf file should contain the ff:

------------------------httpd.conf------------------------------
# NOTE: DO NOT ATTEMPT TO PUT THIS IN YOUR HTTPD.CONF MANUALLY.
LoadModule jrun_module /opt/coldfusionmx/runtime/lib/wsconfig/1/mod_jrun20.so
 
    JRunConfig Verbose false
    JRunConfig Apialloc false
    JRunConfig Ssl false
    JRunConfig Ignoresuffixmap false
    JRunConfig Serverstore /opt/coldfusionmx/runtime/lib/wsconfig/1/jrunserver.store
    JRunConfig Bootstrap 127.0.0.1:51010
    #JRunConfig Errorurl
    AddHandler jrun-handler .jsp .jws .cfm .cfml .cfc

8. Copy ColdFusion Administrator to your webroot
# cd /usr/local/apache2/htdocs
# rm -Rf *
# cp -Rf /opt/coldfusionmx/wwwroot/CFIDE .
# ln -s CFIDE cfide

Open your browse and point to: http://192.168.1.15/cfide/administrator/

9. CFADMIN settings:
- Check Disable RDS Services. Press Next
- Install Documents: Yes. Press Next
- OK

10. Copy cfdocs to webroot:
# cp -Rf /opt/coldfusionmx/wwwroot/cfdocs /usr/local/apache2/htdocs/

Categories: coldfusion Tags: , ,