Plesk 12 (Windows) with Lucee

I’m trying to get Lucee working with Plesk and I am at complete standstill.
Can anyone walk me through getting Plesk to recognize Lucee and Tomcat?

Many thanks,
Kris

Note that my example is based on Linux, but I bet that Windows would be
very simular.

I know you can switch on Tomcat in Plesk, but I think you’re better of by
installing Lucee with its own Tomcat instance.
So that means not using the Plesk Tomcat at all. Plesk has its own way of
doing stuff, and after an update of Plesk, you might find that your
configuration is messed up.

For running the sites, that you’ve setup in Plesk, with CFML you may just
add the extra Apache configuration (called “Additional directives for
HTTP” under “Web Server settings”) per website.

<Proxy >
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
ProxyPassReverse / http://127.0.0.1:8888/

PerlRequire /opt/lucee/tomcat_connectors/mod_cfml/mod_cfml.pm
PerlHeaderParserHandler mod_cfml
PerlSetVar LogHeaders false
PerlSetVar LogHandlers false
PerlSetVar CFMLHandlers “.cfm .cfc .cfml”

If it would have been Linux you would also need to add lucee to the plesk
group that has created the directory of your site (lucee needs write access
to create the WEB-INF folder).

This is how I managed to get it running without a problem.

I don’t think you can get Plesk to recognize Lucee, only Adobe ColdFusion.

Like Marcel said: Just install Lucee running in its own Tomcat instance,
then add mod_cfml where you need it (globally for every client/vhost or for
each individually).
mod_cfml handles the connection automatically, so there’s nothing you have
to do except set a password for the Lucee admin.On Monday, October 5, 2015 at 7:41:21 AM UTC+2, Michael Brougham wrote:

Hey Marcel… I have Plesk on Centos sever can I pay you to install Lucee
or Railo?

Thanks!

Michael

On Sunday, July 12, 2015 at 5:02:08 PM UTC-4, Marcel Dix wrote:

I know you can switch on Tomcat in Plesk, but I think you’re better of by
installing Lucee with its own Tomcat instance.
So that means not using the Plesk Tomcat at all. Plesk has its own way of
doing stuff, and after an update of Plesk, you might find that your
configuration is messed up.

For running the sites, that you’ve setup in Plesk, with CFML you may just
add the extra Apache configuration (called “Additional directives for
HTTP” under “Web Server settings”) per website.

<Proxy >
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
ProxyPassReverse / http://127.0.0.1:8888/

PerlRequire /opt/lucee/tomcat_connectors/mod_cfml/mod_cfml.pm
PerlHeaderParserHandler mod_cfml
PerlSetVar LogHeaders false
PerlSetVar LogHandlers false
PerlSetVar CFMLHandlers “.cfm .cfc .cfml”

If it would have been Linux you would also need to add lucee to the plesk
group that has created the directory of your site (lucee needs write access
to create the WEB-INF folder).

This is how I managed to get it running without a problem.

Hey Marcel… I have Plesk on Centos sever can I pay you to install Lucee or
Railo?

Thanks!

MichaelOn Sunday, July 12, 2015 at 5:02:08 PM UTC-4, Marcel Dix wrote:

I know you can switch on Tomcat in Plesk, but I think you’re better of by
installing Lucee with its own Tomcat instance.
So that means not using the Plesk Tomcat at all. Plesk has its own way of
doing stuff, and after an update of Plesk, you might find that your
configuration is messed up.

For running the sites, that you’ve setup in Plesk, with CFML you may just
add the extra Apache configuration (called “Additional directives for
HTTP” under “Web Server settings”) per website.

<Proxy >
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
ProxyPassReverse / http://127.0.0.1:8888/

PerlRequire /opt/lucee/tomcat_connectors/mod_cfml/mod_cfml.pm
PerlHeaderParserHandler mod_cfml
PerlSetVar LogHeaders false
PerlSetVar LogHandlers false
PerlSetVar CFMLHandlers “.cfm .cfc .cfml”

If it would have been Linux you would also need to add lucee to the plesk
group that has created the directory of your site (lucee needs write access
to create the WEB-INF folder).

This is how I managed to get it running without a problem.

  1. I installed lucee separately.
  2. After each time a host will creat by plesk, i have to add a permission to httpdocs folder. This permission named “Local Service”. I saw this important note in lucee video installation guide (Step 4).
  3. It works. I have lucee with plesk. But there is a mistake. when i upload an image by some permissions like what plesk sets for application pool identifier do not inherent for new file (like System user). By this issue i can not see the image, when i call it from a browser. It gives me 401.3 error. But when i set the permissions manually the image become visible by address in browser.

Can any one help me for 3rd step?

@Behnam I don’t know Plesk and I don’t know what Webserver you are using. Also, what permissions are you setting exactly that is making the image load?

@andreas thanks for yr reply.

I use lucee 6 (with tomcat build in), windows Server 2022 with plesk (hosting administrator). I use iis version 10.

Plesk makes a System user’s credentials like xxx_domian name for each host. When I right click on any file or folder of the website root in server, select properties then security tap, the xxx_domain with full control is listed. And also identifier of application pool is xxx_domain

When I upload an image file by cffile, the file become upload and you can see it in root folder. But when I want to see the file by url in browser I meet 401.3 error. If I add xxx_domain permission manually, it works.

I want to solve this problem. I want to bypass this permission or add this permission automatically.