November 2, 2018
Adventures in Installations – Installing CF 2018 Developer Edition on Ubuntu 16.04 + Apache
Comments
(12)
November 2, 2018
Adventures in Installations – Installing CF 2018 Developer Edition on Ubuntu 16.04 + Apache
Newbie 49 posts
Followers: 41 people
(12)

TLDR;  After beating my head against my monitor trying to figure out why ColdFusion wouldn’t configure a web server on install under Ubuntu and Apache, I learned you need to run the wsconfig after the fact, and the commands you need (assuming you installed in the default location) are:

cd /opt/coldfusion2018/cfusion/runtime/bin/
./wsconfig -ws Apache -dir /etc/apache2/ -v

———-

Alright… I’m tired of waiting for someone to come up with a CF 2018 AWS instance.  I really want to play with the latest and greatest version of ColdFusion but I want to do it in an environment that closely resembles my production server.  I’m going to spin up a Parallels VM running Ubuntu 16.04 and Apache and install CF 2018 to play around with locally.

I spin up a new VM, and install the OS.  Patch it, and install Apache.  Now I’m ready for the main event.

Step 1 – Download the Linux installer for ColdFusion 2018

For me, this was actually very much a pain.  To download the development version of CF 2018, you need to log into adobe.com and fill out a demographic form.  Now don’t get me wrong, I have no problem with Adobe wanting to know who is downloading trials of their enterprise software, but I’m sitting on a virtual machine that is command line only.  I don’t have a web interface to be able to fill out the form and get the installer.  There may be another way to do this, and I’m sure someone in the comments will speak up, but I opted to download the installer on my main computer, then upload it to Amazon S3, then download it directly to the VM.

Look… I didn’t say this was the right way to get things done… it’s just a way to get things done.  Don’t judge me.

Step 2 – Install ColdFusion 2018

Once that was done, I changed the permissions on the file by executing:

chmod 777 ColdFusion_2018_WWEJ_linux64.bin.

Next, I fired up the installer:

./ColdFusion_2018_WWEJ_linux64.bin

I fired through he installer questions, like I have many times before.  You may have different answers to these, but these are my responses to the typical install questions.  Don’t take it as what you should do.

  • Press enter to continue.
  • Press enter again.
  • Press enter 33 times to make it past the EULA.
  • Press Y to accept.
  • 3 for developer edition.  Enter.
  • Server installation.  Enter.
  • 3 for Development profile.  Enter.
  • Enter to accept all the options.
  • Access add on services remotely?  No.
  • Enter to install in the default location.
  • Enter to install add on services in the default location.
  • Enter for the host name.
  • Skip Open Office.
  • Put in the password.  Repeat it.
  • Disable RDS.
  • Automatically check for server updates.

But wait… where was the web server connector options screens?  Every version of ColdFusion I’ve installed on Linux has always had a section where the web server options were selected and you could create a connector for Apache.  This time?  Nothing in the installer prompted for it.

Step 3 – Realize that the web server doesn’t get configured at installation.  You need to use the built in web server or run wsconfig after the fact.

This took me a while to figure out.  I knew the web server config tool was located at /opt/coldfusion2018/cfusion/runtime/bin/wsconfig, but navigating to that directory and typing ./wsconfig didn’t bring up anything.  I needed additional arguments.  Here’s the syntax on connecting CF2018 to Apache under Ubuntu.

./wsconfig -ws Apache -dir /etc/apache2/ -v

Trial and error and google and thoroughly reading documentation (seriously… what I needed is about 2/3 down the page under “Configuring Apache web server in UNIX”) got me through.  Not as easy as it could have been… but that’s why I’m blogging this.  Hopefully someone finds this and doesn’t have to stumble through it like a drunken idiot like I did.

12 Comments
2020-07-02 07:19:51
2020-07-02 07:19:51

Hi David,
Thanks , I am newbie for Ubuntu and your instruction helps me a lot. I have some doubts which I am sharing with you in the form of two scenarios.

Scenarios 1 : I have installed CF11, Apache 2 on Ubuntu 18 (Under GCP). I have installed everything as per your instructions. The port 80 will let me open Ubuntu home page. I can also able to open ColdFusion administrator page using port 80, So I can understand that Apache 2 is successfully configured for ColdFusion 11.

Scenarios 2 : I have installed CF18, Apache 2 on Ubuntu 18 (Under GCP). I have installed everything as per your instructions. The port 80 will let me open Ubuntu home page But unable to open ColdFusion administrator page using port 80 after executing the wsconfig related command  ./wsconfig -ws Apache -dir /etc/apache2/ -v mentioned by you. The ColdFusion administrator page opens on its default port 8500. So I can understand that Apache 2 is not successfully configured for ColdFusion 18. I have tried the manual configuration method also but it didn’t work for me. While executing  ./wsconfig -ws Apache -dir /etc/apache2/ -v command I am getting some error message described as below :

————————————————————————————————————————————-

root@al-stage-coldfusion-2:/opt/coldfusion2018/cfusion/runtime/bin# ./wsconfig -ws Apache -dir /etc/apache2/ -v
command line: -ws Apache -dir /etc/apache2/ -v
Could not find file /etc/bin/httpd
Could not find file /usr/sbin/httpd
Could not find file /usr/local/apache/bin/httpd
Could not find file /usr/apache/bin/httpd
Using Apache binary /usr/sbin/apache2
Server version: Apache/2.4.29 (Ubuntu)
Error while getting Apache Websites. Make sure you have administrator privilages
Error while getting Apache Websites. Make sure you have administrator privilages
Assuming Apache has been configured for DSO support since it can’t be determined.
Parsing Apache configuration file /etc/apache2/apache2.conf
Could not find file /etc/bin/apachectl
Using Apache control script /usr/sbin/apachectl
Exec’ing chmod 777 /opt/coldfusion2018/config/wsconfig/1
Set permission to 777 on /opt/coldfusion2018/config/wsconfig/1
Exec’ing chmod +x /etc/apache2/mod_jk.so
Set permission to execute on /etc/apache2/mod_jk.so
Created file /etc/apache2/mod_jk.so
Wrote file /etc/apache2/apache2.conf
Added ColdFusion configuration to Apache configuration file /etc/apache2/apache2.conf
Created file /opt/coldfusion2018/config/wsconfig/1/README
Wrote file /opt/coldfusion2018/config/wsconfig/wsconfig.properties
Exec’ing /usr/sbin/apachectl restart
Restarted Apache server
The Apache connector was installed to /etc/apache2

————————————————————————————————————————————–

Please help me whether I am missing something.

Thanks

Sunil

Like
(8)
>
Sunil Chakradhari
's comment
2020-07-02 14:15:39
2020-07-02 14:15:39
>
Sunil Chakradhari
's comment

Hi Sunil,

We don’t have an alias for CFIDE in ColdFusion 2016/2018 and that is why you are unable to access the CF Admin using the port 80. It doesn’t mean the ColdFusion connector and Apache is not working fine.

To test it, you can put a test CFM in your Virtual Host webroot and test if it is rendering the CFM. If not, then we can see the error. I don’t see any issue here.

Like
(1)
>
Priyank Shrivastava
's comment
2020-07-09 13:12:09
2020-07-09 13:12:09
>
Priyank Shrivastava
's comment

Hi Priyank,Thanks for your comments . On the next day of writing this post, I have tried to configure my coldfusion application in apache server and I was succeeded in running it. I was so busy in server migration that I was unable to see your replay.Sorry for the late response.

Like
(1)
>
Priyank Shrivastava
's comment
2022-04-20 16:16:36
2022-04-20 16:16:36
>
Priyank Shrivastava
's comment

Hi Priyank, I have followed these steps to configure Apache with ColdFusion, however when I go to test the Virtual Host using a CFM file it is not working. I was wondering if you have any ideas on what I could’ve done wrong. I can provide you more info and other steps that you may need to help.

 

Thank you

Like
>
bburns8
's comment
2022-04-20 17:49:57
2022-04-20 17:49:57
>
bburns8
's comment

Hi, Can you please provide the error that you are getting in browser, so I can suggest something. Also, was the connector configured without any error?

Like
>
Priyank Shrivastava
's comment
2022-04-20 18:34:07
2022-04-20 18:34:07
>
Priyank Shrivastava
's comment

The error was 503 Service Unavailable (The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.)

The web server was configured with this message

Could not find file /etc/bin/httpd
Could not find file /usr/sbin/httpd
Could not find file /usr/local/apache/bin/httpd
Could not find file /usr/apache/bin/httpd
Using Apache binary /usr/sbin/apache2
Server version: Apache/2.4.41 (Ubuntu)
Could not find file /etc/bin/apachectl
Using Apache control script /usr/sbin/apache2ctl
Assuming Apache has been configured for DSO support since it can’t be determined.
Parsing Apache configuration file /etc/apache2/apache2.conf
Exec’ing chmod 777 /root/Desktop/ColdFusion/config/wsconfig/2
Set permission to 777 on /root/Desktop/ColdFusion/config/wsconfig/2
Wrote file /etc/apache2/apache2.conf
Added ColdFusion configuration to Apache configuration file /etc/apache2/apache2.conf
Created file /root/Desktop/ColdFusion/config/wsconfig/2/README
Wrote file /root/Desktop/ColdFusion/config/wsconfig/wsconfig.properties
Exec’ing /usr/sbin/apache2ctl restart
AH00558: apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1. Set the ‘ServerName’ directive globally to suppress this message
Restarted Apache server
The Apache connector was installed to /etc/apache2

 

 

Like
>
bburns8
's comment
2022-04-20 18:42:02
2022-04-20 18:42:02
>
bburns8
's comment

please check this update release and search for 503. It will have all the steps to resolve the issue.

https://helpx.adobe.com/coldfusion/kb/coldfusion-2018-update-8.html

Like
>
Priyank Shrivastava
's comment
2022-04-20 19:18:36
2022-04-20 19:18:36
>
Priyank Shrivastava
's comment

I have done all of these steps and the AJP ports are in fact open, is there anything else that it could possibly be?

Like
>
bburns8
's comment
2022-04-21 05:26:15
2022-04-21 05:26:15
>
bburns8
's comment

could you pls reach out to our team at cfsup@adobe.com

Like
2019-10-08 19:08:19
2019-10-08 19:08:19

Thanks a lot for this! You’ve saved me quite a lot of grief… 

Like
(1)
2018-11-05 16:21:33
2018-11-05 16:21:33

I have become a fan of CommandBox lately. It is real easy to bring up ColdFusion on it.

I am running MacOS. I have to admit I haven’t tried to get it to mate with Apache.

Like
(1)
>
James Mohler
's comment
2018-11-05 18:08:58
2018-11-05 18:08:58
>
James Mohler
's comment

Agreed.  Command Box is impressive, and I have a healthy respect for it in an ecosystem.  In this case, it was important to have a local VM environment that mimicked the production environment as closely as possible.

Like
(1)
Add Comment