xref: /webtrees/resources/views/setup/step-2-server-checks.phtml (revision ad7270802ba57a28d195fc58fcc55f26458a779a)
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="dbhost" type="hidden" value="<?= e($dbhost) ?>">
7    <input name="dbport" type="hidden" value="<?= e($dbport) ?>">
8    <input name="dbuser" type="hidden" value="<?= e($dbuser) ?>">
9    <input name="dbpass" type="hidden" value="<?= e($dbpass) ?>">
10    <input name="dbname" type="hidden" value="<?= e($dbname) ?>">
11    <input name="tblpfx" type="hidden" value="<?= e($tblpfx) ?>">
12    <input name="wtname" type="hidden" value="<?= e($wtname) ?>">
13    <input name="wtuser" type="hidden" value="<?= e($wtuser) ?>">
14    <input name="wtpass" type="hidden" value="<?= e($wtpass) ?>">
15    <input name="wtemail" type="hidden" value="<?= e($wtemail) ?>">
16
17    <h2><?= I18N::translate('Checking server configuration') ?></h2>
18
19    <?php foreach ($errors as $error) : ?>
20        <p class="alert alert-danger"><?= $error ?></p>
21    <?php endforeach ?>
22
23    <?php foreach ($warnings as $warning) : ?>
24        <p class="alert alert-warning"><?= $warning ?></p>
25    <?php endforeach ?>
26
27    <?php if (empty($errors) && empty($warnings)) : ?>
28        <p>
29            <?= I18N::translate('The server configuration is OK.') ?>
30        </p>
31    <?php endif ?>
32
33    <h2><?= I18N::translate('Checking server capacity') ?></h2>
34
35    <p>
36        <?= I18N::translate('The memory and CPU time requirements depend on the number of individuals in your family tree.') ?>
37    </p>
38    <p>
39        <?= I18N::translate('The following list shows typical requirements.') ?>
40    </p>
41    <p>
42        <?= I18N::translate('Small systems (500 individuals): 16–32 MB, 10–20 seconds') ?>
43        <br>
44        <?= I18N::translate('Medium systems (5,000 individuals): 32–64 MB, 20–40 seconds') ?>
45        <br>
46        <?= I18N::translate('Large systems (50,000 individuals): 64–128 MB, 40–80 seconds') ?>
47    </p>
48
49    <p class="alert alert-<?= $memory_limit < 32 || $cpu_limit > 0 && $cpu_limit < 20 ? 'danger' : 'success' ?>">
50        <?= 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)) ?>
51    </p>
52
53    <p>
54        <?= I18N::translate('If you try to exceed these limits, you may experience server time-outs and blank pages.') ?>
55    </p>
56
57    <p>
58        <?= 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.') ?>
59    </p>
60
61    <hr>
62
63    <button class="btn btn-primary" name="step" type="submit" value="3">
64        <?= I18N::translate('next') ?>
65    </button>
66
67    <button class="btn btn-link" name="step" type="submit" value="1">
68        <?= I18N::translate('previous') ?>
69    </button>
70</form>
71