It was real pain for me to install ColdFusion on my Linux box with Apache. Anyway we have installed it and I thought to share it because this may help you also to install ColdFusion on a Linux box.
First of all open a shell and then continue on this.
Grant Execute permission to the Coldfusion‐8‐lin.bin binary file
chmod +x Coldfusion‐8‐lin.bin
Execute Coldfusion‐8‐lin.bin
./Coldfusion‐8‐lin.bin
Enter the Locale
1 (English)
Hit Enter 28 times to continue the agreement
Enter "Y" to accept the agreement
Enter the version to install
3 (Developer Edition)
Enter the next task to perform
1 (Server Configuration)
Enter whether you have an existing server configuration
2 (No existing server configuration)
Enter the next task to perform
5 (continue installation)
Enter the installation path
Hit enter to accept the default path
Hit Enter 30 times to continue the agreement
Enter "Y" to accept the agreement
Enter the serial number
Hit Enter for no serial number
Enter whether you have an existing CF installation
2 (no existing CF installation)
Enter the next task to perform
1 (Add Web Server Configuration)
Enter the web server to configure
1 (Apache)
Enter the path to the directory containing the Apache config file (httpd.conf)
/etc/httpd/conf
Enter the path to the Apache binary files
/usr/sbin/httpd
Enter the path to the Apache control file
/etc/init.d/httpd
Enter the next task to perform
4 (continue with the installation)
Enter the path to the web root
Hit enter to select the default location
Create a new Linux user (it is better to have a Linux user as admin before installation begins)
Ex: admin/Password
Enter the username
admin
Enter the password
Password
Confirm password
Password
Enter whether you need to enable RDS
Y (Enable RDS)
Enter the password for RDS
Password
Confirm RDS password
Password
Hit enter to exit the installer
When installation completes the installer will prompt you to start the ColdFusion server
Change directory to the ColdFusion binary directory
cd /opt/coldfusion8/bin
Start coldfusion8
./coldfusion start
There are three possible messages you will get
Installation successful
Installation failed
Installation failed and retry for 12 times
If you are done with the installation successfully please ignore following instructions
Installer normally don't update file paths correctly please edit following two files for the given file paths,
Files:
/opt/coldfusion8/bin/cf‐connectors.sh
/opt/coldfusion8/bin/connectors/apache_connector.sh
Paths:
Apache config file (httpd.conf): /etc/httpd/conf
Apache binary files: /usr/sbin/httpd
Apache control file: /etc/init.d/httpd
Check whether you have following file on the file system,
/opt/coldfusion8/runtime/lib/wsconfig/1/mod_jrun20.so
If Yes, go to label "Final"
If No, Continue with following instructions,
Grant permission to following three files (permissions should be same as the httpd file)
Files:
/opt/coldfusion8/bin/cf‐connectors.sh
/opt/coldfusion8/bin/connectors/apache_connector.sh
/opt/coldfusion8/runtime/lib/wsconfig.jar
Command:
chcon ‐‐reference=/usr/sbin/httpd \/opt/coldfusion8/bin/cf‐connectors.sh
chcon ‐‐reference=/usr/sbin/httpd \/opt/coldfusion8/bin/connectors/apache_connector.sh
chcon ‐‐reference=/usr/sbin/httpd \/opt/coldfusion8/runtime/lib/wsconfig.jar
Start ColdFusion Server
Change directory to the ColdFusion binary directory
cd /opt/coldfusion8/bin
Restart coldfusion8
./coldfusion stop
./coldfusion start
Check whether you have following file on the file system,
/opt/coldfusion8/runtime/lib/wsconfig/1/mod_jrun20.so
Yes it should be in the file system. Continue with the following instructions,
Final:
Grant permission to following file (permissions should be same as the httpd file)
File:
/opt/coldfusion8/runtime/lib/wsconfig/1/mod_jrun20.so
Command:
chcon ‐‐reference=/usr/sbin/httpd \/opt/coldfusion8/runtime/lib/wsconfig/1/mod_jrun20.so
Restart coldfusion8
./coldfusion stop
./coldfusion start
Start the apache server
You are done with the installation
Access the site
http://localhost/CFIDE/administrator/login.cfm
Continue the wizard and you are ready to use the ColdFusion server.
Congratulations!
Nice tutorial. Thanks!
ReplyDeletehi - I'm stuck on the part with the chcon commands - should there be a backslash in the middle of the command - or is that a line-break character?
ReplyDeleteI've tried to input the commands inserting the correct paths for my own install but all i get is the message "no data available"
please help !
yes ben there should be a back slash in the middle of the command.(it is not a line break)
ReplyDeletePlease check whether u have installed apache and coldfusion on the specified locations.
One tip to add is to be sure that apache-devel is installed otherwise coldfusion can't use the apache/apx to build the connector.
ReplyDeleteAnd if you are having problems be sure to look at the wsconfig.log in: /opt/coldfusion8/runtime/lib/wsconfig
thanx Dan.
ReplyDeleteDoes this step by step work for Coldfusion 8 Standard 32-bit on 64-bit RHEL5? I hope so. :)
ReplyDeleteHi Rocco,
ReplyDeleteI haven't tried on RHELS5 but hopefully this will work on that also.
It should work on RHELS5 because it worked for me on a VPS running Centos 5 which is supposedly the same (I think)
ReplyDeleteLooks like I am having the same issues as Ben. The chcon command comes back with a "no data available" error. Adobe doesn't make this easy, do they? :)
ReplyDeleteI have confirmed that the apache binary is located in the location of /usr/sbin/httpd
Hi, thanks for the instructions.. it worked without a flaw in CENTOS5.2
ReplyDeleteJust some pointers.
1) disable SELINUX (if its not an issue )
2) make sure httpd-devel is installed prior.
3) Do not include java install during install.
4) When you create admin account for cfserver to use make sure your passwords match when you provide it to CF install
5) CF programmers your application.cfc should be actually Application.cfc or Application.cfm and OnRequestEnd.cfm (Linux is very picky)
Again thank you for this post.
I think Rocco and Ben got that answers from last Anonymous comment.
ReplyDeletePlease let me know if this steps helped and working fine.
Anyway thanks for the tip "Anonymous".
Great tutorial. Thanks!
ReplyDeleteHi,
ReplyDeleteThis also works for CF9... we tried it on CENTOS and worked without a problem.
Thank you...
I love you. Freaking excellent instructions. Took me all of about 10 minutes to get everything installed.
ReplyDeleteGreat instructions... Thank you.
ReplyDeleteHow would I access /var/www/html from the browser?
My install was not on localhost.
so you don't have to download CF to your server? I have a GoDaddy Apache/Linux VPS.
ReplyDeleteI can just use the tut above with Putty and that's it?
@Derrick
ReplyDeletethat's carrect, except that you should be careful to make sure your VPS has enough RAM assigned to it. I'm fairly sure you'll need at least 768MB just to install it on the VPS - once installed it will prbably run with less RAM allocation. The installer is very memory hungry though as I recall.
thanks. i understand the commands in the tut above, but not sure where to start. i tried with putty and got an error.
ReplyDeletecan you point me to more info. not sure even where to put the binary file. just confused about the "big picture" here.
so the CF i download from Adobe and install on my computer first? do you run the installation on server from you pc?
do i need to buy CF?
thanks. this is just out of my range.
>> i tried with putty and got an error.
ReplyDeleteWhat error did you get?
>> can you point me to more info.
I spent a few days on this and googled around a lot found information from all sorts of places but this tutorial was definitely the best I found if you're installing CF7 or CF8 (They both behave the same = ie they both have the same bug which stops the web server adapter being installed correctly)
>> not sure even where to put the binary file
you can put it in somewhere like /usr/src although it doesn't really matter as the installer will place all of the install files in the right places.
>> just confused about the "big picture" here.
If you need CF8 because you're gonna be using some of the functionalities which are not supported by open source CFML application server alternatives such as OpenBlueDragon or Railo then go ahead and install this but you'll have to get a license starting at $1299 for standard edition. Personally I now use a Bluedragon app server on my VPS at viviotech.net - they do all of the difficult installation and their support is very good indeed. I would seriously recommend that if you don't have a spare couple of days (or even weeks or months depending on your familiarity with linux / apache configuration) to invest in learning how to do this then cancel your godaddy account and head over there to Viviotech - I never looked back.
good luck
seems theres an error on this blog. can't post.
ReplyDeletei received a bad command error for the binary.
i just need to know how to get what CF i need on my server and installed.
my programmer did a client site in CF and it is on a slow windows server. i am an apache guy and want to move it to an apache server. if i only need the open source CF, that's fine. not running anything fance i don't believe. just standard CF functions. does this help. i'm in a real bind on this one, as i am a web developer and seo guy, not IT.
thanks again
Hi I'am Mahmut
ReplyDeleteI'm getting the following error during installation. Please help me
[root@netixir src]# ./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...
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.
This means there's not enough physical memory available to run the installer. I don[t know about CF9 but CF8 required a minimum of 768MB to install. Once installed the amount required to run the service is considerably less. If you're on a VPS you'll have to upgrade the memory allocation.
ReplyDeleteI have installed CF8 on RHEL5 w/apache2.2
ReplyDeleteAfter much hair pulling I finally have it set up
BUT now when I try to open CFIDE/administrator/login.cfm
I get:
500
ROOT CAUSE:
coldfusion.runtime.CfJspPage$NoSuchTemplateException: Could not find the ColdFusion Component or Interface /opt/coldfusion8/wwwroot/WEB-INF/cftags/component.cfc.
va:66)
I have checked , and /opt/coldfusion8/wwwroot/WEB-INF/cftags/component.cfc.
exists and has proper permissions and owners.
I can't seem to find much out there on this error.
Any ideas?
Hi,
ReplyDeleteI recently came across your blog and have been reading along. I thought I would leave my first comment. I don't know what to say except that I have enjoyed reading.
Nice blog. I will keep visiting this blog very often.
-
Delphi development
Hi,
ReplyDeleteI have installed CF8 successfully. But when I try to run any .cfm template then it gives error of file not found. Any idea what could be wrong when file is there? apache server configured successfully.
Hi,
ReplyDeleteThanks for the tutorial, looks very helpful for me. I had same problem as
Hi,
I have installed CF8 successfully. But when I try to run any .cfm template then it gives error of file not found. Any idea what could be wrong when file is there? apache server configured successfully.
on my previous attempt... will post back tomorro if it works for me...
(i realise this post is a few years after the start but its good to keep sites like this high in the google pages!)
I don’t know how should I give you thanks! I am totally stunned by your article. You saved my time. Thanks a million for sharing this article.
ReplyDeleteThe era has been running and the acceleration is provided by the online services. Therefore the online might act as the catalyst to look for the top IAS institute in Delhi. The utility of online isfast and accurate.
ReplyDeleteTop IAS institute in Delhi
upsc coaching in Agra
UPSC coaching in Delhi
Ramanasri IAS Institute offers study hall training for UPSC IAS Exam arrangement in Delhi. Ramanasri IAS Institute Blog gives knowledge into how to break UPSC, choice of the optional subject for IAS prelims and mains test arrangement. Current issues arrangements; the craft of perusing Hindu paper and the tips for getting ready IAS meet is very much outlined in Ramanasri IAS Institute Blog. Ramanasri IAS Institute is the best IAS training foundation in India additionally offers the best IAS blog for refreshed investigation material and inside and out information about IAS tests.
ReplyDeletepsychology upsc syllabus