I’m installing a crm (spiceCRM) on one of my virtual servers. During the install wizard I hit a wall on the system requirements - it passes all items except for imap and mailparse. I installed the modules from the command line but its not enabled even after I restart phpfpm. What am I missing? Is there a way to enable these modules through the config?
This could mean a few things, be more specific. How did you install the modules?
The OS package manager is strongly recommended, whenever possible (and if it’s not possible, try to figure out how to make it possible, because installing from source on a production server, without some way to track what versions are installed and where, is asking for disaster at some point in the future, not to mention it maybe just won’t work, because you need to know a lot more about how to build/install software when you do it from source).
And, you need to install the right packages for the version of PHP you are using (if you have installed other PHP versions, you’ll also need to install the modules built against that specific version of PHP). For Alma, that’s probably php-pecl-mailparse but could be a version specific one, which would have a somewhat different name.
I installed them from the remi repository in the terminal and no they do not show up in the modules list for the php version I am using after installing. see below -I unistalled the modules and reinstalled them from the software package manager - no affect
You already said you used the package manager above.
When you install packages with the Webmin Software Packages module, it is using the OS package manager (which is the correct thing to do, whether via the GUI or via the command line). You’re just repeating what you said you’d already done. You’re not doing anything different by doing it from the GUI vs. doing it on the command line.
OK, so I installed a 7.4 version and an 8.3 version and it shows up in my list now but still not enabled when I go to my php info page. Do I have to enable this manually from a config file of the virtual server? My understanding is that by installing it should be enabled by default - am I wrong?
My next option is to downgrade to php 7.4 - I know it works with that version. What is the correct way to add 7.4 do I have to remove all of the packages first from 8.3?
I recommend you only install the specific versions you need, though, in addition to the default one provided by your OS. The more PHP versions you install, the more you have to be proactive about maintaining and updating, and you also have to remember that the PHP versions from third-party repositories generally have much lower maintenance commitments from the maintainers, so while the OS will be maintained for many years, the extra PHP packages are probably limited to the lifecycle of the PHP versions themselves, so when upstream reaches EOL, the third party PHP packages also probably mostly stop seeing updates (and thus become an ongoing security risk).