Installing Coldfusion on CentOS 6.3 is pretty painless but there was one problem I saw.
If you are starting from a minimal CentOS install you need to install:
httpd
httpd-devel
After you download the bin file chmod it to 775 and then execute
Install as normal / you see fit. A general rule of thumb is that for a production system, you don't install the documentation. I also went ahead and installed the httpd connection as well.
After you install, if you try to start httpd you will get the following error:
This is simply an Selinux issue, to fix that you have two options:
Bad way
The RIGHT way
SELinux is a powerful tool to protect your server and it always breaks my heart when websites just say "turn it off" to fix an issue. So, now you know how to do it right!
In one other instance, the above did not work, so here are some steps to figure out WHY. Again, please dont just disable SELinux.
First, grab the tool auit2why
Now lets see what is up:
In my case I was seeing the following error in my httpd_log
Looking at the output of audit2why, we can see that the issue is "Missing type enforcement (TE) allow rule."
So to fix that:
And bingo, you should be up and running now!