Setting up the necessary modules on Linux systems

Besides having a functional AMP stack, our web server needs a few additional modules. These are Perl modules, some of which deal with compression, while others provide extension means (SOAP). Getting these installed requires just a minute's work.

Here's how we can do this using the following commands in yum:

# yum install perl-XML-Simple # yum install perl-Compress-Zlib # yum install perl-DBI # yum install perl-DBD-MySQL # yum install perl-Apache-DBI # yum install perl-Net-IP # yum install perl-SOAP-Lite 

We can do the same with APT as well by using the following commands:

# apt-get install libxml-simple-perl # apt-get install libcompress-zlib-perl # apt-get install libdbi-perl # apt-get install libdbd-mysql-perl # apt-get install libapache-dbi-perl # apt-get install libnet-ip-perl # apt-get install libsoap-lite-perl # cpan -i XML::Entities 

And in the case of Portage, we run the following emerge commands:

# emerge dev-perl/XML-Simple # emerge perl-core/IO-Compress # emerge dev-perl/Apache-DBI # emerge dev-perl/Net-IP # emerge dev-perl/SOAP-Lite # emerge app-portage/g-cpan # g-cpan -i XML::Entities 

As a final note, it does not matter if some of the modules are already installed. Running the commands just mentioned on either package management system won't do any harm. They will be checked, and if they are found to be present, a warning will be printed on the screen.

The SOAP-related modules are optional. They can be installed when needed later on, too.