| 1 | package XTaTIK::Docs::01_Installation; | ||
| 2 | |||
| 3 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 1 | our $VERSION = '0.004001'; # VERSION | |
| 7 | |||
| 8 | 1 | 1; | |
| 9 | __END__ | ||
| 10 | |||
| 11 | =encoding utf8 | ||
| 12 | |||
| 13 | =for stopwords eCommerce GEOIP Perlbrew PostgreSQL | ||
| 14 | |||
| 15 | =head1 NAME | ||
| 16 | |||
| 17 | XTaTIK::Docs::01_Installation - Installation instructions for XTaTIK | ||
| 18 | |||
| 19 | =head1 NOTE ON OPERATING SYSTEM | ||
| 20 | |||
| 21 | All instructions below are for Debian 8.1 (Jessie) Linux. | ||
| 22 | If you'd like to provide installation instructions for other operating | ||
| 23 | systems, please submit a | ||
| 24 | L<pull request|https://github.com/XTaTIK/XTaTIK/pulls>. | ||
| 25 | |||
| 26 | =head1 NOTE ON PERL VERSION | ||
| 27 | |||
| 28 | XTaTIK supports the current and previous major releases of Perl. | ||
| 29 | You can use L<Perlbrew|http://perlbrew.pl/> to obtain the latest | ||
| 30 | versions of Perl, if you're currently lacking one. | ||
| 31 | |||
| 32 | =head1 SOFTWARE NOT FOUND ON CPAN | ||
| 33 | |||
| 34 | Some of the software required to run XTaTIK or to compile one of the modules | ||
| 35 | it uses is not available on CPAN. | ||
| 36 | |||
| 37 | =head2 PostgreSQL and Development C Libraries | ||
| 38 | |||
| 39 | You need to install PostgreSQL database, development files for it | ||
| 40 | (needed by L<Mojo::Pg>), and development files for C<libdb> | ||
| 41 | (needed by L<Search::Indexer>). | ||
| 42 | |||
| 43 | I<Note: choose the appropriate version for the C<postgresql-server-dev-9.4> | ||
| 44 | package (run C<aptitude search postgresql-server>)>. | ||
| 45 | |||
| 46 | sudo apt-get install libdb-dev postgresql postgresql-server-dev-9.4; | ||
| 47 | |||
| 48 | =head2 GEOIP DATABASE | ||
| 49 | |||
| 50 | Currently, XTaTIK only supports the Free version of | ||
| 51 | L<IP2Location.com|https://www.ip2location.com/>'s database. | ||
| 52 | Paid-for version will likely work just fine, but it has never been | ||
| 53 | tested yet. | ||
| 54 | |||
| 55 | You will need to create a B<free> account to download the | ||
| 56 | B<free> database files. | ||
| 57 | Download IPv4 B<DB3.LITE> C<.bin> file (or just B<DB3>, if you're using | ||
| 58 | a paid-for version) of the | ||
| 59 | L<Lite database|http://lite.ip2location.com/databases>. | ||
| 60 | |||
| 61 | Create a folder somewhere nice and safe. It will be your B<Company Silo>. | ||
| 62 | A place to put global config and product pics for all your sites. | ||
| 63 | Save the IP2Locations in that folder. | ||
| 64 | |||
| 65 | =head1 XTaTIK CORE | ||
| 66 | |||
| 67 | Simply install package L<XTaTIK> from CPAN. Using L<cpanm>, it's as | ||
| 68 | simple as: | ||
| 69 | |||
| 70 | cpanm XTaTIK | ||
| 71 | |||
| 72 | =head1 WHAT'S NEXT? | ||
| 73 | |||
| 74 | Next, you should set up your I<Company Silo>. You already saved your | ||
| 75 | IP2Location file into it. | ||
| 76 | |||
| 77 | You don't really need a I<Company Silo>, if you're going to run just | ||
| 78 | a single eCommerce site. If that is the case, simply assume all | ||
| 79 | I<Company Silo> instructions refer to your I<Site Silo>—that is, | ||
| 80 | a directory with all of our site's files. | ||
| 81 | |||
| 82 | See L<XTaTIK::Docs::02_PreparingCompanySilo> next. | ||
| 83 | |||
| 84 | =cut | ||