Нет авторизации после переноса на хостинг

Главные вкладки

Аватар пользователя Shipovnix Shipovnix 22 октября 2018 в 13:49

После переноса сайта с OpenServer на хостинг не могу авторизоваться. После ввода логина пароля, сабмит, страница перезагружается, пользователь не авторизован. Никаких предупреждений не появляется. Куда копать?

Комментарии

Аватар пользователя Shipovnix Shipovnix 22 октября 2018 в 15:08

Я в логах для себя ничего не открыл.
В access.log 547 строк "combine".
В error.log:

[Mon Oct 22 06:25:02.611261 2018] [mpm_prefork:notice] [pid 1103] AH00163: Apache/2.4.29 (Ubuntu) configured -- resuming normal operations
[Mon Oct 22 06:25:02.611293 2018] [core:notice] [pid 1103] AH00094: Command line: '/usr/sbin/apache2'
[Mon Oct 22 07:56:42.361174 2018] [mpm_prefork:notice] [pid 1103] AH00169: caught SIGTERM, shutting down
[Mon Oct 22 07:57:31.352385 2018] [mpm_prefork:notice] [pid 1111] AH00163: Apache/2.4.29 (Ubuntu) configured -- resuming normal operations
[Mon Oct 22 07:57:31.360872 2018] [core:notice] [pid 1111] AH00094: Command line: '/usr/sbin/apache2'
[Mon Oct 22 08:21:28.656564 2018] [mpm_prefork:notice] [pid 1111] AH00169: caught SIGTERM, shutting down
[Mon Oct 22 08:21:28.865481 2018] [mpm_prefork:notice] [pid 1880] AH00163: Apache/2.4.29 (Ubuntu) configured -- resuming normal operations
[Mon Oct 22 08:21:28.865582 2018] [core:notice] [pid 1880] AH00094: Command line: '/usr/sbin/apache2'
[Mon Oct 22 09:50:49.594408 2018] [mpm_prefork:notice] [pid 1880] AH00169: caught SIGTERM, shutting down
[Mon Oct 22 09:51:36.513596 2018] [mpm_prefork:notice] [pid 1104] AH00163: Apache/2.4.29 (Ubuntu) configured -- resuming normal operations
[Mon Oct 22 09:51:36.530283 2018] [core:notice] [pid 1104] AH00094: Command line: '/usr/sbin/apache2'
[Mon Oct 22 12:03:08.895034 2018] [mpm_prefork:notice] [pid 1104] AH00169: caught SIGTERM, shutting down
[Mon Oct 22 17:03:55.624102 2018] [mpm_prefork:notice] [pid 1100] AH00163: Apache/2.4.29 (Ubuntu) configured -- resuming normal operations
[Mon Oct 22 17:03:55.631871 2018] [core:notice] [pid 1100] AH00094: Command line: '/usr/sbin/apache2'
Аватар пользователя ivnish ivnish 22 октября 2018 в 17:20
1

Shipovnix wrote:

AH00169: caught SIGTERM, shutting down

У вас дебаг сделан в NOTICE, нужно вернуть в WARN. Это LogLevel в apache2.conf.

Сервер сами админите или какая-то панель управления стоит?

Аватар пользователя Shipovnix Shipovnix 23 октября 2018 в 7:40

Сам, все конфиги доступны. Но опыта у меня нет.
Уровень логгирования стоял warn, переключил в debug:

[Tue Oct 23 09:33:33.109717 2018] [watchdog:debug] [pid 9770] mod_watchdog.c(454): AH010033: Watchdog: Running with WatchdogInterval 1000ms
[Tue Oct 23 09:33:33.109762 2018] [watchdog:debug] [pid 9770] mod_watchdog.c(462): AH02974: Watchdog: found parent providers.
[Tue Oct 23 09:33:33.109771 2018] [watchdog:debug] [pid 9770] mod_watchdog.c(508): AH02977: Watchdog: found child providers.
[Tue Oct 23 09:33:33.109778 2018] [watchdog:debug] [pid 9770] mod_watchdog.c(516): AH02978: Watchdog: Looking for child (_singleton_).
[Tue Oct 23 09:33:33.109785 2018] [watchdog:debug] [pid 9770] mod_watchdog.c(516): AH02978: Watchdog: Looking for child (_default_).
[Tue Oct 23 09:33:33.112251 2018] [watchdog:debug] [pid 9774] mod_watchdog.c(565): AH02980: Watchdog: nothing configured?
[Tue Oct 23 09:33:33.112620 2018] [watchdog:debug] [pid 9775] mod_watchdog.c(565): AH02980: Watchdog: nothing configured?
[Tue Oct 23 09:33:33.113169 2018] [mpm_prefork:notice] [pid 9770] AH00163: Apache/2.4.29 (Ubuntu) configured -- resuming normal operations
[Tue Oct 23 09:33:33.113188 2018] [watchdog:debug] [pid 9776] mod_watchdog.c(565): AH02980: Watchdog: nothing configured?
[Tue Oct 23 09:33:33.113200 2018] [mpm_prefork:info] [pid 9770] AH00164: Server built: 2018-10-03T14:41:08
[Tue Oct 23 09:33:33.113224 2018] [core:notice] [pid 9770] AH00094: Command line: '/usr/sbin/apache2'
[Tue Oct 23 09:33:33.113235 2018] [core:debug] [pid 9770] log.c(1570): AH02639: Using SO_REUSEPORT: yes (1)
[Tue Oct 23 09:33:33.113245 2018] [mpm_prefork:debug] [pid 9770] prefork.c(923): AH00165: Accept mutex: none (default: sysvsem)
[Tue Oct 23 09:33:33.114572 2018] [watchdog:debug] [pid 9780] mod_watchdog.c(565): AH02980: Watchdog: nothing configured?
[Tue Oct 23 09:33:33.114625 2018] [watchdog:debug] [pid 9777] mod_watchdog.c(565): AH02980: Watchdog: nothing configured?
[Tue Oct 23 09:34:51.203689 2018] [watchdog:debug] [pid 9788] mod_watchdog.c(565): AH02980: Watchdog: nothing configured?
[Tue Oct 23 09:35:05.219380 2018] [watchdog:debug] [pid 9795] mod_watchdog.c(565): AH02980: Watchdog: nothing configured?
[Tue Oct 23 09:35:06.221871 2018] [watchdog:debug] [pid 9797] mod_watchdog.c(565): AH02980: Watchdog: nothing configured?
[Tue Oct 23 09:35:06.221880 2018] [watchdog:debug] [pid 9796] mod_watchdog.c(565): AH02980: Watchdog: nothing configured?
[Tue Oct 23 09:35:07.223820 2018] [watchdog:debug] [pid 9798] mod_watchdog.c(565): AH02980: Watchdog: nothing configured?
[Tue Oct 23 09:35:07.224547 2018] [watchdog:debug] [pid 9799] mod_watchdog.c(565): AH02980: Watchdog: nothing configured?
[Tue Oct 23 09:35:07.225255 2018] [watchdog:debug] [pid 9800] mod_watchdog.c(565): AH02980: Watchdog: nothing configured?
[Tue Oct 23 09:35:07.225700 2018] [watchdog:debug] [pid 9801] mod_watchdog.c(565): AH02980: Watchdog: nothing configured?

К слову: PHP 7.2. Может под Drupal 7 это неправильное решение?

Аватар пользователя Shipovnix Shipovnix 23 октября 2018 в 9:08

Видимо, дело не в PHP, откатил на 7.1, потом на 5.6, симптомы те же.

[Tue Oct 23 11:07:25.942950 2018] [watchdog:debug] [pid 1836] mod_watchdog.c(454): AH010033: Watchdog: Running with WatchdogInterval 1000ms
[Tue Oct 23 11:07:25.943006 2018] [watchdog:debug] [pid 1836] mod_watchdog.c(462): AH02974: Watchdog: found parent providers.
[Tue Oct 23 11:07:25.943015 2018] [watchdog:debug] [pid 1836] mod_watchdog.c(508): AH02977: Watchdog: found child providers.
[Tue Oct 23 11:07:25.943023 2018] [watchdog:debug] [pid 1836] mod_watchdog.c(516): AH02978: Watchdog: Looking for child (_singleton_).
[Tue Oct 23 11:07:25.943029 2018] [watchdog:debug] [pid 1836] mod_watchdog.c(516): AH02978: Watchdog: Looking for child (_default_).
[Tue Oct 23 11:07:25.945318 2018] [watchdog:debug] [pid 1839] mod_watchdog.c(565): AH02980: Watchdog: nothing configured?
[Tue Oct 23 11:07:25.946161 2018] [watchdog:debug] [pid 1840] mod_watchdog.c(565): AH02980: Watchdog: nothing configured?
[Tue Oct 23 11:07:25.946941 2018] [mpm_prefork:notice] [pid 1836] AH00163: Apache/2.4.29 (Ubuntu) configured -- resuming normal operations
[Tue Oct 23 11:07:25.946977 2018] [mpm_prefork:info] [pid 1836] AH00164: Server built: 2018-10-03T14:41:08
[Tue Oct 23 11:07:25.946996 2018] [core:notice] [pid 1836] AH00094: Command line: '/usr/sbin/apache2'
[Tue Oct 23 11:07:25.947006 2018] [core:debug] [pid 1836] log.c(1570): AH02639: Using SO_REUSEPORT: yes (1)
[Tue Oct 23 11:07:25.947017 2018] [mpm_prefork:debug] [pid 1836] prefork.c(923): AH00165: Accept mutex: none (default: sysvsem)
[Tue Oct 23 11:07:25.947132 2018] [watchdog:debug] [pid 1841] mod_watchdog.c(565): AH02980: Watchdog: nothing configured?
[Tue Oct 23 11:07:25.947155 2018] [watchdog:debug] [pid 1843] mod_watchdog.c(565): AH02980: Watchdog: nothing configured?
[Tue Oct 23 11:07:25.947957 2018] [watchdog:debug] [pid 1846] mod_watchdog.c(565): AH02980: Watchdog: nothing configured?
[Tue Oct 23 11:07:38.964723 2018] [watchdog:debug] [pid 1848] mod_watchdog.c(565): AH02980: Watchdog: nothing configured?
[Tue Oct 23 11:07:43.971565 2018] [watchdog:debug] [pid 1852] mod_watchdog.c(565): AH02980: Watchdog: nothing configured?
[Tue Oct 23 11:07:44.973964 2018] [watchdog:debug] [pid 1854] mod_watchdog.c(565): AH02980: Watchdog: nothing configured?
[Tue Oct 23 11:07:44.974475 2018] [watchdog:debug] [pid 1855] mod_watchdog.c(565): AH02980: Watchdog: nothing configured?
[Tue Oct 23 11:07:45.977121 2018] [watchdog:debug] [pid 1856] mod_watchdog.c(565): AH02980: Watchdog: nothing configured?
[Tue Oct 23 11:07:45.977596 2018] [watchdog:debug] [pid 1857] mod_watchdog.c(565): AH02980: Watchdog: nothing configured?
[Tue Oct 23 11:07:45.978658 2018] [watchdog:debug] [pid 1858] mod_watchdog.c(565): AH02980: Watchdog: nothing configured?
[Tue Oct 23 11:07:45.979406 2018] [watchdog:debug] [pid 1859] mod_watchdog.c(565): AH02980: Watchdog: nothing configured?
Аватар пользователя Shipovnix Shipovnix 23 октября 2018 в 14:17
<VirtualHost *:80>
        ServerAdmin email@host.com
        ServerName helpdesk.host.com
        ServerAlias www.helpdesk.host.com
        DocumentRoot /var/www/helpdesk/public_html
        <Directory />
                Options FollowSymLinks
                AllowOverride All
        </Directory>
        <Directory /var/www/helpdesk/public_html>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                Allow from all
        </Directory>
        ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
        <Directory "/usr/lib/cgi-bin">
                AllowOverride None
                Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
                Order allow,deny
                Allow from all
        </Directory>
        ErrorLog ${APACHE_LOG_DIR}/error.log
        LogLevel warn
        CustomLog ${APACHE_LOG_DIR}/access.log combine
</VirtualHost>

# vim: syntax=apache ts=4 sw=4 sts=4 sr noet

Аватар пользователя Shipovnix Shipovnix 23 октября 2018 в 10:54

Дополнительно заметил, что не работают раскрытые фильтры вьюх после выбора значения фильтра и автосабмита. То есть, в адресной строке после перезагрузки страницы контекст вида "?complex=5&status=All" появляется, но по факту фильтрации контента нет.
То же актуально и для любых сабмитящихся post/get форм, например - форма регистрации.