Does anyone have the experience to run the Lucee a...
# lucee
a
Does anyone have the experience to run the Lucee and PHP running on the same Ubuntu server? I haven't found any blog on this experiment.
a
What do you mean? They don't really have any overlap. Neither will know or care the other exists. What issue do you have that lead to the question?
z
Yeah it's just a different handler for a file extension
a
Like as a hobbyist, If I want to run my personal website containing different codes or examples, then it will be helpful.
z
Just try it, only way to learn!
a
Is there any way we can proxy on Nginx both ports, like we can run the PHP on one port and lucee on the other port and Nginx tweak up both extensions? Is there any possibility?
z
It's really simple, only gets complicated with SES urls, for just .php and .cfc / .cfm
a
Regarding the SES can we route the particular regex-based URLs to specific extensions?
r
@Abdul Raheem I would get your Nginx and php site up and running then install Lucee and add an entry to Nginx for the Lucee site. https://dnando.github.io/blog/2015/01/05/advantages-of-nginx/
a
Nginx doesn't care what it's proxying to, provided it can tell the two apart (via a pattern match on the URI usually), so eg
/php/rest/of/path/
will proxy to PHP and
/cfml/rest/of/path/
will proxy to Lucee. Obvs yer actual paths will be less silly than that, but there must be a way for you to differentiate one from the other, either that or yer gonna need to rely on hitting specific file extensions in yer URL which is a bit rubbish (eg:
/some/path/index.cfm
vs
/some/path/index.php
... you don't wanna be taking that approach). Just set up one of them (ie: one of Lucee or PHP) in yer Nginx-served web site, following whatever instructions you have that you understand and know to work. Then... set up the other... in the same web site. There is no overlap.
p
Agree with everything said here, I would just add, as long as you are serving both sets of files from the same domain, you can even share "state" information between them by setting cookies accessible from both code bases.
a
Thank you guys for the fruitful discussion. Let gets my hands dirty on this experiment. I will make my notes and will share them here.
a
Nice one @Abdul Raheem. Looking fwd to reading about how it shook out.
p
If you want to try something quickly to see if this is something you want to pursue crafting your own solution for. Grab a copy of plesk.com VPS edition. It has a trial. Once installed on your linux server, grab the Lucee installer and install it on top of the server. You will have a full admin panel, the php stuff will work, and your cfm/cfc stuff will work. This is the quick test and may be a good ultimate solution but it lets you scratch that itch to see if you want a more specialized custom solution.
a
Thanks, Peter; I would like to test with the digital ocean's server with manual configuration of different things for my POC. Thanks for your suggestion. Definitely worth trying.