wiki/info/landscape/creating-ec2-image-for-webserver-from-scratch.md
... ...
@@ -10,7 +10,7 @@ This is an add-on to the regular EC2 image set-up described [here](https://wiki.
10 10
11 11
Then carry out these steps:
12 12
13
-* install additional packages: `yum install fail2ban git mod24_perl perl perl-CGI perl-Template-Toolkit perl-HTML-Template perl-CPAN perl-DBD-MySQL mod24_ssl php71 php71-mysqlnd mod24-ldap ruby24 ruby24-devel rubygems24 rubygems24-devel icu libicu-devel gcc-c++ ncurses-devel geoip-devel`
13
+* install additional packages: `yum install fail2ban git mod24_perl perl perl-CGI perl-Template-Toolkit perl-HTML-Template perl-CPAN perl-DBD-MySQL mod24_ssl php71 php71-mysqlnd mod24-ldap ruby24 ruby24-devel rubygems24 rubygems24-devel icu libicu-devel gcc-c++ ncurses-devel geoip-devel perl-autodie`
14 14
* activate NFS by calling `chkconfig nfs on`; ensure that `/var/log/old` and `/home/scores` are exposed in `/etc/exports` as follows:
15 15
```
16 16
/var/log/old 172.31.0.0/16(rw,nohide,no_root_squash)
... ...
@@ -19,9 +19,27 @@ Then carry out these steps:
19 19
* launch the NFS service once using `service nfs start`
20 20
* run the following command in order to obtain this feature required by Bugzilla:
21 21
```
22
-cpan install Date::Parse Email::Address Email::Send DBI Geo::IP::PurePerl
22
+cpan install Date::Parse Email::Address Email::Send DBI Geo::IP::PurePerl Math::Random::ISAAC
23 23
```
24 24
The libraries end up under `/root/perl5/lib/perl5`. For use by AWStats, read access to this path is required for the Apache web server. In particular, ensure that `/root` has read permissions for all.
25
+* run the following commands to install missing Perl modules:
26
+```
27
+/usr/bin/perl install-module.pl DateTime::TimeZone
28
+/usr/bin/perl install-module.pl Email::Sender
29
+/usr/bin/perl install-module.pl GD
30
+/usr/bin/perl install-module.pl Chart::Lines
31
+/usr/bin/perl install-module.pl Template::Plugin::GD::Image
32
+/usr/bin/perl install-module.pl GD::Text
33
+/usr/bin/perl install-module.pl GD::Graph
34
+/usr/bin/perl install-module.pl PatchReader
35
+/usr/bin/perl install-module.pl Authen::Radius
36
+/usr/bin/perl install-module.pl JSON::RPC
37
+/usr/bin/perl install-module.pl TheSchwartz
38
+/usr/bin/perl install-module.pl Daemon::Generic
39
+/usr/bin/perl install-module.pl File::MimeInfo::Magic
40
+/usr/bin/perl install-module.pl File::Copy::Recursive
41
+```
42
+Those modules were installed to `/root/perl5/lib/perl5` but for some reason any `SetEnv PERL5LIB` directive in the Apache configuration for the bugzilla `VirtualHost` section seemd to remain ignored. Therefore, after installing all modules required, I copied all contents of `/root/perl5/lib/perl` to `/usr/local/share/perl5` to make them found through the `@INC` variable.
25 43
* Ensure that `/root/perl5/lib/perl5` is part of the `PERL5LIB` variable setting in the AWStats virtual host configuration in `/etc/httpd/conf.d/awstats.conf` as follows:
26 44
```
27 45
<IfModule mod_env.c>