Enabling IMAP and Mailparse

SYSTEM INFORMATION
OS type and version AlmaLinux 9.2
Webmin version 2.101
Virtualmin version 7.7
Related packages IMAP MAILSERVE PHP8

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?

Did you install from your OS repository or did you download them and manually install them?
Do they show up here?

1 Like

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 from the terminal window after searching for the module corresponding to the php version


I did go to package manager to see if it installed:

Not sure what else I have to do.

Php version:

So I unistalled and reinstalled from the software package manager but still not recognized from my php info page:

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?

Select the domain, then Web Configuration, PHP Options, and then change the PHP version just for that domain.

Edit: Since you are using the older Virtualmin select Server Configuration (?) then PHP options.

With multiple PHP versions installed properly you should be able to switch the versions.

No. You can keep 8.3.


This is from the page for spicecrm. Seems they prefer 7.4.
image

We provide documentation for installing other PHP version in a safe, non-disruptive, way:

https://www.virtualmin.com/documentation/web/multiplephp/

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

Thanks guys for your help - I will have to use an older version of php to get this to work I believe.

1 Like

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.