]> git.koha-community.org Git - koha.git/blob - koha-tmpl/intranet-tmpl/prog/en/modules/installer/step2.tt
Bug 17504: Make the installer show the right dmbs help if wrong permissions
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / installer / step2.tt
1 [% INCLUDE 'doc-head-open.inc' %]<title>Koha &rsaquo; Web installer &rsaquo; Step 2</title>
2 [% INCLUDE 'installer-doc-head-close.inc' %]
3 <div>
4 <h1 id="logo"><img alt="Koha" src="[% interface %]/[% theme %]/img/koha.org-logo.gif" /> Web installer &rsaquo; Step 2</h1>
5 <h2 align="center">Database settings:</h2>
6 <ul>
7 <li><em>database type : </em>[% dbms %]</li>
8 <li><em>database name : </em>[% dbname %]</li>
9 <li><em>database host : </em>[% hostname %]</li>
10 <li><em>database port : </em>[% port %] (probably OK if blank)</li>
11 <li><em>database user : </em>[% user %]</li>
12 </ul>
13 <div>
14 [% IF ( dbconnection ) %]
15 <form name="checkdbparameters" type="post" action="install.pl">
16   [% IF ( checkdatabaseaccess ) %]
17   <p>Connection established.</p>
18      [% IF ( checkdatabasecreated ) %]
19   <p>Database <code>[% dbname %]</code> exists.</p>
20         [% IF ( checkgrantaccess ) %]
21   <p>User <code>[% user %]</code> has all required privileges on database <code>[% dbname %]</code>.</p>
22         [% ELSE %]
23   <p class="error">user <code>[% user %]</code> doesn't have enough privilege on database <code>[% dbname %]</code></p>
24   <p class="tip">Ask for or make a change in the user's privileges. Need help? See
25     [% IF dbms == 'mysql' %]<a href="https://dev.mysql.com/doc/refman/5.5/en/grant.html">
26     [% ELSE %]<a href="http://www.postgresql.org/docs/8.2/interactive/sql-createrole.html">
27     [% END %]this page</a>.
28   </p>
29   <p class="tip">
30     User <code>[% user %]</code> must have USAGE, INSERT, UPDATE, DELETE, DROP and CREATE privileges on <code>[% dbname %]</code>
31   </p>
32         [% END %]
33       [% ELSE %]
34   <p class="error">No database named <code>[% dbname %]</code> detected.</p>
35   <p class="tip">Please create the database before continuing.</p>
36       [% END %]
37    [% ELSE %]
38     <div class="error">[% error %] : [% message %]
39     </div>
40     <div class="tip">
41       <ul>
42       <li>Check that your database is running.</li>
43       <li>Check your database settings in <code>koha-conf.xml</code>. </li>
44       <li>Check the hostname setting in <code>koha-conf.xml</code>. 
45       Some database servers require <code>127.0.0.1</code> rather than <code>localhost</code>.</li>
46     </div>
47     <p>Please correct these errors and <a href="/cgi-bin/koha/installer/install.pl">start the installer</a> again.
48   [% END %]
49   [% IF ( error ) %][% ELSE %]
50 <input type="hidden" name="step" value="3" />
51 <p> Click 'Next' to continue <input value="Next &gt;&gt;" type="submit" /></p>
52 [% END %]
53 </form>
54 [% ELSE %]
55 <form name="checkinformation" type="post" action="install.pl">
56 <input type="hidden" name="step" value="2" />
57 <input type="hidden" name="checkdb" value="1" />
58 <p> Please click 'Next' to continue if this information is correct <input value="Next &gt;&gt;" type="submit" /></p>
59 </form>
60 [% END %]
61 </div>
62 </body>
63 </html>