So looking at Solr that comes with Coldfusion 2021...
# adobe
m
So looking at Solr that comes with Coldfusion 2021, I installed the package. What should I see at the O/S (linux)? I don't see multicore\template directory - should I right after installing the package. From a thread in #adobe
@Mark Takata (Adobe) trying to install search (solr) 2021 update 5 not getting it to install
m
@sandip_halder @priyank_adobe
e
go to where you installed coldfusion, usually /opt/ColdFusion/ go to the bin folder and then you should see a cfsolr.sh file. run that with cfsolr.sh start - if you want to know what file it touches just lookup the running pid and do an lsof on it.
m
checked - there is no
cfsolr.sh
, no jetty/multicore directory
e
is this an express version?
m
no - the is is enterprise, 2021 update 5
e
on which version of linux?
and you installed 2021, then ran the update?
m
Installed CF 2021 (probably update version 2) a while ago without solr/search Then updated to 4, then to 5 Then tried to add search/solr
Linux version: Red Hat Enterprise Linux 7 (64-bit)
uname -a
Linux XXXXXX 3.10.0-1160.81.1.el7.x86_64 #1 SMP Thu Nov 24 12:21:22 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
I attempted on 2 different (similar configured DEV and QA) servers and had the same result
e
did you use the zip installer, ie the binary you used to install was under 200 MB or there abouts
m
based on my notes yes
e
Try this, download the FULL installer for your os, i think the url is something like: https://trials3.adobe.com/AdobeProducts/CSTD/14/linux64/ColdFusion_2021_GUI_WWEJ_linux64.bin it should prompt you to login if you havent already done so. Then as root chmod +x then run setenforce 0, yum install httpd java -y and then run through the installer by sh ./Coldfusion_2021_GUI_WWEJ_linux64.bin
m
On the existing server or new server?
e
I would go new
as if you have anything in production could be a bad day
m
We have 3 on premise servers PROD, TEST, and DEV servers
e
and if its new, vi /etc/selinux/config and just disable SELINUX until you have AFC fully installed and working
well which ever one you can spare
m
I was attempting on our DEV server
e
so uninstall dev and re-install dev
m
May need to wait until weekend then, stand up a cloud, or install in a different directory
e
if you followed standard practice, all your CFM /L /C files are in /var/www/html
which are untouched by this
m
we actually have them on a R/O mounted disk
e
do what you want, you could even run hyper-v , vmware or virtualbox
that way you can play with it without breaking anything
👍🏻 1
m
ok I'll give this a shot and give an update
e
Ok, the important thing of note is used the GUI image (its huge) as it comes with the optional features from AFC, even if you stay in commandline, and to disable SELINUX on RHEL/ RHEL clones as it screws with the installer. You can always re-enable after its installed and working.
👍🏻 1
m
currently it is disabled on our servers
@Evil Ware I did the bin (1.1 GB) install. It specifically asks about the SOLR & PDF ADD-ons as a special step. Maybe I need to do the ADD-on install? Or Is what you are telling me if I used the .zip method and used cfpm and I did not originally select SOLR Add on to install (I don't even remember that option), I can't add search/solr later?
e
The zip install does not include the needed items to even begin to use their add-ons. if you want solr on your dev box, or plan on installing it use the full "GUI" installer.
UNIX /LINUX you have to run cfsol start. to start the engine after coldfusion is started.
m
Can I use the Add-on installers, instead of reinstalling? Sorry - I just am leery of reinstalling all of our environments and installing a ton of stuff and then removing them.
e
you can backup your config and re-install
and I am sure there is a way, as solr is a war deployed inside /coldfusion
m
Yeah we do that during major upgrades, was just hoping to not have to do that. I really do appreciate your time on this. ---- going kicking and screaming ---- LOL
And nowhere do (I remember) seeing that I had to do that. But I was not listening at the time about SOLR either...
e
just fire up a clone of your production box, then fire up a new box and do the install, then run a differencing software such as notepadd++ compare or beyondcompare and go through the config files and file systems.
In previous versions of Coldfusion, they (ADOBE) wrapped everything in a single installer
now as they want to be "cool" they are making it as small as possible and stripped down, which is weird as if i wanted NodeJS i would run NOdeJS
m
I wish it was that easy - the CF environments are not in the cloud (yet), they are on premise and have a very complicated DMZ, firewall, ports, redirect and infrastructure.
e
all the cloud is, is someone else's server / infrastructure you're renting
m
Agree - but I don't have access permissions to all of that for on premise. I did stand up a Linux box in AWS cloud and went through the whole CF install process last night. Have not had a chance to go back and compare.
e
If you have a laptop or desktop with a semi newer processor made in the last decade, you can run virtualization software and test everything out long before you deploy. Virualbox nowdays has more functionality and performance than Hyper-V servers and its totally, 100 percent free, and runs just about anything. You could even clone a physical server using rsync or dd to your virtualbox if you have the resources. There is more than one way to do anything and as useful as "cloud" is, all it takes is one good change in tech and suddenly everything is back on site. 🙂
m
Ok - I'll do some more experimenting and give an update. Thanks for your awesome responses and time. 💯
👍 1
m
Thanks for the assist here EDub. ❤️
m
Here is the steps to add Solr to a Linux installation that was installed via the cfpm (ColdFusion package manager): 1. Uninstall the search package if it is installed (I did this not sure if it is needed) 2. Download the
ColdFusion_2021_Addon_WWEJ_linux64.bin
from https://helpx.adobe.com/coldfusion/kb/coldfusion-downloads.html?1#cf2021_devtools 3.
chmod +x ColdFusion_2021_Addon_WWEJ_linux64.bin
4.
./ColdFusion_2021_Addon_WWEJ_linux64.bin
5. Install location:
<ColdFusion Home>/cfusion/jetty
6. Either in cfpm or in CF Admin install the search package 7. In CF Admin : Data & Services : Solr Server : Solr Home :
<ColdFusion Home>/cfusion/jetty/multicore/
This is what I have so far and I'll be testing to make sure it works. Hope this helps anyone else doing something similar....