phpmyadmin, apache2

Аватара пользователя

Автор темы
Dja
Сообщения: 6884
Зарегистрирован: 27 авг 2016, 20:03
Решено: 30
Откуда: Voskresensk
Благодарил (а): 1312 раз
Поблагодарили: 724 раза
Контактная информация:

phpmyadmin, apache2

#1

14 авг 2023, 13:28

В продолжение темы
Продолжим...
Установил Nextcloud. Ему нужен php8 (не меньше). Поставил. Апач брыкался. Пнули. Но не успел я создать БД для Nextcloud как обнаружил, что брыкается phpmyadmin. Этому теперь не нравится отсутствие https... Пытаюсь перенаправить.

Код: Выделить всё

<VirtualHost *:80>
        ServerName IP
Redirect / https://IP/
        ServerAdmin webmaster@localhost
        DocumentRoot /var/www/html
        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

Код: Выделить всё

<IfModule mod_ssl.c>
<VirtualHost *:443>
        ServerName IP
        ServerAdmin dja@linuxmint.com.ru
        DocumentRoot /var/www/html
        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined
SSLEngine On
SSLCertificateFile      /etc/ssl/certs/ssl-cert-snakeoil.pem
SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
        </VirtualHost>
</IfModule>
Может...проблема в том, что "сайт" не имеет имени? :scratch:

Аватара пользователя

Автор темы
Dja
Сообщения: 6884
Зарегистрирован: 27 авг 2016, 20:03
Решено: 30
Откуда: Voskresensk
Благодарил (а): 1312 раз
Поблагодарили: 724 раза
Контактная информация:

phpmyadmin, apache2

#2

14 авг 2023, 13:52

забыл включить мод ssl :joke:
Переходим к phpmyadmin
Имеется 3 репорта
Deprecation Notice in ./../../php/Twig/Loader/FilesystemLoader.php#40
 realpath(): Passing null to parameter #1 ($path) of type string is deprecated

Backtrace

FilesystemLoader.php#40: realpath(NULL)
./libraries/classes/Template.php#59: Twig\Loader\FilesystemLoader->__construct(string '/usr/share/phpmyadmin//templates/')
./libraries/classes/Theme.php#103: PhpMyAdmin\Template->__construct()
./libraries/classes/Theme.php#174: PhpMyAdmin\Theme->__construct()
./libraries/classes/ThemeManager.php#304: PhpMyAdmin\Theme::load(
string './themes/pmahomme',
string '/usr/share/phpmyadmin/./themes/pmahomme/',
)
./libraries/classes/ThemeManager.php#89: PhpMyAdmin\ThemeManager->loadThemes()
./libraries/classes/ThemeManager.php#129: PhpMyAdmin\ThemeManager->__construct()
./libraries/classes/ThemeManager.php#397: PhpMyAdmin\ThemeManager::getInstance()
./libraries/common.inc.php#315: PhpMyAdmin\ThemeManager::initializeTheme()
./index.php#23: require_once(./libraries/common.inc.php)
Deprecation Notice in ./../../php/Twig/Node/Node.php#161
 Return type of Twig\Node\Node::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

Backtrace

autoload.php#370: require(./../../php/Twig/Node/Node.php)
{closure}(string 'Twig\\Node\\Node')
TwigFilter.php#150: class_exists(string 'Twig\\Node\\Node')
autoload.php#370: require(./../../php/Twig/TwigFilter.php)
CoreExtension.php#214: {closure}(string 'Twig\\TwigFilter')
ExtensionSet.php#433: Twig\Extension\CoreExtension->getFilters()
ExtensionSet.php#423: Twig\ExtensionSet->initExtension()
ExtensionSet.php#243: Twig\ExtensionSet->initExtensions()
Environment.php#797: Twig\ExtensionSet->getFilter(string 'error')
./../../../../../../var/lib/phpmyadmin/tmp/twig/49/49433f77d3462b2488dfef3699484854e3c55e4b348dae30482fadd1ce008731.php#63: Twig\Environment->getFilter(string 'error')
Template.php#405: __TwigTemplate_95dd0b99dd97a989e49170a5554a1e0ce6595b0346e92b70254c854745cea47e->doDisplay(
array,
array,
)
Template.php#378: Twig\Template->displayWithErrorHandling(
array,
array,
)
Template.php#390: Twig\Template->display(array)
TemplateWrapper.php#45: Twig\Template->render(
array,
array,
)
./libraries/classes/Template.php#134: Twig\TemplateWrapper->render(array)
./libraries/classes/Plugins/Auth/AuthenticationCookie.php#141: PhpMyAdmin\Template->render(
string 'login/header',
array,
)
./libraries/classes/Plugins/AuthenticationPlugin.php#268: PhpMyAdmin\Plugins\Auth\AuthenticationCookie->showLoginForm()
./libraries/common.inc.php#365: PhpMyAdmin\Plugins\AuthenticationPlugin->authenticate()
./index.php#23: require_once(./libraries/common.inc.php)
Deprecation Notice in ./../../php/Twig/Node/Node.php#166
 Return type of Twig\Node\Node::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

Backtrace

autoload.php#370: require(./../../php/Twig/Node/Node.php)
{closure}(string 'Twig\\Node\\Node')
TwigFilter.php#150: class_exists(string 'Twig\\Node\\Node')
autoload.php#370: require(./../../php/Twig/TwigFilter.php)
CoreExtension.php#214: {closure}(string 'Twig\\TwigFilter')
ExtensionSet.php#433: Twig\Extension\CoreExtension->getFilters()
ExtensionSet.php#423: Twig\ExtensionSet->initExtension()
ExtensionSet.php#243: Twig\ExtensionSet->initExtensions()
Environment.php#797: Twig\ExtensionSet->getFilter(string 'error')
./../../../../../../var/lib/phpmyadmin/tmp/twig/49/49433f77d3462b2488dfef3699484854e3c55e4b348dae30482fadd1ce008731.php#63: Twig\Environment->getFilter(string 'error')
Template.php#405: __TwigTemplate_95dd0b99dd97a989e49170a5554a1e0ce6595b0346e92b70254c854745cea47e->doDisplay(
array,
array,
)
Template.php#378: Twig\Template->displayWithErrorHandling(
array,
array,
)
Template.php#390: Twig\Template->display(array)
TemplateWrapper.php#45: Twig\Template->render(
array,
array,
)
./libraries/classes/Template.php#134: Twig\TemplateWrapper->render(array)
./libraries/classes/Plugins/Auth/AuthenticationCookie.php#141: PhpMyAdmin\Template->render(
string 'login/header',
array,
)
./libraries/classes/Plugins/AuthenticationPlugin.php#268: PhpMyAdmin\Plugins\Auth\AuthenticationCookie->showLoginForm()
./libraries/common.inc.php#365: PhpMyAdmin\Plugins\AuthenticationPlugin->authenticate()
./index.php#23: require_once(./libraries/common.inc.php)
Что-то мне подсказывает, что игнорить это не получится, поскольку на ввод логина и пароля он дальше ругается, что не может в данный момент обработать запрос
Страница недоступна
Сайт IP пока не может обработать этот запрос

Аватара пользователя

WWolf
Сообщения: 3899
Зарегистрирован: 14 фев 2018, 00:51
Решено: 31
Откуда: Краснодар
Благодарил (а): 1688 раз
Поблагодарили: 1213 раз
Контактная информация:

phpmyadmin, apache2

#3

14 авг 2023, 13:54

Dja, с путями напортачил что-то...

Аватара пользователя

Автор темы
Dja
Сообщения: 6884
Зарегистрирован: 27 авг 2016, 20:03
Решено: 30
Откуда: Voskresensk
Благодарил (а): 1312 раз
Поблагодарили: 724 раза
Контактная информация:

phpmyadmin, apache2

#4

14 авг 2023, 14:25

В файле /etc/phpmyadmin/config.inc.php добавил

Код: Выделить всё

$cfg['SendErrorReports'] = 'never';
и всё стало чисто. А страница недоступна была после того, как пароль неверный вводил. Ввёл правильный пароль и всё стало норм!

Ответить

Вернуться в «Болталка: Оффтоп, разбор полетов»

Кто сейчас на конференции

Сейчас этот форум просматривают: нет зарегистрированных пользователей и 2 гостя