wiki/info/landscape/creating-ec2-image-for-webserver-from-scratch.md
... ...
@@ -21,6 +21,13 @@ Then carry out these steps:
21 21
```
22 22
cpan install Date::Parse Email::Address Email::Send DBI Geo::IP::PurePerl
23 23
```
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
+* 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
+```
27
+ <IfModule mod_env.c>
28
+ SetEnv PERL5LIB /usr/share/awstats/lib:/usr/share/awstats/plugins:/root/perl5/lib/perl5
29
+ </IfModule>
30
+```
24 31
* make sure `/etc/alternatives/ruby` and `/etc/alternatives/gem` point to `/usr/bin/[ruby|gem]2.4`
25 32
* run the following commands to install gollum and uninstall a too current rack version 2.0.3:
26 33
```