mod_cfml on OSX

68 views
Skip to first unread message

mee nothus

unread,
Jul 1, 2016, 8:35:52 AM7/1/16
to Lucee
has anyone got mod_cfml setup with tomcat/lucee/apache i've been trying to get this working but am running into difficulties wondering if anyone has any pointers or a guide or if indeed it is possible

Thanks

Mark Drew

unread,
Jul 1, 2016, 9:57:04 AM7/1/16
to lu...@googlegroups.com
As usual, for these types of question, I would like to ask:
1) What are you trying to achieve?
a) Single site e.g. http://mydomain.com
b) A few completely different sites
c) Dynamically adding new sites all the time
2) What did you try?
3) What happened?


The reason I ask is that your question is pretty open, and yeah, I got mod_cfml working but I have noticed that 70% of the time people don’t even need it. 

Many regards and salutations

Mark Drew


On 1 July 2016 at 13:35:54, mee nothus (mitchy...@gmail.com) wrote:

has anyone got mod_cfml setup with tomcat/lucee/apache i've been trying to get this working but am running into difficulties wondering if anyone has any pointers or a guide or if indeed it is possible

Thanks
--
Win a ticket to dev.objective from Lucee via Twitter, see http://bit.ly/1UbTMWj for details, good luck and see you there...
---
You received this message because you are subscribed to the Google Groups "Lucee" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+un...@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/6b0d0021-ad51-4dd8-84fb-b2eeb9988855%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

mee nothus

unread,
Jul 1, 2016, 10:52:22 AM7/1/16
to Lucee
Hi Mark

I'm trying to get lucee working on OSX like how it works on linux and windows when using multiple sites


1) What are you trying to achieve?
a) Single site e.g. http://mydomain.com
b) A few completely different sites
c) Dynamically adding new sites all the time

2)
I followed this guide for setting up lucee http://docs.lucee.org/guides/running-lucee/osx/installing-tomcat-and-lucee-on-os-x-using-the-lucee-war-file.html which works fine when dealing with a single site or manually putting the sites in the server.xml

for trying to setup mod_cfml
I downloaded mod_cfml.so  http://www.modcfml.org/index.cfm/downloads/ added it to libexec/apache2/

Added this to the apache2.conf

LoadModule modcfml_module libexec/apache2/mod_cfml.so
CFMLHandlers ".cfm .cfc .cfml"
ModCFML_SharedKey "76c43034609fee147368dad078241c29d0581d3029efe88e226a8ce5efe67e6c"


        <Proxy *>
        Allow from 127.0.0.1
        </Proxy>
        ProxyPreserveHost On
        ProxyPassMatch ^/(.+\.cf[cm])(/.*)?$ http://127.0.0.1:8080/$1$2
        ProxyPassMatch ^/(.+\.cfchart)(/.*)?$ http://127.0.0.1:8080/$1$2
        ProxyPassMatch ^/(.+\.cfml)(/.*)?$ http://127.0.0.1:8080/$1$2
        ProxyPassReverse / http://127.0.0.1:8080/

httpd-vhosts.conf

<VirtualHost *:80>
    
    DocumentRoot "/Users/mitch/Documents/lucee"
    ServerName lucee.local
    ErrorLog "/private/var/log/apache2/lucee-error_log"
    CustomLog "/private/var/log/apache2/lucee-access_log" common

    <Directory "/Users/mitch/Documents/lucee">
        Options All
        AllowOverride All
        Require all granted
    </Directory>

</VirtualHost>

<VirtualHost *:80>
    
    DocumentRoot "/Users/me/Documents/lucee2"
    ServerName lucee2.local
    ErrorLog "/private/var/log/apache2/lucee2-error_log"
    CustomLog "/private/var/log/apache2/lucee2-access_log" common

    <Directory "/Users/me/Documents/lucee2" >
        Options All
        AllowOverride All
        Require all granted
    </Directory>

</VirtualHost>


put mod_cfml-valve_v1.0.22.jar in tomcat lib folder


added this to tomcat server.xml
      <Host name="127.0.0.1"  appBase="webapps"
            unpackWARs="true" autoDeploy="true">

        <!-- SingleSignOn valve, share authentication between web applications
             Documentation at: /docs/config/valve.html -->
        <!--
        <Valve className="org.apache.catalina.authenticator.SingleSignOn" />
        -->

        <!-- Access log processes all example.
             Documentation at: /docs/config/valve.html
             Note: The pattern used is equivalent to using pattern="common" -->
        <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
               prefix="localhost_access_log" suffix=".txt"
               pattern="%h %l %u %t &quot;%r&quot; %s %b" />

<!-- visit modcfml.org for details on mod_cfml configuration options -->
<Valve className="mod_cfml.core"
loggingEnabled="false"
maxContexts="200"
timeBetweenContexts="2000"
scanClassPaths="false"
sharedKey="76c43034609fee147368dad078241c29d0581d3029efe88e226a8ce5efe67e6c"
/>
      </Host>

3)
it doesn't seem to create the WEB-INF folder and just seems to serve blank cfml pages

Jordan Michaels

unread,
Jul 1, 2016, 6:39:18 PM7/1/16
to lu...@googlegroups.com
You need to have Lucee installed as a common class so that it gets added to all contexts. Deploying Lucee as a WAR only effects the context you deploy it to. The blank pages you're getting are probably because Tomcat doesn't have a handler for CFM's for your new context (check the catalina.out to be sure).

In a nutshell, you need to:

1) Use the Lucee Jar instead of the Lucee WAR. Added it to Tomcat's common.loader line in the catalina.properties file.
2) Update the tomcat/conf/web.xml with handler information for CFM's (this is the generic web.xml that effects all contexts). Examples of a properly configured web.xml can be found in the Lucee Express edition or the Installer release.

Hope this helps.

--
Kind regards,
Jordan Michaels
Vivio Technologies

----- Original Message -----
From: "mee nothus" <mitchy...@gmail.com>
To: "Lucee" <lu...@googlegroups.com>
Sent: Friday, July 1, 2016 7:52:22 AM
Subject: Re: [Lucee] mod_cfml on OSX

Hi Mark

I'm trying to get lucee working on OSX like how it works on linux and
windows when using multiple sites


*1)* What are you trying to achieve?
a) Single site e.g. http://mydomain.com
b) A few completely different sites
c) Dynamically adding new sites all the time

*2)*
*3)*
it doesn't seem to create the WEB-INF folder and just seems to serve blank
cfml pages

On Friday, July 1, 2016 at 2:57:04 PM UTC+1, Mark Drew wrote:
>
> As usual, for these types of question, I would like to ask:
> 1) What are you trying to achieve?
> a) Single site e.g. http://mydomain.com
> b) A few completely different sites
> c) Dynamically adding new sites all the time
> 2) What did you try?
> 3) What happened?
>
>
> The reason I ask is that your question is pretty open, and yeah, I got
> mod_cfml working but I have noticed that 70% of the time people don’t even
> need it.
>
> Many regards and salutations
>
> Mark Drew
>
>
> On 1 July 2016 at 13:35:54, mee nothus (mitchy...@gmail.com <javascript:>)
> wrote:
>
> has anyone got mod_cfml setup with tomcat/lucee/apache i've been trying to
> get this working but am running into difficulties wondering if anyone has
> any pointers or a guide or if indeed it is possible
>
> Thanks
> --
> Win a ticket to dev.objective from Lucee via Twitter, see
> http://bit.ly/1UbTMWj for details, good luck and see you there...
> ---
> You received this message because you are subscribed to the Google Groups
> "Lucee" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to lucee+un...@googlegroups.com <javascript:>.
> To post to this group, send email to lu...@googlegroups.com <javascript:>.
> <https://groups.google.com/d/msgid/lucee/6b0d0021-ad51-4dd8-84fb-b2eeb9988855%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
>

--
Win a ticket to dev.objective from Lucee via Twitter, see http://bit.ly/1UbTMWj for details, good luck and see you there...
---
You received this message because you are subscribed to the Google Groups "Lucee" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+un...@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/25617a98-567b-4a0f-ace1-d43899164a1f%40googlegroups.com.

mee nothus

unread,
Jul 3, 2016, 5:53:53 AM7/3/16
to Lucee
I was able to get this working now and understand a little more about how tomcat is working with lucee :)

I guess I was confused by the only instructions for Mac OS X on the http://docs.lucee.org/guides/running-lucee/osx.html stated using using the WAR file.

Thank you both very much for your help
Reply all
Reply to author
Forward
0 new messages