Coldfusion 9 on i386 (32bit) CentOS 5.4
From Ye Ole Stash
Contents |
System Setup
- Apache Version : Apache/2.2.3
- CentOS Release : 5.4 i386/32bit
- Coldfusion Install Location : /usr/local/coldfusion9
- Text Editor Used: EMACS #This is here just so folks know we emacs users are still alive and that vi hasnt taken over the world.
- System State: Development
- SELinux : Disabled
- This is two part. One because setting up SELinux is beyond the scope of this document and because this system is for development. When I deploy this I might do a write up on how to secure the system using SELinux till then you are own your own with SELinux or you can disable it like I did.
- This Works ON 64bit Systems as well
RPMs
- Installed Package Groups
Installed Groups: Development Libraries Dialup Networking Support Editors Emacs Java Java Development Legacy Network Server Legacy Software Development Legacy Software Support Mail Server MySQL Database Network Servers System Tools Text-based Internet Web Server Yum Utilities
- Additional Needed RPMs
compat-libstdc++-33-3.2.3-61.i386 (needed for a libstdc++.so.5 dependency) httpd-devel (needed for apxs)
Source/Binary Files Needed
Install
- A Drive-By style install
[root@localhost ~]# ./ColdFusion_9_WWE_linux.bin
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...
Launching installer...
# LOTS OF STUFF
PRESS <ENTER> TO CONTINUE: # Hit enter...unless you like seeing this line over and over again.
===============================================================================
License Agreement
-----------------
Installation and Use of Adobe ColdFusion 9 Requires Acceptance of the Following
License Agreement:
#LOTS MORE STUFF ...that most folks don't read. Also several more '''PRESS <ENTER>''' lines in case you didnt get enough of them earlier
Adobe_ColdFusion-en_US-20090811_0930
DO YOU ACCEPT THE TERMS OF THIS LICENSE AGREEMENT? (Y/N): #Tough call I know, especially considering you didn't read it. Personally I chose Y but the call is yours.
If you do not have a serial number, select either 30-day trial or Developer
Edition.
->1- Install new version of Adobe ColdFusion 9 with a serial number
2- 30-day trial
3- Developer Edition
Installation Choice: 2
What kind of installation do you want?
->1- Server configuration
2- Enterprise Multiserver configuration
3- J2EE configuration (EAR file)
4- J2EE configuration (WAR file)
Choose one of the following options:: 1
Subcomponent installation
-------------------------
The following options are available for installation.
An option marked with "[X]" in front will be installed and an option with "[ ]"
will not. Choosing an option will toggle it on or off
[X] 1) ColdFusion 9 Documentation
[X] 2) ColdFusion 9 Solr Services
[X] 3) ColdFusion 9 Search Services
[X] 4) Start ColdFusion on system init
5) Continue with installation
Select an option: 5
Choose Install Folder
---------------------
Select the directory where you want to install Adobe ColdFusion 9.
Directory:
Default Install Folder: /opt/coldfusion9
ENTER AN ABSOLUTE PATH, OR PRESS <ENTER> TO ACCEPT THE DEFAULT
: /usr/local/coldfusion9 #I know I put things in strange places
INSTALL FOLDER IS: /usr/local/coldfusion9
IS THIS CORRECT? (Y/N): y #This sorta reminds me of Windows and its 'are you sure' nag ware.
Earlier Versions of Adobe ColdFusion installed?
-----------------------------------------------
If you installed an earlier version of ColdFusion on this computer, you can migrate your settings to Adobe ColdFusion 9.
Is there an earlier version of ColdFusion installed on this computer (for example, ColdFusion MX 7 or ColdFusion 8)?
1- Yes
->2- No
ENTER THE NUMBER FOR YOUR CHOICE, OR PRESS <ENTER> TO ACCEPT THE DEFAULT:: 2
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: 1
->1- Apache
2- Sun ONE Web Server (iPlanet)
3- Cancel
What kind of web server are you configuring: 1
What directory contains your Apache configuration file (httpd.conf)? (For
example, on Red Hat Linux it could be located in the /etc/httpd/conf
directory if you installed from an rpm, or for SuSe Linux, it could be in
/etc/apache2)
Directory: /etc/httpd/conf
****************************************************
Where is the Apache program binary file? (For example, on Red Hat Linux it
could be /usr/sbin/httpd if you installed from an rpm, or for SuSE Linux it
could be located at /usr/sbin/httpd2) If you have more than one instance of
Apache on your computer, enter the binary file location for the Apache web
server that will use ColdFusion. (Note: this is not the Apache start and
stop script.)
File: /usr/sbin/httpd
****************************************************
Where is the control file that you use to start and stop the Apache web
server? (For example, this could be /etc/init.d/httpd on Red Hat Linux if
you installed from an rpm, /usr/sbin/apache2ctl on SuSe Linux, or it could
be /usr/local/apache/bin/apachectl on hand-compiled versions.)
File: /etc/init.d/httpd
****************************************************
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- Remove Web Server Configuration
3- Edit:Apache : /etc/httpd/conf
->4- Continue with installation
Choice: 4
===============================================================================
Choose Adobe ColdFusion 9 Administrator Location
------------------------------------------------
Select the location of the web root for Adobe ColdFusion 9. This is where the installer places the Adobe ColdFusion 9 Administrator.
This directory must be the web root for one of the websites to be configured for use with Adobe ColdFusion 9.
Directory: (DEFAULT: /var/www/html): /var/www/html #This is what I am using on a dev system I recommend you change this to match your system. Some options /usr/local/sites/$domain /var/www/html/$domain /home/$domain and so on.
===============================================================================
Runtime User
------------
Enter the name of the runtime user. This user must already exist on the system.
User Name: (DEFAULT: nobody): nobody
===============================================================================
Configure ColdFusion with OpenOffice
------------------------------------
Configuring OpenOffice installation with ColdFusion will enable Office documents to be processing using OpenOffice. If OpenOffice is not configured ColdFusion will not be able to convert some Microsoft Office Documents to PDF. Check the documentation for more details.
1- Configure ColdFusion with local Openoffice installation
->2- Skip
ENTER THE NUMBER FOR YOUR CHOICE, OR PRESS <ENTER> TO ACCEPT THE DEFAULT:: 1- This is optional but I am a glutton for punishment. If you choose 1 click on my Making sure I have enough files installed for CF9 and OO to play nice wiki page.
Configure OpenOffice -------------------- Installer has detected OpenOffice installation at /usr/lib/openoffice.org. Select 'ENTER' to continue or enter a new location. Note: Make sure "nobody" has permission to execute soffice. Directory: (DEFAULT: /usr/lib/openoffice.org): =============================================================================== Administrator Password ---------------------- Enter the password that you will use to restrict access to the ColdFusion Administrator. This field is required. Password: Confirm Password: ssword:: =============================================================================== Enable RDS ---------- The ColdFusion Remote Development Service (RDS) lets developers using Adobe tools remotely connect to this server for development purposes. RDS is required for Line Debugging, Report Builder, and Dreamweaver Extensions. If this is a production server, Adobe recommends that you disable RDS. Note, however, that disabling RDS also disables debugging, the directory browsing applets in the ColdFusion Administrator and some of the functionality in the Report Builder. Enable RDS (Y/N): y Password: 0fM14m12010 Confirm Password: 0fM14m12010 =============================================================================== Installation Confirmation ------------------------- Installation Type: Server configuration Licensing: 30-day trial Installation Directories: Product: /usr/local/coldfusion9 Web root: /var/www/html Server Information: Web Server: Apache (/etc/httpd/conf) Port: Search Services: installed ColdFusion Solr Search Services: installed Documentation: installed RDS: enabled Disk Space Information (for Installation Target): Required: 1,013,165,956 bytes Available: 28,703,068,160 bytes PRESS <ENTER> TO CONTINUE: =============================================================================== Installing... ------------- [==================|==================|==================|==================] [------------------|------------------|------------------|------------------] =============================================================================== Installation Complete --------------------- You have successfully completed the first step in installing Adobe ColdFusion 9. To continue with your installation, go to /usr/local/coldfusion9/bin and type "./coldfusion start" to start your server. Once the server, is started log in to the Configuration Wizard at http://[machinename]/CFIDE/administrator/index.cfm Press Enter to exit the installer:
Test Drive
- http://[machinename]/CFIDE/administrator/index.cfm
- you can use a single admin or setup multiple users with different levels of access based on need.
- Add a test index.cfm doc to show CF info:
HI WORLD <cfscript> writeDump(server); </cfscript>
Problems
- .cfm pages dont open in browser
- Check the /usr/local/coldfusion9/ConnectorInstall0.txt for errors.
- Cannot load /usr/local/coldfusion9/runtime/lib/wsconfig/1/mod_jrun22.so into server: /usr/local/coldfusion9/runtime/lib/wsconfig/1/mod_jrun22.so: failed to map segment from shared object: Permission denied
- This is because SELinux is being pesky again. As noted above SELinux can play tricks on you when used with Coldfusion.
- One fix (even though it applies to RHEL4) is found on Adobes website
- Error : Fail to lookup ClusterManager instance
- Fix: Make sure host name is set right in /etc/hosts