xref: /webtrees/resources/views/errors/database-connection.phtml (revision 01cccaa9b32930a9abd41484566fc39269a168b4)
1<?php
2
3use Fisharebest\Webtrees\I18N;
4
5?>
6
7<div class="content">
8    <p>
9        <?= I18N::translate('Oops! The webserver is unable to connect to the database server. It could be busy, undergoing maintenance, or simply broken. You should <a href="index.php">try again</a> in a few minutes or contact the website administrator.') ?>
10    </p>
11
12    <blockquote>
13        <?= e($error) ?>
14    </blockquote>
15
16    <?= I18N::translate('If you are the website administrator, you should check that:') ?>
17
18    <ol>
19        <li>
20            <?= /* I18N: [you should check that:] ... */ I18N::translate('the database connection settings in the file “/data/config.ini.php” are still correct') ?>
21        </li>
22        <li>
23            <?= /* I18N: [you should check that:] ... */ I18N::translate('the folder “/data” and the file “/data/config.ini.php” have access permissions that allow the webserver to read them') ?>
24        </li>
25        <li>
26            <?= /* I18N: [you should check that:] ... */ I18N::translate('you can connect to the database using other applications, such as phpmyadmin') ?>
27        </li>
28    </ol>
29
30    <p class="good">
31        <?= I18N::translate('If you cannot resolve the problem yourself, you can ask for help on the forums at <a href="https://webtrees.net">webtrees.net</a>.') ?>
32    </p>
33</div>
34