xref: /webtrees/resources/views/setup/step-2-server-checks.phtml (revision 67992b6a3e78399bd33189954a5f08bb23b02503)
1<?php use Fisharebest\Webtrees\I18N; ?>
2
3<form method="POST" autocomplete="off">
4    <input name="route" type="hidden" value="setup">
5    <input name="lang" type="hidden" value="<?= e($lang) ?>">
6    <input name="dbtype" type="hidden" value="<?= e($dbtype) ?>">
7    <input name="dbhost" type="hidden" value="<?= e($dbhost) ?>">
8    <input name="dbport" type="hidden" value="<?= e($dbport) ?>">
9    <input name="dbuser" type="hidden" value="<?= e($dbuser) ?>">
10    <input name="dbpass" type="hidden" value="<?= e($dbpass) ?>">
11    <input name="dbname" type="hidden" value="<?= e($dbname) ?>">
12    <input name="tblpfx" type="hidden" value="<?= e($tblpfx) ?>">
13    <input name="wtname" type="hidden" value="<?= e($wtname) ?>">
14    <input name="wtuser" type="hidden" value="<?= e($wtuser) ?>">
15    <input name="wtpass" type="hidden" value="<?= e($wtpass) ?>">
16    <input name="wtemail" type="hidden" value="<?= e($wtemail) ?>">
17
18    <h2>
19        <?= I18N::translate('Checking server configuration') ?>
20    </h2>
21
22    <?php foreach ($errors as $error) : ?>
23        <p class="alert alert-danger"><?= $error ?></p>
24    <?php endforeach ?>
25
26    <?php foreach ($warnings as $warning) : ?>
27        <p class="alert alert-warning"><?= $warning ?></p>
28    <?php endforeach ?>
29
30    <?php if (empty($errors) && empty($warnings)) : ?>
31        <p>
32            <?= I18N::translate('The server configuration is OK.') ?>
33        </p>
34    <?php endif ?>
35
36    <h2><?= I18N::translate('Checking server capacity') ?></h2>
37
38    <p>
39        <?= I18N::translate('The memory and CPU time requirements depend on the number of individuals in your family tree.') ?>
40    </p>
41    <p>
42        <?= I18N::translate('The following list shows typical requirements.') ?>
43    </p>
44    <p>
45        <?= I18N::translate('Small systems (500 individuals): 16–32 MB, 10–20 seconds') ?>
46        <br>
47        <?= I18N::translate('Medium systems (5,000 individuals): 32–64 MB, 20–40 seconds') ?>
48        <br>
49        <?= I18N::translate('Large systems (50,000 individuals): 64–128 MB, 40–80 seconds') ?>
50    </p>
51
52    <p class="alert alert-<?= $memory_limit < 32 || $cpu_limit > 0 && $cpu_limit < 20 ? 'danger' : 'success' ?>">
53        <?= I18N::translate('This server’s memory limit is %s MB and its CPU time limit is %s seconds.', I18N::number($memory_limit), I18N::number($cpu_limit)) ?>
54    </p>
55
56    <p>
57        <?= I18N::translate('If you try to exceed these limits, you may experience server time-outs and blank pages.') ?>
58    </p>
59
60    <p>
61        <?= I18N::translate('If your server’s security policy permits it, you will be able to request increased memory or CPU time using the webtrees administration page. Otherwise, you will need to contact your server’s administrator.') ?>
62    </p>
63
64    <hr>
65
66    <div class="d-flex justify-content-between">
67        <button class="btn btn-primary" name="step" type="submit" value="3">
68            <?= I18N::translate('next') ?>
69        </button>
70
71        <button class="btn btn-secondary" name="step" type="submit" value="1">
72            <?= I18N::translate('previous') ?>
73        </button>
74    </div>
75</form>
76