Verbose Installation of ColdFusion and Apache in Linux
You would find all the installers here:
http://192.168.1.10/installers/
- 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 |
- Edit your host as follows:
[root@appserver php]# more /etc/sysconfig/network
NETWORKING=yes HOSTNAME=appserver GATEWAY=192.168.1.1 |
- 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 |
- 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... ---------------- ->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: ->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? ->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 ->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: |
-
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
====================================================================== -
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 |
<br />
[root@appserver /]# cd /opt/coldfusionmx/bin/connectors/<br />
[root@appserver connectors]# ls<br />
apache_connector.sh connectorslist.sh iplanet_connector.sh remove_all_connectors.sh upgrade_all_connectors.sh<br />
[root@appserver connectors]# sh -v apache_connector.sh<br />
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 |
- 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 |
- 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/
-
CFADMIN settings:
– Check Disable RDS Services. Press Next
– Install Documents: Yes. Press Next
– OK -
Copy cfdocs to webroot:
# cp -Rf /opt/coldfusionmx/wwwroot/cfdocs /usr/local/apache2/htdocs/