How do I get Lucee to process on all new virtual hosts in Linux

This is my second try at posting this…sorry if it’s a duplicate…

I’m a double newbie in that I’m a longtime Windows user trying out Amazon
Linux (EC2) and I’m a longtime ACF user trying out Lucee. I like what I’ve
seen so far, but I’ve hit a stumbling block that I can’t seem to find the
cure for…

Background: I used the Linux (64b) Lucee 4.5.2.018 install on an EC2 Amazon
Linux instance…no problems or errors during install. It installed
mod_cfml and all the other goodies. I’ve been able to log into the Lucee
admin and add datasources. I can place a test CFM file in
the /opt/lucee/tomcat/webapps/ROOT directory and it executes perfectly.

The trouble started when I tried to place my app in /var/www/html. I
placed my files in /var/www/html and then set up a virtual host in
httpd.conf. The virtual host setting looks like this:

<VirtualHost *:80>
ServerName amz.mywebsite.com
DocumentRoot “/var/www/html/myfolder”

I made the change to httpd.conf, restarted httpd and tomcat.

Then I try to browse to one of my CFM files (ex
http://amz.mywebsite.com/tools/testing/testcust.cfm), I get a Lucee error
that looks like this:

Lucee 4.5.2.018 Error (missinginclude)
Message Page /tools/testing/testcust.cfm
[/opt/lucee/tomcat/webapps/ROOT/tools/testing/testcust.cfm] not found
Java Stacktrace Page /tools/testing/testcust.cfm
[/opt/lucee/tomcat/webapps/ROOT/tools/testing/testcust.cfm] not found
at lucee.runtime.PageSourceImpl.loadPage(PageSourceImpl.java:915):915
I get that the error above is telling me that any .cfm request is going to
route to “/opt/lucee/tomcat/webapps/ROOT/”, but I thought the purpose of
mod_cfml was to monitor httpd.conf and auto-update tomcat.

So, my question is: how do I get Lucee to process on all new virtual hosts?

Thanks for helping!

-JD

I assume you have restarted Apache and Lucee ?

Are you sure the mod_cfml module is being used by your Apache ?

TomOn Thursday, February 11, 2016 at 2:27:31 PM UTC, JD Yeiter wrote:

This is my second try at posting this…sorry if it’s a duplicate…

I’m a double newbie in that I’m a longtime Windows user trying out Amazon
Linux (EC2) and I’m a longtime ACF user trying out Lucee. I like what I’ve
seen so far, but I’ve hit a stumbling block that I can’t seem to find the
cure for…

Background: I used the Linux (64b) Lucee 4.5.2.018 install on an EC2
Amazon Linux instance…no problems or errors during install. It installed
mod_cfml and all the other goodies. I’ve been able to log into the Lucee
admin and add datasources. I can place a test CFM file in
the /opt/lucee/tomcat/webapps/ROOT directory and it executes perfectly.

The trouble started when I tried to place my app in /var/www/html. I
placed my files in /var/www/html and then set up a virtual host in
httpd.conf. The virtual host setting looks like this:

<VirtualHost *:80>
ServerName amz.mywebsite.com
DocumentRoot “/var/www/html/myfolder”

I made the change to httpd.conf, restarted httpd and tomcat.

Then I try to browse to one of my CFM files (ex
http://amz.mywebsite.com/tools/testing/testcust.cfm), I get a Lucee error
that looks like this:

Lucee 4.5.2.018 Error (missinginclude)
Message Page /tools/testing/testcust.cfm
[/opt/lucee/tomcat/webapps/ROOT/tools/testing/testcust.cfm] not found
Java Stacktrace Page /tools/testing/testcust.cfm
[/opt/lucee/tomcat/webapps/ROOT/tools/testing/testcust.cfm] not found
at lucee.runtime.PageSourceImpl.loadPage(PageSourceImpl.java:915):915
I get that the error above is telling me that any .cfm request is going to
route to “/opt/lucee/tomcat/webapps/ROOT/”, but I thought the purpose of
mod_cfml was to monitor httpd.conf and auto-update tomcat.

So, my question is: how do I get Lucee to process on all new virtual
hosts?

Thanks for helping!

-JD

“I assume you have restarted Apache and Lucee ?”

Yes.

“Are you sure the mod_cfml module is being used by your Apache ?”

How would I go about checking this? Like I said, I’m a noob to Linux and I
find that I try to google everything. The problem that I’ve found with
Googling Linux issues is the range of answers you get based on the flavor
of Linux you are using.On Thursday, February 11, 2016 at 9:45:46 AM UTC-5, Tom Chiverton wrote:

I assume you have restarted Apache and Lucee ?

Are you sure the mod_cfml module is being used by your Apache ?

Tom

On Thursday, February 11, 2016 at 2:27:31 PM UTC, JD Yeiter wrote:

This is my second try at posting this…sorry if it’s a duplicate…

I’m a double newbie in that I’m a longtime Windows user trying out Amazon
Linux (EC2) and I’m a longtime ACF user trying out Lucee. I like what I’ve
seen so far, but I’ve hit a stumbling block that I can’t seem to find the
cure for…

Background: I used the Linux (64b) Lucee 4.5.2.018 install on an EC2
Amazon Linux instance…no problems or errors during install. It installed
mod_cfml and all the other goodies. I’ve been able to log into the Lucee
admin and add datasources. I can place a test CFM file in
the /opt/lucee/tomcat/webapps/ROOT directory and it executes perfectly.

The trouble started when I tried to place my app in /var/www/html. I
placed my files in /var/www/html and then set up a virtual host in
httpd.conf. The virtual host setting looks like this:

<VirtualHost *:80>
ServerName amz.mywebsite.com
DocumentRoot “/var/www/html/myfolder”

I made the change to httpd.conf, restarted httpd and tomcat.

Then I try to browse to one of my CFM files (ex
http://amz.mywebsite.com/tools/testing/testcust.cfm), I get a Lucee
error that looks like this:

Lucee 4.5.2.018 Error (missinginclude)
Message Page /tools/testing/testcust.cfm
[/opt/lucee/tomcat/webapps/ROOT/tools/testing/testcust.cfm] not found
Java Stacktrace Page /tools/testing/testcust.cfm
[/opt/lucee/tomcat/webapps/ROOT/tools/testing/testcust.cfm] not found
at lucee.runtime.PageSourceImpl.loadPage(PageSourceImpl.java:915):915
I get that the error above is telling me that any .cfm request is going
to route to “/opt/lucee/tomcat/webapps/ROOT/”, but I thought the purpose of
mod_cfml was to monitor httpd.conf and auto-update tomcat.

So, my question is: how do I get Lucee to process on all new virtual
hosts?

Thanks for helping!

-JD

you should probably point to /var/www/html in the Context element for
that website in the {Tomcat}/conf/server.xml file

Igal Sapir
Lucee Core Developer
Lucee.org http://lucee.org/On 2/11/2016 6:45 AM, Tom Chiverton wrote:

I assume you have restarted Apache and Lucee ?

Are you sure the mod_cfml module is being used by your Apache ?

Tom

On Thursday, February 11, 2016 at 2:27:31 PM UTC, JD Yeiter wrote:

This is my second try at posting this...sorry if it's a duplicate...


I'm a double newbie in that I'm a longtime Windows user trying out
Amazon Linux (EC2) and I'm a longtime ACF user trying out Lucee.
 I like what I've seen so far, but I've hit a stumbling block that
I can't seem to find the cure for...

Background: I used the Linux (64b) Lucee 4.5.2.018 install on an
EC2 Amazon Linux instance...no problems or errors during install.
 It installed mod_cfml and all the other goodies.  I've been able
to log into the Lucee admin and add datasources.  I can place a
test CFM file in the /opt/lucee/tomcat/webapps/ROOT directory and
it executes perfectly.

The trouble started when I tried to place my app in /var/www/html.
 I placed my files in /var/www/html and then set up a virtual host
in httpd.conf.  The virtual host setting looks like this:

|
<VirtualHost*:80>
    ServerName amz.mywebsite.com <http://amz.mywebsite.com>
    DocumentRoot "/var/www/html/myfolder"
</VirtualHost>
|

I made the change to httpd.conf, restarted httpd and tomcat.

Then I try to browse to one of my CFM files (ex
http://amz.mywebsite.com/tools/testing/testcust.cfm
<http://amz.mywebsite.com/tools/testing/testcust.cfm>), I get a
Lucee error that looks like this:

Lucee 4.5.2.018 Error (missinginclude)
Message 	Page /tools/testing/testcust.cfm
[/opt/lucee/tomcat/webapps/ROOT/tools/testing/testcust.cfm] not found
Java Stacktrace 	Page /tools/testing/testcust.cfm
[/opt/lucee/tomcat/webapps/ROOT/tools/testing/testcust.cfm] not found
at lucee.runtime.PageSourceImpl.loadPage(PageSourceImpl.java:915):915


I get that the error above is telling me that any .cfm request is
going to route to "/opt/lucee/tomcat/webapps/ROOT/", but I thought
the purpose of mod_cfml was to monitor httpd.conf and auto-update
tomcat.

So, my question is:  how do I get Lucee to process on all new
virtual hosts?


Thanks for helping!

-JD


Love Lucee? Become a supporter and be part of the Lucee project today!


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+unsubscribe@googlegroups.com
mailto:lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com
mailto:lucee@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/bdea3bb3-2019-4fd5-97b4-6dda69b5768c%40googlegroups.com
https://groups.google.com/d/msgid/lucee/bdea3bb3-2019-4fd5-97b4-6dda69b5768c%40googlegroups.com?utm_medium=email&utm_source=footer.
For more options, visit https://groups.google.com/d/optout.