Loading

Installing CPAN Perl Modules

Installing CPAN Perl Modules

Many of Dada Mail's most advanced features rely on additional code libraries, called CPAN Perl Modules to be installed and available on the web server that Dada Mail runs on. These features are usually entirely optional, meaning Dada Mail will run just fine without them, but your experiene will be enhanced if they are available.

Usually, if a feature is unavailable because of a missing CPAN Perl module, there will be an alert either in the included Dada Mail Installer where you would initially configure this feature; or from within the list control panel, where you would enable/work the feature.

Dada Mail does already ship with many included CPAN Perl modules, but it can't ship with all of them, as they could potentially need additional configuration, a dependency outside of Dada Mail's or Perl's immediate ecosystem, or code compilation.

A list of these optional modules to install can be found in the Bundle::DadaMail module:

https://metacpan.org/pod/distribution/Bundle-DadaMail/lib/Bundle/DadaMail.pm

A fairly exhaustive list of all the CPAN Perl Modules Dada Mail ships with can be found in the, Bundle::DadaMailXXL module:

https://metacpan.org/pod/distribution/Bundle-DadaMail/lib/Bundle/DadaMailXXL.pm

In this FAQ, we're going to focus on using the cPanel Perl Module Installer, which may be available to you, if you're running a hosting account powered by cPanel.

If you're not, you may have to ask your hosting support to install these modules. If you have full access to your webserver, the traditional ways of installing CPAN Perl modules will work just fine for you - either using a package manager released by the vendor of your operating system, or by using the cpan or cpanm command line tools. It's a little trickier, but certainly not impossible, to install Perl module without root privileges, but you'll need access to the command line.

Some resources:

http://perl-begin.org/topics/cpan/life-with-cpan/non-root/

https://github.com/miyagawa/cpanminus

http://stackoverflow.com/questions/2980297/how-can-i-use-cpan-as-a-non-root-user

Using the cPanel Perl Module Installer

In this example, we're going to install a CPAN Perl Module called, DateTime::Event::Recurrence. This module is required to be installed if you want to have recurring scheduled mass mailings (one-time scheduled mass mailings don't require this module).


Recurring Scheduled Mass Mailings disabled, without the required CPAN Perl Module

Log into your cPanel. Search for, Perl Modules


Click this icon.

Scroll down, and find the form labeled, Install a Perl Module. In this form field, type in: DateTime::Event::Recurrence, then click: Install Now


The process of fetching the module and installing it will then commence. A lot of diagnostics will be printed out, much of which you may ignore, unless the install doesn't work correctly. One reason the installation of a module will fail is because a compiler is not available. If you're on a shared host, you may be out of luck, unless your hosting support can help. If you have more control over your account, like access to WHM, you can turn on complier support in there.

Once the process is completed, click the button labeled, Go Back at the bottom of the screen (or generally: go back to the Perl Modules screen), and scroll below the, Install a Perl Module form, where the table of Installed Perl Module(s) is located.

Look and see if you're newly installed CPAN Perl Module is one that's included in the list.


If so, success! Try out the feature in Dada Mail, and see if it is now enabled.


Dada Mail Project

Download

Installation

Support