Add requirement for Catalyst::Devel
[catagits/Catalyst-Runtime.git] / lib / Catalyst / Manual / Installation / CentOS4.pod
CommitLineData
4d583dd8 1=head1 NAME
2
64ccd8a8 3Catalyst::Manual::Installation::CentOS4 - Catalyst Installation on CentOS 4
4d583dd8 4
5
6
7=head1 DESCRIPTION
8
64ccd8a8 9This document provides directions on how to install CentOS 4 (a rebuild
10of RedHat Enterprise 4) and then install Catalyst.
4d583dd8 11
64ccd8a8 12If you already have a functioning install of CentOS, RHEL, or a
13comparable Linux OS, you should be able to skip this first section and
14go straight to the C<INSTALL CATALYST> section.
4d583dd8 15
16
17=head1 INSTALL CENTOS
18
64ccd8a8 19These directions are written for CentOS 4.3 on an i386 machine; however,
20you can substitute other versions as they become available.
4d583dd8 21
22
23=over 4
24
25=item *
26
64ccd8a8 27Go to L<http://isoredirect.centos.org/centos/4/isos/i386/> and click the
28nearest mirror.
4d583dd8 29
30=item *
31
32Download C<CentOS-4.3-i386-bin1of4.iso> (you only need the first disk).
33
34=item *
35
36Burn the .iso to CD.
37
38=item *
39
40Insert the CD into your machine and power it up.
41
42=item *
43
44Hit C<Enter> at the C<boot:> prompt.
45
46=item *
47
64ccd8a8 48CD media test: you can either select C<OK> or C<Skip> depending on
49whether or not you trust your burn.
4d583dd8 50
51=item *
52
64ccd8a8 53The installation GUI should start. Click next at the "Welcome to
54CentOS-4" screen.
4d583dd8 55
56=item *
57
58Select a language and click C<Next>.
59
60=item *
61
62Select a keyboard configuration and click C<Next>.
63
64=item *
65
66Select C<Custom> for the installation type and click C<Next>.
67
68=item *
69
64ccd8a8 70Leave C<Automatically partition> selected on the C<Disk Partitioning
71Setup> and click C<Next>.
4d583dd8 72
73=item *
74
64ccd8a8 75Uncheck C<Review (and modify if needed) the partitions created>, but
76leave the rest of the default settings on the C<Automatic Partitioning>
77screen. Then click C<Next>.
4d583dd8 78
79=item *
80
81Click C<Yes> at the C<Are you sure you want to do this?> warning.
82
83=item *
84
85Click C<Next> on the C<Boot Loader Configuration> screen.
86
87=item *
88
89Update the C<Network Configuration> screen as necessary and click C<Next>.
90
91=item *
92
64ccd8a8 93Check C<Remote Login (SSH)> and click C<Next> on the C<Firewall
94Configuration> screen.
4d583dd8 95
96=item *
97
98Select additional languages as necessary. Click C<Next>.
99
100=item *
101
102Select the appropriate time zone and click C<Next>.
103
104=item *
105
106Enter a root password and click C<Next>.
107
108=item *
109
64ccd8a8 110Scroll to the bottom of the C<Package Group Selection> screen and check
111C<Minimal> (the last option). Click C<Next>.
4d583dd8 112
113=item *
114
115Click C<Next> at the C<About to Install> screen.
116
117=item *
118
64ccd8a8 119The installation will prepare the hard drive and then install the
120required rpm packages.
4d583dd8 121
122=item *
123
124Once the installation completes, remove the CD and click C<Reboot>.
125
126=item *
127
64ccd8a8 128Type C<vi /etc/sysconfig/iptables> and add the following line as the
129third to last line of the file (I<above> the C<-A RH-Firewall-1-INPUT -j
130REJECT --reject-with icmp-host-prohibited> line):
4d583dd8 131
132 -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 3000 -j ACCEPT
133
64ccd8a8 134This will allow Catalyst to make use of port 3000 (the default for the
135development server).
4d583dd8 136
64ccd8a8 137Type C<service iptables restart> to restart the iptables firewall using
138the updated configuration.
4d583dd8 139
140=item *
141
64ccd8a8 142Type C<yum -y update> to retrieve the latest patches.
4d583dd8 143
144=back
145
146
147=head1 INSTALL CATALYST
148
149=over 4
150
151=item *
152
97ed9466 153Type C<yum -y install gcc expat-devel sqlite3> to install several
64ccd8a8 154packages used by Catalyst.
4d583dd8 155
156=item *
157
158Type the following:
159
160 perl -MCPAN -e shell
161
162 ...
163
164 Are you ready for manual configuration? [yes] n
165
166 ...
167
168 cpan shell -- CPAN exploration and modules installation (v1.7601)
169 ReadLine support available (try 'install Bundle::CPAN')
315ba149 170
4d583dd8 171 cpan> force install Module::Build
172
173 ...
174
175 cpan> quit
176
177=item *
178
64ccd8a8 179Type C<wget http://www.shadowcatsystems.co.uk/static/cat-install> to
180retrieve a copy of the C<cat-install> script.
4d583dd8 181
182=item *
183
64ccd8a8 184Type C<vi cat-install> to open the installer script, then insert the
185following lines at the bottom of the file (after the
186C<install('Catalyst');> line):
4d583dd8 187
fcf42995 188 install('Catalyst::Devel');
315ba149 189 install('ExtUtils::ParseXS');
97ed9466 190 install('Digest::SHA1');
315ba149 191 install('Digest::SHA');
4d583dd8 192 install('Class::DBI');
193 install('DBIx::Class');
194 install('DBIx::Class::HTMLWidget');
195 install('Catalyst::Plugin::Session');
196 install('Catalyst::Plugin::Session::State::Cookie');
197 install('Catalyst::Plugin::Session::Store::FastMmap');
198 install('Catalyst::Plugin::Authorization::ACL');
199 install('Catalyst::Plugin::Authentication');
200 install('Catalyst::Plugin::Authorization::Roles');
201 install('Catalyst::Plugin::Authentication::Store::DBIC');
202 install('Catalyst::Plugin::DefaultEnd');
203 install('Catalyst::Plugin::StackTrace');
204 install('Catalyst::Plugin::Dumper');
315ba149 205 install('Catalyst::Plugin::HTML::Widget');
4d583dd8 206 install('Catalyst::Model::DBIC::Schema');
207 install('Catalyst::View::TT');
208 install('Test::WWW::Mechanize::Catalyst');
315ba149 209 install('Test::Pod');
210 install('Test::Pod::Coverage');
4d583dd8 211
212=item *
213
214Type C<perl cat-install>. It will take a while to complete.
215
216=back
217
64ccd8a8 218You should now have a functioning Catalyst installation with the modules
219and plugins required to run the Catalyst tutorial.
4d583dd8 220
221
222=head1 AUTHOR
223
224Kennedy Clark, C<hkclark@gmail.com>
225
226Please report any errors, issues or suggestions to the author.
227
64ccd8a8 228Copyright 2006, Kennedy Clark, under Creative Commons License
229(L<http://creativecommons.org/licenses/by-nc-sa/2.5/>).