Lucee Noob/CF experienced

Noob Alert.
Just today found and installed Lucee on CentOS7 (64-bit) using Apache
2.4.6, PHP 5.4.16. Tomcat 7.0.54

Took me a bit to find the *nix installer, but got it, ran it, took all
defaults except password and log file.
Got an error towards the end:

Warning: Problem running post-install step. Installation may not complete
correctly
Error running /opt/lucee/sys/install_mod_cfml.sh -m install -l /opt/lucee
-f /etc/httpd/conf/httpd.conf -c /usr/sbin/apachectl : Error: Nothing to do

But it APPEARS to be working…

Took me even a bit more to find /lucee/admin/web.cfm to admin the thing.

So now Im kind of at a loss on how to hook this up to CF web sites that I
have migrated all to a new box.
They were all built and running on CFMX6, and moving to a new 64-bit
system, I had to do something, and a friend turned me on to Lucee yesterday.
Im using the name-based hosting, and they all work currently, just those
needing CF backend sit kind of dumb as a stump at the moment.

What needs to be done to get virtual name-based sites running through Lucee?

I would go and try to get hints from the old CFMX admin page on the old
server, but well, it died a horrific death and I cannot get back into it
anymore (hence the new machine up and coming). And silly me did not back
up the CF Admin stuff, as I figured I would be reinstalling it if
something ever happened…
forehead palm

I understand *nix docs are a bit thin at the moment, and I would be glad to
share what all I find (I could write up something for the Wiki, etc)
I just need this one thing to get me moving forward again.

Thanks
Jim

This suggests the install could not configure the Apache plugin to
automatically create virtual hosts in Tomcat. Has you’re Apache config been
updated at all ?

TomOn Monday, June 8, 2015 at 5:57:27 AM UTC+1, Jim Kinter wrote:

Noob Alert.
Just today found and installed Lucee on CentOS7 (64-bit) using Apache
2.4.6, PHP 5.4.16. Tomcat 7.0.54

Took me a bit to find the *nix installer, but got it, ran it, took all
defaults except password and log file.
Got an error towards the end:

Warning: Problem running post-install step. Installation may not complete
correctly
Error running /opt/lucee/sys/install_mod_cfml.sh -m install -l /opt/lucee
-f /etc/httpd/conf/httpd.conf -c /usr/sbin/apachectl : Error: Nothing to do

But it APPEARS to be working…

Took me even a bit more to find /lucee/admin/web.cfm to admin the thing.

So now Im kind of at a loss on how to hook this up to CF web sites that I
have migrated all to a new box.
They were all built and running on CFMX6, and moving to a new 64-bit
system, I had to do something, and a friend turned me on to Lucee yesterday.
Im using the name-based hosting, and they all work currently, just those
needing CF backend sit kind of dumb as a stump at the moment.

What needs to be done to get virtual name-based sites running through
Lucee?

I would go and try to get hints from the old CFMX admin page on the old
server, but well, it died a horrific death and I cannot get back into it
anymore (hence the new machine up and coming). And silly me did not back
up the CF Admin stuff, as I figured I would be reinstalling it if
something ever happened…
forehead palm

I understand *nix docs are a bit thin at the moment, and I would be glad
to share what all I find (I could write up something for the Wiki, etc)
I just need this one thing to get me moving forward again.

Thanks
Jim

What needs to be done to get virtual name-based sites running through
Lucee?
can you define “virtual name-based sites”?

in general you want to make sure that the Tomcat config files are set to
process requests of your websites, and that they map the *.cfm
url-pattern to the Lucee servlet. the tomcat config files (server.xml
and web.xml) are in {Tomcat}/conf/ folder.

the mod_cfml connector that comes with the installer makes life a bit
easier.

I would go and try to get hints from the old CFMX admin page on the
old server, but well, it died a horrific death
CFMX6?? looks like that death has put it out of its misery…

Igal Sapir
Lucee Core Developer
Lucee.org http://lucee.org/On 6/7/2015 9:57 PM, Jim Kinter wrote:

Noob Alert.
Just today found and installed Lucee on CentOS7 (64-bit) using Apache
2.4.6, PHP 5.4.16. Tomcat 7.0.54

Took me a bit to find the *nix installer, but got it, ran it, took all
defaults except password and log file.
Got an error towards the end:

Warning: Problem running post-install step. Installation may not
complete correctly
Error running /opt/lucee/sys/install_mod_cfml.sh -m install -l
/opt/lucee -f /etc/httpd/conf/httpd.conf -c /usr/sbin/apachectl :
Error: Nothing to do

But it APPEARS to be working…

Took me even a bit more to find /lucee/admin/web.cfm to admin the thing.

So now Im kind of at a loss on how to hook this up to CF web sites
that I have migrated all to a new box.
They were all built and running on CFMX6, and moving to a new 64-bit
system, I had to do something, and a friend turned me on to Lucee
yesterday.
Im using the name-based hosting, and they all work currently, just
those needing CF backend sit kind of dumb as a stump at the moment.

What needs to be done to get virtual name-based sites running through
Lucee?

I would go and try to get hints from the old CFMX admin page on the
old server, but well, it died a horrific death and I cannot get back
into it anymore (hence the new machine up and coming). And silly me
did not back up the CF Admin stuff, as I figured I would be
reinstalling it if something ever happened…
forehead palm

I understand *nix docs are a bit thin at the moment, and I would be
glad to share what all I find (I could write up something for the
Wiki, etc)
I just need this one thing to get me moving forward again.

Thanks
Jim


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/0e9e0093-d134-4979-a5cc-22cdf1955ebb%40googlegroups.com
https://groups.google.com/d/msgid/lucee/0e9e0093-d134-4979-a5cc-22cdf1955ebb%40googlegroups.com?utm_medium=email&utm_source=footer.
For more options, visit https://groups.google.com/d/optout.

Just Yum updates, whatever that gets me.
This was a brand new build of CentOS7 into a Virtualbox VM last week.

[root@websvr conf]# /usr/sbin/httpd -v
Server version: Apache/2.4.6 (CentOS)
Server built: Mar 12 2015 15:07:19

Is there some manual way to create the virtual hosts/fix the issue?
Something I should be looking for that needs fixing?

By the way, I sincerely appreciate any and all help I get here.
This looks extremely interesting to migrate into.
Im quite excited that I found this, I just need to get up to speed on the
new way of doing things.

Thanks
JimOn Monday, June 8, 2015 at 9:16:09 AM UTC-5, Tom Chiverton wrote:

This suggests the install could not configure the Apache plugin to
automatically create virtual hosts in Tomcat. Has you’re Apache config been
updated at all ?

Tom

Hi Jim,

The part of the installation that failed is the “glue” that copies over our Apache virtual hosts and creates contexts for them automatically in Tomcat. You can install this part manually if you need to, as there are detailed instructions over at modcfml.org:

http://www.modcfml.org/index.cfm/install/web-server-components/apache-on-centos/

Personally, I would be interested to know why the script failed. What happens when you run the script manually?

/opt/lucee/sys/install_mod_cfml.sh -m install -l /opt/lucee

-f /etc/httpd/conf/httpd.conf -c /usr/sbin/apachectl

Do you get a more detailed error message?

The mod_cfml project as just recently been updated. The version that gets installed by the current Lucee installers is the slightly older mod_perl version. The newest version is now a native Apache .so module, so if you can, I’d recommend installing the latest version.

I apologize for not seeing this message earlier. I’ve been buried under a pile of other projects… :wink: I will try to keep a closer eye on things.

-Jordan----- Original Message -----
From: “Jim Kinter” <@Jim_Kinter>
To: lucee@googlegroups.com
Sent: Sunday, June 7, 2015 9:57:26 PM
Subject: [Lucee] Lucee Noob/CF experienced

Noob Alert.
Just today found and installed Lucee on CentOS7 (64-bit) using Apache
2.4.6, PHP 5.4.16. Tomcat 7.0.54

Took me a bit to find the *nix installer, but got it, ran it, took all
defaults except password and log file.
Got an error towards the end:

Warning: Problem running post-install step. Installation may not complete
correctly
Error running /opt/lucee/sys/install_mod_cfml.sh -m install -l /opt/lucee
-f /etc/httpd/conf/httpd.conf -c /usr/sbin/apachectl : Error: Nothing to do

But it APPEARS to be working…

Took me even a bit more to find /lucee/admin/web.cfm to admin the thing.

So now Im kind of at a loss on how to hook this up to CF web sites that I
have migrated all to a new box.
They were all built and running on CFMX6, and moving to a new 64-bit
system, I had to do something, and a friend turned me on to Lucee yesterday.
Im using the name-based hosting, and they all work currently, just those
needing CF backend sit kind of dumb as a stump at the moment.

What needs to be done to get virtual name-based sites running through Lucee?

I would go and try to get hints from the old CFMX admin page on the old
server, but well, it died a horrific death and I cannot get back into it
anymore (hence the new machine up and coming). And silly me did not back
up the CF Admin stuff, as I figured I would be reinstalling it if
something ever happened…
forehead palm

I understand *nix docs are a bit thin at the moment, and I would be glad to
share what all I find (I could write up something for the Wiki, etc)
I just need this one thing to get me moving forward again.

Thanks
Jim


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.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/0e9e0093-d134-4979-a5cc-22cdf1955ebb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Is there some manual way to create the virtual hosts/fix the issue?

Yes, certainly. Perhaps this might help?

https://httpd.apache.org/docs/2.2/vhosts/examples.html

Something I should be looking for that needs fixing?

If you still can’t get it to work, I suggest posting more detail, such as
configuration snippets and clear descriptions of what happens when you
change something. Might be easier for others to help you that way.

Awesome :)On Jun 9, 2015 22:15, “Jim Kinter” <@Jim_Kinter> wrote:

Hi All.

I FINALLY got it working today ! Yeah me! :slight_smile:

I dont know why the install script barfed (I tried it 3 times, same result
after scraping it all back out each time), but after a day or so of
tweaking stuff, it magically appeared for one, then I was able to add the
rest of the sites that use CF.

For those in the same boat, I have documented my steps:

Install Lucee:
wget
http://railo.viviotech.net/downloader.cfm/id/133/file/lucee-4.5.1.000-pl0-linux-x64-installer.run

chmod 755 lucee-4.5.1.000-pl0-linux-x64-installer.run

./lucee-4.5.1.000-pl0-linux-x64-installer.run

(mine then errors out at the end)

At the bottom of httpd.conf, a block should have been added:

Allow from 127.0.0.1 ProxyPreserveHost On ProxyPassMatch ^/(.+\.cf[cm])(/.*)?$ http://127.0.0.1:8888/$1$2 ProxyPassMatch ^/(.+\.cfchart)(/.*)?$ http://127.0.0.1:8888/$1$2 ProxyPassMatch ^/(.+\.cfml)(/.*)?$ http://127.0.0.1:8888/$1$2 # optional mappings #ProxyPassMatch ^/flex2gateway/(.*)$ http://127.0.0.1:8888/flex2gateway/$1 #ProxyPassMatch ^/messagebroker/(.*)$ http://127.0.0.1:8888/messagebroker/$1 #ProxyPassMatch ^/flashservices/gateway(.*)$ http://127.0.0.1:8888/flashservices/gateway$1 #ProxyPassMatch ^/openamf/gateway/(.*)$ http://127.0.0.1:8888/openamf/gateway/$1 #ProxyPassMatch ^/rest/(.*)$ http://127.0.0.1:8888/rest/$1 ProxyPassReverse / http://127.0.0.1:8888/

Add your virtualhost entries to httpd.conf as usual.

Then add a block to the bottom of /opt/lucee/tomcat/conf/server.xml for
each domain/site (watch trailing slashes! and only change THINGS
CAPITALIZED):

www.DOMAIN.TLD

Then you have to add 2 directories for each site:

mkdir /{website root path}/WEB-INF
mkdir /{website root path}/WEB-INF/lucee

And then give them proper ownership
chown -R {lucee-user}:{lucee-user} {website root path}/WEB-INF
(you might have to add the user, if the script didnt, like in my case)

Then I restarted services in this order:

service tomcat restart
/opt/lucee/lucee_ctl restart
/usr/sbin/apachectl restart

Check and they should be working.
Tweak then as necessary

Hint: Once working, COPY/BACKUP the working httpd.conf and server.xml in
case you break it, you can refer back to a known-good config !

I am quite anxious to get playing with features brought about since CFMX6
:slight_smile:

My humble Thanks to everyone who assisted!
Jim

On Tuesday, June 9, 2015 at 2:56:59 PM UTC-5, Jordan Michaels wrote:

Hi Jim,

The part of the installation that failed is the “glue” that copies over
our Apache virtual hosts and creates contexts for them automatically in
Tomcat. You can install this part manually if you need to, as there are
detailed instructions over at modcfml.org:

http://www.modcfml.org/index.cfm/install/web-server-components/apache-on-centos/

Personally, I would be interested to know why the script failed. What
happens when you run the script manually?

/opt/lucee/sys/install_mod_cfml.sh -m install -l /opt/lucee

-f /etc/httpd/conf/httpd.conf -c /usr/sbin/apachectl

Do you get a more detailed error message?

The mod_cfml project as just recently been updated. The version that gets
installed by the current Lucee installers is the slightly older mod_perl
version. The newest version is now a native Apache .so module, so if you
can, I’d recommend installing the latest version.

I apologize for not seeing this message earlier. I’ve been buried under a
pile of other projects… :wink: I will try to keep a closer eye on things.

-Jordan

----- Original Message -----
From: “Jim Kinter” j...@k5ktf.com
To: lu...@googlegroups.com
Sent: Sunday, June 7, 2015 9:57:26 PM
Subject: [Lucee] Lucee Noob/CF experienced

Noob Alert.
Just today found and installed Lucee on CentOS7 (64-bit) using Apache
2.4.6, PHP 5.4.16. Tomcat 7.0.54

Took me a bit to find the *nix installer, but got it, ran it, took all
defaults except password and log file.
Got an error towards the end:

Warning: Problem running post-install step. Installation may not complete
correctly
Error running /opt/lucee/sys/install_mod_cfml.sh -m install -l
/opt/lucee
-f /etc/httpd/conf/httpd.conf -c /usr/sbin/apachectl : Error: Nothing to
do

But it APPEARS to be working…

Took me even a bit more to find /lucee/admin/web.cfm to admin the thing.

So now Im kind of at a loss on how to hook this up to CF web sites that I
have migrated all to a new box.
They were all built and running on CFMX6, and moving to a new 64-bit
system, I had to do something, and a friend turned me on to Lucee
yesterday.
Im using the name-based hosting, and they all work currently, just those
needing CF backend sit kind of dumb as a stump at the moment.

What needs to be done to get virtual name-based sites running through
Lucee?

I would go and try to get hints from the old CFMX admin page on the old
server, but well, it died a horrific death and I cannot get back into it
anymore (hence the new machine up and coming). And silly me did not back
up the CF Admin stuff, as I figured I would be reinstalling it if
something ever happened…
forehead palm

I understand *nix docs are a bit thin at the moment, and I would be glad
to
share what all I find (I could write up something for the Wiki, etc)
I just need this one thing to get me moving forward again.

Thanks
Jim


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/0e9e0093-d134-4979-a5cc-22cdf1955ebb%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


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.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/e6329705-6fb6-4c06-80d0-50ddba665c63%40googlegroups.com
https://groups.google.com/d/msgid/lucee/e6329705-6fb6-4c06-80d0-50ddba665c63%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

Hi All.

I FINALLY got it working today ! Yeah me! :slight_smile:

I dont know why the install script barfed (I tried it 3 times, same result
after scraping it all back out each time), but after a day or so of
tweaking stuff, it magically appeared for one, then I was able to add the
rest of the sites that use CF.

For those in the same boat, I have documented my steps:

Install Lucee:
wget
http://railo.viviotech.net/downloader.cfm/id/133/file/lucee-4.5.1.000-pl0-linux-x64-installer.run

chmod 755 lucee-4.5.1.000-pl0-linux-x64-installer.run

./lucee-4.5.1.000-pl0-linux-x64-installer.run

(mine then errors out at the end)

At the bottom of httpd.conf, a block should have been added:

Allow from 127.0.0.1 ProxyPreserveHost On ProxyPassMatch ^/(.+\.cf[cm])(/.*)?$ http://127.0.0.1:8888/$1$2 ProxyPassMatch ^/(.+\.cfchart)(/.*)?$ http://127.0.0.1:8888/$1$2 ProxyPassMatch ^/(.+\.cfml)(/.*)?$ http://127.0.0.1:8888/$1$2 # optional mappings #ProxyPassMatch ^/flex2gateway/(.*)$ http://127.0.0.1:8888/flex2gateway/$1 #ProxyPassMatch ^/messagebroker/(.*)$ http://127.0.0.1:8888/messagebroker/$1 #ProxyPassMatch ^/flashservices/gateway(.*)$ http://127.0.0.1:8888/flashservices/gateway$1 #ProxyPassMatch ^/openamf/gateway/(.*)$ http://127.0.0.1:8888/openamf/gateway/$1 #ProxyPassMatch ^/rest/(.*)$ http://127.0.0.1:8888/rest/$1 ProxyPassReverse / http://127.0.0.1:8888/

Add your virtualhost entries to httpd.conf as usual.

Then add a block to the bottom of /opt/lucee/tomcat/conf/server.xml for
each domain/site (watch trailing slashes! and only change THINGS
CAPITALIZED):

www.DOMAIN.TLD

Then you have to add 2 directories for each site:

mkdir /{website root path}/WEB-INF
mkdir /{website root path}/WEB-INF/lucee

And then give them proper ownership
chown -R {lucee-user}:{lucee-user} {website root path}/WEB-INF
(you might have to add the user, if the script didnt, like in my case)

Then I restarted services in this order:

service tomcat restart
/opt/lucee/lucee_ctl restart
/usr/sbin/apachectl restart

Check and they should be working.
Tweak then as necessary

Hint: Once working, COPY/BACKUP the working httpd.conf and server.xml in
case you break it, you can refer back to a known-good config !

I am quite anxious to get playing with features brought about since CFMX6
:slight_smile:

My humble Thanks to everyone who assisted!
JimOn Tuesday, June 9, 2015 at 2:56:59 PM UTC-5, Jordan Michaels wrote:

Hi Jim,

The part of the installation that failed is the “glue” that copies over
our Apache virtual hosts and creates contexts for them automatically in
Tomcat. You can install this part manually if you need to, as there are
detailed instructions over at modcfml.org:

http://www.modcfml.org/index.cfm/install/web-server-components/apache-on-centos/

Personally, I would be interested to know why the script failed. What
happens when you run the script manually?

/opt/lucee/sys/install_mod_cfml.sh -m install -l /opt/lucee

-f /etc/httpd/conf/httpd.conf -c /usr/sbin/apachectl

Do you get a more detailed error message?

The mod_cfml project as just recently been updated. The version that gets
installed by the current Lucee installers is the slightly older mod_perl
version. The newest version is now a native Apache .so module, so if you
can, I’d recommend installing the latest version.

I apologize for not seeing this message earlier. I’ve been buried under a
pile of other projects… :wink: I will try to keep a closer eye on things.

-Jordan

----- Original Message -----
From: “Jim Kinter” <j...@k5ktf.com <javascript:>>
To: lu...@googlegroups.com <javascript:>
Sent: Sunday, June 7, 2015 9:57:26 PM
Subject: [Lucee] Lucee Noob/CF experienced

Noob Alert.
Just today found and installed Lucee on CentOS7 (64-bit) using Apache
2.4.6, PHP 5.4.16. Tomcat 7.0.54

Took me a bit to find the *nix installer, but got it, ran it, took all
defaults except password and log file.
Got an error towards the end:

Warning: Problem running post-install step. Installation may not complete
correctly
Error running /opt/lucee/sys/install_mod_cfml.sh -m install -l /opt/lucee
-f /etc/httpd/conf/httpd.conf -c /usr/sbin/apachectl : Error: Nothing to
do

But it APPEARS to be working…

Took me even a bit more to find /lucee/admin/web.cfm to admin the thing.

So now Im kind of at a loss on how to hook this up to CF web sites that I
have migrated all to a new box.
They were all built and running on CFMX6, and moving to a new 64-bit
system, I had to do something, and a friend turned me on to Lucee
yesterday.
Im using the name-based hosting, and they all work currently, just those
needing CF backend sit kind of dumb as a stump at the moment.

What needs to be done to get virtual name-based sites running through
Lucee?

I would go and try to get hints from the old CFMX admin page on the old
server, but well, it died a horrific death and I cannot get back into it
anymore (hence the new machine up and coming). And silly me did not back
up the CF Admin stuff, as I figured I would be reinstalling it if
something ever happened…
forehead palm

I understand *nix docs are a bit thin at the moment, and I would be glad
to
share what all I find (I could write up something for the Wiki, etc)
I just need this one thing to get me moving forward again.

Thanks
Jim


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:>.

To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/0e9e0093-d134-4979-a5cc-22cdf1955ebb%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.