Ubuntu에서 Adobe Coldfusion을 설치하는 방법은 Windows에서 만큼 매우 쉽습니다. 더욱이 Railo나 Open Bluedragon과 같은 오픈소스 Coldfusion Engine의 경우 대부분 Resin, Tomcat 등에 Deploy해서 사용하므로 시스템관리자 또는 프로그래머가 JDK를 설치해주고, Apache 및 IIS 등과 Resin, Tomcat를 연동해주고, cfm(또는 cfml파일)파일의 처리옵션 등을 미리 지정해주는 약간의 불편함이 있습니다만, Adobe Coldfusion의 경우 상용서버답게 알아서 자동으로 웹서버를 검출, 연동처리해 줍니다. 특히 Windows에서는 IIS에서 cfm파일(또는 cfml파일)을 자동으로 인식하도록 추가적인 작업마저도 할 필요가 없이 설치됩니다.
물론, Linux에서도 대부분의 작업이 자동으로 설치됩니다. 물론, JDK도 필요없습니다. Adobe Coldfusion 설치파일 자체에 JRE를 내장하고 있기 때문인데요. 이번에는 Ubuntu Server에서 Adobe Coldfusion을 설치해보는 과정을 설명드리고자 합니다.(꼭 Ubuntu Server가 아닌, Desktop환경에서도 같은 과정으로 설치합니다.) 먼저, Ubuntu에서 다음과 같은 선행작업이 되어 있다고 가정합니다.
1. 기본적으로 Ubuntu Server 설치시, APM을 설치하였다. (APM을 APT패키지관리자로 설치하였다고 가정합니다.)
2. APT를 이용하여 Aapche2를 설치한 경우 기본 경로는 아래와 같습니다.
- apache2의 설치경로 : /etc/apache2
- apache2의 환경설정파일 : /etc/apache2/apache2.conf
- apache2의 기본 웹루트 환경설정파일 : /etc/apache2/sites-avalable/default
- 위 기본웹루트 환경설정 파일을 수정하여, 기본 웹루트 디렉토리를 /var/www가 아닌, /home/사용자계정/public_html로 변경하였다.
3. JDK를 설치하지 않았다. (설치했어도 상관없습니다.)
4. Ubuntu설치시 사용자 계정을 nooree라고 했다.
(이 부분은 여러분이 Ubuntu를 설치할때 기본 사용자명으로 지정한 것을 사용하면 됩니다. 이하 nooree라는 것은 저의 시스템 사용자명이니 오해없길 바랍니다.)
5. Apache2 웹서버의 DirectoryIndex부분에 index.cfm, index.cfml을 지정하였다.
(이렇게 하지 않으면 Apache에서 cfm파일을 일반 바이니리 파일로 인식하고 다운로드 시켜버립니다. 이부분은 Apache 웹서버관련 사이트를 참조하세요.)
자, 설치준비는 대충 이렇게 되어 있다고 가정하고, 자신의 시스템이 64bit인지, 32bit인지 구별하여 Adobe Coldfusion 설치파일을 다운로드 합니다. 다운로드 주소는 다음과 같습니다.
https://www.adobe.com/cfusion/tdrc/index.cfm?product=coldfusion
(Adobe에 사용자 등록이 미리 되었다면 로그인 후 다운로드 하면되고, 그렇지 않다면 신규 등록을 한 후 다운로드합니다.)
다운로드할 파일은 Linux버전을 받으시면 됩니다만, Adobe Coldfusion은 한글버전이 없으므로 English버전을 받습니다.(예전의 Macromedia시절의 Coldfusion MX 6.1버전의 경우 한글버전이 있습니다.)
- 32bit 시스템 : coldfusion-801-lin.bin
- 64bit 시스템 : coldfusion-801-lin64.bin
위와같이 시스템별로 받습니다.
다운로드한 설치파일을 FTP, SFTP 등을 통하여 자신의 시스템으로 업로드 합니다. 위의 가정하라면 업로드한 경로는 /home/nooree/ 으로 업로드가 되겠죠? (굳이 public_html 이하로 업로드할 필요는 없습니다.) 예를 들어, /home/nooree/coldfusion-801-lin.bin 에 설치파일이 있다고 가정합시다. 제일먼저 해야 할 일은 Adobe Coldfusion을 Linux 시스템에 설치할때 다음의 라이브러리가 필요하다는 것입니다. 대부분 최신의 Ubuntu시스템에서는 libstdc++6 이 설치되어 있겠지만 요구되는 버전은 libstdc++5 이므로 이 패키지를 설치합니다. 설치를 위해서는 SSH로 접속하거나 시스템에서 직접 작업을 하면됩니다.
sudo apt-get install libstdc++5
위와 같이 관리자 권한으로 설치합니다. 위 라이브러리를 설치하지 않아도 Adobe Coldfusion을 설치하는데는 문제가 없지만, 나중에 <cfimage>태그 등을 사용할 수 없게 됩니다. 자, 이제 본격적으로 설치해 봅시다. 먼저 /home/nooree/coldfusion-801-lin.bin(32bit파일의 경우) 파일을 설치할 수 있도록 다음과 같이 실행권한을 줍니다. /home/nooree로 이동하여,
sudo chmod 755 coldfusion-801-lin.bin (32bit경우)
sudo chmod 755 coldfusion-801-lin64.bin (64bit경우)
그런다음 다음과 같이 실행합니다. sudo ./coldfusion-801-lin.bin
|
nooree@ubuntu:~$ sudo ./coldfusion-801-lin.bin [sudo] password for nooree: 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...
Preparing CONSOLE Mode Installation...
|
위와 같이 설치파일을 실행하면, 자신의 계정의 패스워드를 물어봅니다.(Ubuntu에서 sudo명령어로 관리자 역할로 작업을 하면 관리자계정의 패스워드를 물어봅니다.) 패스워드를 넣고, 기다리면 설치준비를 한다는 메시지가 나타납니다. 이제 단계별로 설치시의 옵션만 잘 지정해 주면 됩니다.
|
=============================================================================== Choose Locale... ----------------
1- English
CHOOSE LOCALE BY NUMBER: 1 =============================================================================== Adobe ColdFusion 8 (created with InstallAnywhere by Macrovision) -------------------------------------------------------------------------------
|
첫번째 설치옵션은 언어선택입니다. 만약 일본어 설치파일을 다운로드 했다면 당연히 English와 Japanese를 선택하는 옵션이 있겠죠? 여기서는 그냥 키보드의 숫자1번을 눌러 English로 설치합니다.
|
=============================================================================== Introduction ------------
Welcome to the Installation Wizard for Adobe ColdFusion 8
This wizard installs Adobe ColdFusion 8 on your computer or produces an EAR or WAR file for deployment on your J2EE application server. Adobe recommends that you exit from all running applications before proceeding.
Respond to each prompt to proceed to the next step in the installation. If you want to change something on a previous step, type 'back'.
You may cancel this installation at any time by typing 'quit'.
WARNING: This program is protected by copyright laws and international treaties.
PRESS <ENTER> TO CONTINUE:
|
위 화면은 설치 안내를 보여주며, 내용이 많으므로 Enter키를 눌러 다음페이지로 마지막까지 내려가면 됩니다.
|
=============================================================================== License Agreement -----------------
Installation and Use of Adobe ColdFusion 8 Requires Acceptance of the Following License Agreement:
ADOBE SYSTEMS INCORPORATED ADOBE COLDFUSION SOFTWARE Software License Agreement
Adobe is either a registered trademark or trademark of Adobe Systems Incorporated in the United States and/or other countries. All other trademarks are the property of their respective owners.
Adobe ColdFusion Software EULA 110607
DO YOU ACCEPT THE TERMS OF THIS LICENSE AGREEMENT? (Y/N): y
|
위 화면은 라이센스 부분이며, Enter키를 눌러 다 읽어본 다음, 마지막의 메시지에 Y를 입력하고, 동의합니다.
|
=============================================================================== Install Type ------------
If you do not have a serial number, select either 30-day trial or Developer Edition.
->1- Install new version of Adobe ColdFusion 8 with a serial number 2- 30-day trial 3- Developer Edition
Installation Choice: 3
|
위 화면은 설치 타입을 지정하는 화면입니다. 1번은 시리얼넘버를 가지고 있는 정식 상용버전으로 사용할 경우이며, 2번은 30일 데모버전, 3번은 디벨로퍼버전으로 설치한다는 의미입니다. 2번의 30일 데모버전의 경우 30일간 정식버전과 동일하게 작동하지만 30일이 지나면, 디벨로퍼버전으로 작동합니다. 디벨로퍼버전의 경우 동시접속 아이피가 2개로 제한됩니다. 단, 기능상의 제약사항은 없습니다. 여기서는 3번을 눌러 개발자버전으로 설치합시다.(참고로, 이 부분에서 개발자버전을 설치하고, 나중에 정식라이센스를 구매한 경우나 라이센스가 있는데 실수로 2번이나, 3번을 눌러 설치했어도 나중에 Coldfusion 웹 관리자모드에서 시리얼번호만 입력하면 라이센스의 종류에 따라 자동으로 Enterprise 또는 Standard 버전으로 작동하므로 걱정하지 않으셔도 됩니다.)
|
=============================================================================== 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)
Choose one of the following options:: 1
|
위 화면은 설치옵션을 보여주는 화면입니다. Adobe Coldfusion을 단독으로 사용할 경우 1번을, 여러 Coldfusion서버를 구성할 경우 2번을, 3번과 4번의 경우 만약 기존에 Resin, Jrun, Tomcat 등의 J2EE서버가 있는 경우 Adobe Coldfusion을 해당 J2EE서버에 Deploy할 경우 선택하면 됩니다. 여기서는 단독으로 설치할 것이므로 1번을 선택합니다.
|
=============================================================================== Is Adobe ColdFusion 8 (Server Configuration) Installed? -------------------------------------------------------
You cannot install the server configuration of Adobe ColdFusion 8 if it is already installed on this computer.
Is there already a server configuration of Adobe ColdFusion 8 installed?
1- Yes ->2- No
ENTER THE NUMBER FOR YOUR CHOICE, OR PRESS <ENTER> TO ACCEPT THE DEFAULT: : 2
|
위 화면은 시스템에 Adobe Coldfusion이 이미 설치된 경우가 있냐는 화면입니다. 처음 설치하는 것이므로 2번을 선택하고 다음으로 넘어갑니다.
|
=============================================================================== 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 8 Documentation [X] 2) Adobe LiveCycle Data Services ES [X] 3) ColdFusion 8 Search Services [X] 4) Start ColdFusion on system init
5) Continue with installation
Select an option: 5
|
위 화면은 설치시 어떤 것을 같이 설치할지 Adobe Coldfusion의 설치 컴포넌트를 선택하는 화면입니다. 1)은 Coldfusion 문서를 같이 설치한다는 의미이며, 2)는 LCDS를 같이 설치한다는 의미이고, 3)은 Verity검색엔진을 같이 설치한다는 의미이며, 4)는 시스템이 재부팅될때 자동으로 Coldfusion이 구동되도록 설정한다는 의미입니다. 각각의 번호앞의 X표시는 선택하겠다는 의미이므로 만약 LCDS를 설치하지 않겠다면 숫자키 2번을 눌러, 설치하지 않겠다는 X표시를 없애주면 됩니다. 그리고 마지막으로 5)는 다음 설치화면으로 넘어간다는 의미이므로 위 화면상으로는 1)부터 4)까지 모두 X표시로 선택되어 있으므로 모두 설치하겠다는 의미입니다. 숫자키5번을 눌러 다음 설치화면으로 넘어갑니다.
|
=============================================================================== Choose Install Folder ---------------------
Select the directory where you want to install Adobe ColdFusion 8.
Directory:
Default Install Folder: /opt/coldfusion8
ENTER AN ABSOLUTE PATH, OR PRESS <ENTER> TO ACCEPT THE DEFAULT :
|
위 화면은 Adobe Coldfusion의 설치 경로를 어디로 지정하겠냐는 화면입니다. 기본값은 /opt/coldfusion8에 설치를 합니다. 기본값으로 지정하기 위하여 그냥 Enter키를 눌러 다음 화면으로 넘어갑니다. 만약 자신이 별도로 지정하는 경로가 있다면, 가령 /etc/coldfusion에 설치한다면 그대로 경로를 적어주시면 됩니다. 입력시 오타가 있는 경우 Del키나, Backspace키가 작동하지 않습니다. 이런 경우 Ctrl키를 누른 상태에서 Backspace키를 누르면 오타를 지울 수 있습니다.
|
=============================================================================== License Agreement -----------------
Installation and Use of Adobe LiveCycle Data Services ES Requires Acceptance of the Following License Agreement:
ADOBE SYSTEMS INCORPORATED ADOBE LIVECYCLE DATA SERVICES SOFTWARE Software License Agreement
PRESS <ENTER> TO CONTINUE:
Adobe is either a registered trademark or trademark of Adobe Systems Incorporated in the United States and/or other countries.
Adobe LiveCycle Data Services Software EULA 030607
DO YOU ACCEPT THE TERMS OF THIS LICENSE AGREEMENT? (Y/N): y
|
위 화면은 설치 라이센스의 동의 화면입니다. 내용이 길므로 Enter키를 눌러 다음 페이지를 본 후 마지막에 Y키를 눌러 동의합니다.
|
===============================================================================
If you do not have an Adobe LiveCycle Data Services ES serial number, leave the serial number field blank to install a 120-day trial.
After the trial period expires, LCDS becomes Express edition until registered. The Express edition is a free, non-expiring commercial use product for application deployed on a single machine with not more than one CPU.
Enter your serial number for Adobe LiveCycle Data Services ES. Example (you can omit the dashes if you prefer): XXXX-XXXX-XXXX-XXXX-XXXX-XXXX
Serial Number::
|
위 화면은 시리얼 번호가 있는 경우 시리얼 번호를 입력하는 화면입니다. 정식라이센스가 있는 경우 입력하시고, 없는 경우(데모버전이나 개발자버전으로 설치하는 경우)는 그냥 Enter키로 다음 화면으로 넘어갑니다. 시리얼번호를 입력시 오타가 난 경우 Ctrl키를 누른 상태에서 Backspace키를 눌러 수정합니다.
|
=============================================================================== 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 8.
Is there an earlier version of ColdFusion installed on this computer (for example, ColdFusion 6 or ColdFusion MX 7)?
1- Yes ->2- No
ENTER THE NUMBER FOR YOUR CHOICE, OR PRESS <ENTER> TO ACCEPT THE DEFAULT: : 2
|
위 화면은 Coldfusion MX7 또는 그 이하버전이 시스템에 설치되어 있느냐 물어보는 화면입니다. 만약 그런 경우 업그레이드 모드로 Adobe Coldfusion 8이 설치될 것이며, 여기서는 해당사항이 없으므로 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/apache2
****************************************************
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/apache2ctl
****************************************************
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/apache2
****************************************************
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/apache2 ->4- Continue with installation
Choice: 4
|
위 화면은 시스템의 기본 웹서버와 Adobe Coldfusion을 연동하는 화면입니다. 먼저 처음 선택에서 1번키를 눌러 Add Web Server Configuration을 선택합니다. 그런 다음, 다음 메시지에서 1번을 선택하여 Apache웹서를 선택합니다. 이후 메시지는 각각 다음의 경로를 순서대로 물어보는 것입니다.
- Apache 2 웹서버의 설치경로 : /etc/apache2
- Apache 2 웹서버의 바이너리파일 경로 : /usr/sbin/apache2ctl (이 파일은 Apache를 구동하거나 중지하는 실행스크립트 파일이 아닙니다.)
- Apache 2 웹서버의 실행/중지 스크립트 파일 경로 : /etc/init.d/apache2 (Ubuntu는 기본적으로 /etc/init.d 안에 아파치 구동파일인 apache2 파일이 있습니다.)
모두 정확한 경로를 입력하고, 마지막 메시지에서 4번을 선택하여 다음 설치화면으로 넘어갑니다.
|
=============================================================================== Choose Adobe ColdFusion 8 Administrator Location ------------------------------------------------
Select the location of the web root for Adobe ColdFusion 8. This is where the installer places the Adobe ColdFusion 8 Administrator.
This directory must be the web root for one of the websites to be configured for use with Adobe ColdFusion 8.
Directory: (DEFAULT: /etc/htdocs): /home/nooree/public_html
|
위 화면은 웹루트 디렉토리가 어딘지 입력하는 화면입니다. 이글 맨처음 가정에서 우리는 /home/nooree/public_html을 기본 웹루트 디렉토리로 지정한다고 했으니 그대로 입력해 줍니다. 물론, 잘못입력한 경우 Ctrl키를 누른 상태에서 Backspace키를 눌러 수정합니다.
|
=============================================================================== Runtime User ------------
Enter the name of the runtime user. This user must already exist on the system.
User Name: (DEFAULT: nobody):
|
위 화면은 기본 실행권한이 있는 사용자계정을 입력하라는 화면입니다. apache2는 기본적으로 apache 계정으로 모든 웹파일을 실행하므로 기본값인 nobody권한으로 두고 다음화면으로 넘어갑니다. 즉, 그냥 Enter키를 눌러주세요.
|
=============================================================================== Administrator Password ----------------------
Enter the password that you will use to restrict access to the ColdFusion Administrator.
This field is required.
Password: Confirm Password:
|
위 화면은 Adobe Coldfusion의 웹관리자의 비밀번호를 입력하는 화면입니다. 자신만의 임의의 비밀번호를 입력합니다. 절대로 이 비밀번호를 잊어버리면 안됩니다. 가급적 보안을 위하여 시스템 비밀번호와는 다르게 지정할 것을 권장하여 드립니다. 확인을 위하여 두번 입력을 합니다.
|
=============================================================================== 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: Confirm Password:
|
위 화면은 RDS서비스를 활성화 할것이냐 말것이냐 선택하는 화면입니다. RDS는 Dreamweaver나 CFEclipse 등의 개발툴에서 DB의 접근, 테이블/레코드 수정 등의 통합 개발환경을 제공합니다만, 보안상 매우 취약해 지므로 실제서버스할 서버에서는 반드시 이 부분을 N키를 눌러 해제하고 설치하도록 합니다. 물론 해제하고 설치하였다고 하더라도 나중에 변경가능합니다. 변경방법은 추후 Post 하겠습니다. 여기서는 개발환경이 목적이므로 일단 Y를 눌러 RDS를 활성화 합시다.(단, 설치후 RDS를 비활성화할 수 있습니다.)
|
=============================================================================== Installation Confirmation -------------------------
Installation Type: Server configuration
Licensing: Developer Edition
Installation Directories: Product: /opt/coldfusion8 Web root: /home/nooree/public_html
Server Information: Web Server: Apache (/etc/apache2) Port: Search Services: installed Adobe LiveCycle Data Services ES: installed ( Express edition ) Documentation: installed RDS: enabled
Disk Space Information (for Installation Target): Required: 923,564,250 bytes Available: 5,061,488,640 bytes
PRESS <ENTER> TO CONTINUE:
|
자, 모든 설치옵션을 지정하는 것이 끝났습니다. 위 화면은 지금까지 지정한 사항에 대하여 간략히 요약한 화면으로 Enter키를 누르면 이제 설치를 시작합니다.
|
=============================================================================== Installing... -------------
[==================|==================|==================|==================] [------------------|------------------|------------------|------------------]
=============================================================================== Installation Complete ---------------------
You have successfully completed the first step in installing Adobe ColdFusion 8.
To continue with your installation, go to /opt/coldfusion8/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:
|
모든 설치과정이 끝났습니다. Enter키를 눌러 설치화면을 빠져나옵니다. 설치 후 설치파일인 coldfusion-801-lin.bin파일은 삭제하여도 무방합니다. 이제 마지막 설정단계만 남았습니다. 자신의 PC의 브라우저에서
http://아이피주소/CFIDE/administrator/index.cfm을 눌러 설치 마무리를 하면 웹관리자 모드로 접속이 됩니다. 하지만 이 부분을 수행하면 아마도 여러분은 화면상에 오류가 날 것입니다.(대부분 index.cfm 파일의 아스키코드가 보이거나, 또는 다운로드되어 버리거나..)
그 이유는 아직 Adobe Coldfusion이 구동되지 않아서 Apache에서 cfm파일을 해석할 수 없기때문입니다. 다시 콘솔화면에서 /opt/coldfusion8/bin 디렉토리로 이동합니다. 그런다음 다음과 같이 Coldfusion서버를 구동해 줍니다.
sudo ./coldfusion start
잠시 후 브라우저에서 다시 접속해 봅니다. 이제 정상적으로 웹관리자 화면에 접속할 수 있습니다. 따라하시다가 문제가 있는 분은 코멘트 달아주세요.