Wren Installation

Linux app installs on a clean machine:


Fast CGI:

edit /etc/init.d/fcgiwrap and add the following lines:

comment out the following line:

set the USER and GROUP appropriately.


Perl module installs:

$ sudo cpan
cpan[1]> upgrade

or sudo perl -MCPAN -e 'upgrade'

The above will update and test all of the Perl packages. The process may take several minutes to complete.

If these modules don't exist, they need to be installed:


Wren-required modules to install:

On my Digital Ocean droplet, I'm using perl 5, version 14, subversion 2 (v5.14.2), 2011. But I'm fairly certain that I needed to install JSON:PP or include the pure perl files for this module in my programs' lib tree.

On my AWS EC2 server, perl 5, version 18, subversion 2 (v5.18.2), 2013. I did not have to install JSON::PP.


If wanting to have Wren copy the .html and .txt files to an S3 bucket, during creates and updates, then the following needs to be installed.

stackoverflow.com - XML::Parser refusing to isntall

apt-cache search expat

(look for package that states "XML parsing C library - development kit")

sudo apt-get install libexpat1-dev

that should resolve the missing expat.h file, and now the install of this module should work:

sudo perl -MCPAN -e 'install XML::Parser'

then do:

sudo perl -MCPAN -e 'install XML::Simple'
sudo perl -MCPAN -e 'install Amazon::S3'

How to use this module:

http://docs.ceph.com/docs/giant/radosgw/s3/perl

https://metacpan.org/pod/Amazon%3a%3aS3

Within the Wren, edit lib/API/Files.pm and uncomment the lines that use or need the S3.pm module that's included in the same directory. Then edit the yaml/wren.yml config file and add the AWS keys.


Obviously, the Wren install and setup need to be made simpler.

Make appropriate DNS changes for the domain name or subdomain name.

Then on the server as user root:

#wren