Will the CF code work on a regular server?

I have been instructed to integrate the CF code (about 70 lines) on our site, and then configure it to communicate with another site server. However, our hosting site is a regular server without CF support. Will the code be executed? All I know is that CF is a version of Adobe PHP and ASP. I have no experience coding it. Could you enlighten me? From what I have gathered from the Internet, you must have a CF server to run CF code, but resources seem scarce. I just need someone knowledgeable to check ...

+4
source share
3 answers

To run ColdFusion code (CFML), your server must have the ColdFusion processor installed. This means either using Adobe ColdFusion, or if you want to save money, try looking at Railo or Open BlueDragon, both of which are CFML processors. Any of these solutions will work if you control the server, however, if you are on a shared hosting account, you might be out of luck. Many hosts will have ColdFusion as an additional service for your hosting account. It is better to ask your host to see if they offer.

If you cannot get any of these solutions, the best thing you could do is translate this code (or, using the services of those who know how to do this) so that it works on your host.This would mean moving CFML to PHP, ASP, or .NET (Visual Basic / C #). You will not find software that can do this for you.

+9
source

ColdFusion will run on any J2EE servlet engine that includes JRun, Tomcat, Resin, Jetty and others.

It will not run directly on a web server such as Apache or IIS (they are configured to send appropriate requests to the application server).

As Steve points out, there are alternative CFML engines in Adobe CF - the two main Railo and OpenBD (both are Open Source with available commercial options), but they still need Tomcat / etc.

If you have a Windows + IIS server, you can consider BlueDragon.NET , which is commercial (not open source), but will connect directly to the IIS web server (there is no need for the J2EE servlet engine).

Is it easier than just rewriting the 70 lines of logic in the language / technology that you are already using will depend on what exactly this code does.

On the one hand, there are not so many 70 lines, and it is better to adhere to a single technology, but then again, Railo or OpenBD are quickly and easily configured and will not cost you any license fees.

0
source

Coldfusion requires a server component to interpret it. However, there are many ways to run it based on what your host provides ...

Such as the product line Adobe Coldfusion Server, BlueDragon, Railo.

There are open source solutions and paid solutions.

Or depending on the complexity of the conflict code, you can convert it to php or to another language that you are more familiar with.

0
source

Source: https://habr.com/ru/post/1311271/


All Articles