LINUX.ORG.RU

Не открываеться страница postfixadmin/setup.php

 , , , ,


1

2

Не открываеться страница postfixadmin/setup.php а при попытке перейти скачивает файл status.php. В чем проблема? Думаю проблема может быть в nginx так как при статусе его выдает ошибку.

systemctl start nginx
Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details.
[root@localhost ~]# journalctl -xe
Мар 29 12:13:57 localhost.localdomain named[1220]: error (connection refused) re
Мар 29 12:14:27 localhost.localdomain polkitd[596]: Registered Authentication Ag
Мар 29 12:14:27 localhost.localdomain systemd[1]: Starting The nginx HTTP and re
-- Subject: Начинается запуск юнита nginx.service
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Начат процесс запуска юнита nginx.service.
Мар 29 12:14:27 localhost.localdomain nginx[2318]: nginx: [emerg] a duplicate de
Мар 29 12:14:27 localhost.localdomain nginx[2318]: nginx: configuration file /et
Мар 29 12:14:27 localhost.localdomain systemd[1]: nginx.service: control process
Мар 29 12:14:27 localhost.localdomain systemd[1]: Failed to start The nginx HTTP
-- Subject: Ошибка юнита nginx.service
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Произошел сбой юнита nginx.service.
-- 
-- Результат: failed.
Мар 29 12:14:27 localhost.localdomain systemd[1]: Unit nginx.service entered fai
Мар 29 12:14:27 localhost.localdomain systemd[1]: nginx.service failed.
Мар 29 12:14:27 localhost.localdomain polkitd[596]: Unregistered Authentication 

[6]+  Stopped                 journalctl -xe



Последнее исправление: SysError (всего исправлений: 2)

С emerg ошибкой nginx не запустится

Убедись, что ты используешь именно nginx, а не например apache. Проверить, кто именно слушает порт, можно с помощью netstat

router ★★★★★
()
Ответ на: комментарий от router
netstat
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State      
tcp        0    164 ns.thxlor:ssh           bubunta.thxlor:60418    ESTABLISHED
Active UNIX domain sockets (w/o servers)
Proto RefCnt Flags       Type       State         I-Node   Path
unix  2      [ ]         DGRAM                    15914    /var/run/chrony/chronyd.sock
unix  2      [ ]         DGRAM                    1195     /run/systemd/notify
unix  2      [ ]         DGRAM                    1197     /run/systemd/cgroups-agent
unix  5      [ ]         DGRAM                    1208     /run/systemd/journal/socket
unix  17     [ ]         DGRAM                    1210     /dev/log
unix  2      [ ]         DGRAM                    12008    /run/systemd/shutdownd
unix  3      [ ]         STREAM     CONNECTED     20267    
unix  3      [ ]         STREAM     CONNECTED     20278    
unix  3      [ ]         STREAM     CONNECTED     20320    
unix  2      [ ]         DGRAM                    14751    
unix  3      [ ]         STREAM     CONNECTED     15683    /run/systemd/journal/stdout
unix  3      [ ]         STREAM     CONNECTED     20279    
unix  3      [ ]         STREAM     CONNECTED     15169    
unix  3      [ ]         STREAM     CONNECTED     20276    
unix  3      [ ]         STREAM     CONNECTED     20266    
unix  3      [ ]         STREAM     CONNECTED     14757    
unix  2      [ ]         DGRAM                    15697    
unix  3      [ ]         STREAM     CONNECTED     20321    
unix  3      [ ]         STREAM     CONNECTED     14962    /var/run/dbus/system_bus_socket
unix  3      [ ]         STREAM     CONNECTED     13616    /run/systemd/journal/stdout
unix  3      [ ]         STREAM     CONNECTED     20275    
unix  3      [ ]         STREAM     CONNECTED     16560    
unix  3      [ ]         STREAM     CONNECTED     20272    
unix  3      [ ]         STREAM     CONNECTED     15170    /run/systemd/journal/stdout
unix  3      [ ]         STREAM     CONNECTED     14750    
unix  3      [ ]         STREAM     CONNECTED     20273    
unix  2      [ ]         DGRAM                    15174    
unix  3      [ ]         STREAM     CONNECTED     15444    /run/systemd/journal/stdout
unix  3      [ ]         STREAM     CONNECTED     20284    
unix  3      [ ]         STREAM     CONNECTED     19799    
unix  3      [ ]         STREAM     CONNECTED     15392    /run/systemd/journal/stdout
unix  3      [ ]         STREAM     CONNECTED     20285    
unix  3      [ ]         STREAM     CONNECTED     14964    /var/run/dbus/system_bus_socket
unix  3      [ ]         STREAM     CONNECTED     20282    
unix  3      [ ]         STREAM     CONNECTED     16561    /run/systemd/journal/stdout
unix  2      [ ]         DGRAM                    20491    
unix  3      [ ]         STREAM     CONNECTED     15682    
unix  2      [ ]         DGRAM                    15013    
unix  2      [ ]         DGRAM                    20325    
unix  3      [ ]         STREAM     CONNECTED     14774    
unix  2      [ ]         DGRAM                    19034    
unix  2      [ ]         DGRAM                    18709    
unix  3      [ ]         STREAM     CONNECTED     13615    
unix  3      [ ]         STREAM     CONNECTED     20281    
unix  2      [ ]         DGRAM                    20235    
unix  3      [ ]         STREAM     CONNECTED     20269    
unix  3      [ ]         STREAM     CONNECTED     18763    
unix  3      [ ]         STREAM     CONNECTED     14963    /var/run/dbus/system_bus_socket
unix  3      [ ]         STREAM     CONNECTED     15639    
unix  3      [ ]         STREAM     CONNECTED     14620    
unix  3      [ ]         STREAM     CONNECTED     18764    /run/systemd/journal/stdout
unix  3      [ ]         STREAM     CONNECTED     20302    
unix  3      [ ]         STREAM     CONNECTED     19436    
unix  3      [ ]         STREAM     CONNECTED     19105    /run/systemd/journal/stdout
unix  3      [ ]         STREAM     CONNECTED     20261    
unix  3      [ ]         STREAM     CONNECTED     19435    
unix  3      [ ]         STREAM     CONNECTED     20303    
unix  3      [ ]         STREAM     CONNECTED     20264    
unix  2      [ ]         DGRAM                    14462    
unix  3      [ ]         STREAM     CONNECTED     20306    
unix  2      [ ]         DGRAM                    13618    
unix  3      [ ]         STREAM     CONNECTED     20305    
unix  3      [ ]         STREAM     CONNECTED     19532    
unix  3      [ ]         STREAM     CONNECTED     20308    
unix  3      [ ]         STREAM     CONNECTED     20263    
unix  3      [ ]         STREAM     CONNECTED     19446    
unix  3      [ ]         STREAM     CONNECTED     20309    
unix  3      [ ]         STREAM     CONNECTED     20260    

SysError
() автор топика
Ответ на: комментарий от router
unix  2      [ ]         DGRAM                    15487    
unix  3      [ ]         STREAM     CONNECTED     20312    
unix  3      [ ]         STREAM     CONNECTED     14960    
unix  3      [ ]         STREAM     CONNECTED     20311    
unix  3      [ ]         STREAM     CONNECTED     19450    
unix  3      [ ]         STREAM     CONNECTED     20315    
unix  3      [ ]         STREAM     CONNECTED     19449    
unix  3      [ ]         STREAM     CONNECTED     19445    
unix  3      [ ]         STREAM     CONNECTED     20314    
unix  3      [ ]         STREAM     CONNECTED     19452    
unix  3      [ ]         STREAM     CONNECTED     20318    
unix  3      [ ]         STREAM     CONNECTED     14961    
unix  3      [ ]         STREAM     CONNECTED     20317    
unix  2      [ ]         DGRAM                    16211    
unix  3      [ ]         STREAM     CONNECTED     16256    /var/run/dbus/system_bus_socket
unix  3      [ ]         STREAM     CONNECTED     21503    /run/systemd/journal/stdout
unix  3      [ ]         STREAM     CONNECTED     19800    /var/run/dbus/system_bus_socket
unix  3      [ ]         STREAM     CONNECTED     19438    
unix  2      [ ]         DGRAM                    17049    
unix  3      [ ]         STREAM     CONNECTED     16222    
unix  3      [ ]         STREAM     CONNECTED     16093    /var/run/dbus/system_bus_socket
unix  3      [ ]         STREAM     CONNECTED     16713    /var/run/dbus/system_bus_socket
unix  3      [ ]         STREAM     CONNECTED     20270    
unix  3      [ ]         STREAM     CONNECTED     18540    /run/systemd/journal/stdout
unix  2      [ ]         DGRAM                    20666    
unix  2      [ ]         DGRAM                    16705    
unix  2      [ ]         DGRAM                    15910    
unix  3      [ ]         STREAM     CONNECTED     22509    
unix  3      [ ]         STREAM     CONNECTED     16386    
unix  3      [ ]         STREAM     CONNECTED     19439    
unix  3      [ ]         STREAM     CONNECTED     16838    
unix  2      [ ]         DGRAM                    12183    
unix  3      [ ]         STREAM     CONNECTED     18011    
unix  3      [ ]         DGRAM                    13630    
unix  3      [ ]         STREAM     CONNECTED     20287    
unix  3      [ ]         STREAM     CONNECTED     20288    
unix  3      [ ]         DGRAM                    13631    
unix  3      [ ]         STREAM     CONNECTED     20290    
unix  3      [ ]         STREAM     CONNECTED     20291    
unix  3      [ ]         STREAM     CONNECTED     19442    
unix  3      [ ]         STREAM     CONNECTED     12423    
unix  3      [ ]         STREAM     CONNECTED     19443    
unix  3      [ ]         STREAM     CONNECTED     20293    
unix  3      [ ]         STREAM     CONNECTED     20294    
unix  3      [ ]         STREAM     CONNECTED     13470    /run/systemd/journal/stdout
unix  3      [ ]         STREAM     CONNECTED     20296    
unix  3      [ ]         STREAM     CONNECTED     20297    
unix  3      [ ]         STREAM     CONNECTED     14463    
unix  3      [ ]         STREAM     CONNECTED     19453    
unix  3      [ ]         STREAM     CONNECTED     14464    
unix  3      [ ]         STREAM     CONNECTED     20299    
unix  3      [ ]         STREAM     CONNECTED     20300    
У вас есть новая почта в /var/spool/mail/root
SysError
() автор топика
Ответ на: комментарий от kostik87

Переустановил, ввел изменения в конфиги (/etc/php-fpm.d/www.conf и /etc/nginx/conf.d/default.conf), но все же ошибка осталась.

 journalctl -xe
Мар 29 13:26:56 localhost.localdomain named[1191]: error (connection refused) resolving 'tuniv.szczecin.pl/DS/IN': 192.168.100.254#53
Мар 29 13:26:56 localhost.localdomain named[1191]: error (no valid RRSIG) resolving 'uniri.hr/DS/IN': 192.168.100.10#53
Мар 29 13:26:56 localhost.localdomain named[1191]: error (connection refused) resolving 'uniri.hr/DS/IN': 192.168.100.254#53
Мар 29 13:26:56 localhost.localdomain named[1191]: error (network unreachable) resolving 'uniri.hr/DS/IN': 2001:500:84::b#53
Мар 29 13:27:00 localhost.localdomain named[1191]: error (no valid RRSIG) resolving 'poznan.pl/DS/IN': 192.168.100.10#53
Мар 29 13:27:00 localhost.localdomain named[1191]: error (connection refused) resolving 'poznan.pl/DS/IN': 192.168.100.254#53
Мар 29 13:27:00 localhost.localdomain named[1191]: error (no valid RRSIG) resolving 'man.szczecin.pl/DS/IN': 192.168.100.10#53
Мар 29 13:27:00 localhost.localdomain named[1191]: error (connection refused) resolving 'man.szczecin.pl/DS/IN': 192.168.100.254#53
Мар 29 13:27:00 localhost.localdomain named[1191]: error (no valid RRSIG) resolving 'hti.pl/DS/IN': 192.168.100.10#53
Мар 29 13:27:00 localhost.localdomain named[1191]: error (connection refused) resolving 'hti.pl/DS/IN': 192.168.100.254#53
Мар 29 13:27:50 localhost.localdomain named[1191]: error (no valid RRSIG) resolving 'omnilance.com/DS/IN': 192.168.100.10#53
Мар 29 13:27:50 localhost.localdomain named[1191]: error (connection refused) resolving 'omnilance.com/DS/IN': 192.168.100.254#53
Мар 29 13:27:51 localhost.localdomain named[1191]: error (connection refused) resolving 'mirror.omnilance.com/AAAA/IN': 192.168.100.2
Мар 29 13:27:56 localhost.localdomain systemd[1]: Reloading.
Мар 29 13:27:56 localhost.localdomain yum[1809]: Installed: php-fpm-5.4.16-43.el7_4.1.x86_64
Мар 29 13:28:48 localhost.localdomain named[1191]: error (no valid RRSIG) resolving 'googleapis.com/DS/IN': 192.168.100.10#53
Мар 29 13:28:48 localhost.localdomain named[1191]: error (connection refused) resolving 'googleapis.com/DS/IN': 192.168.100.254#53
Мар 29 13:29:10 localhost.localdomain polkitd[594]: Registered Authentication Agent for unix-process:1845:159629 (system bus name :1.
Мар 29 13:29:10 localhost.localdomain systemd[1]: Reloading.
Мар 29 13:29:10 localhost.localdomain polkitd[594]: Unregistered Authentication Agent for unix-process:1845:159629 (system bus name :
Мар 29 13:29:16 localhost.localdomain polkitd[594]: Registered Authentication Agent for unix-process:1864:160270 (system bus name :1.
Мар 29 13:29:16 localhost.localdomain systemd[1]: Starting The PHP FastCGI Process Manager...
-- Subject: Начинается запуск юнита php-fpm.service
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Начат процесс запуска юнита php-fpm.service.
Мар 29 13:29:16 localhost.localdomain systemd[1]: Started The PHP FastCGI Process Manager.
-- Subject: Запуск юнита php-fpm.service завершен
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Процесс запуска юнита php-fpm.service был завершен.
-- 
-- Результат: done.
Мар 29 13:29:16 localhost.localdomain polkitd[594]: Unregistered Authentication Agent for unix-process:1864:160270 (system bus name :
Мар 29 13:29:21 localhost.localdomain polkitd[594]: Registered Authentication Agent for unix-process:1876:160748 (system bus name :1.
Мар 29 13:29:21 localhost.localdomain systemd[1]: Starting The nginx HTTP and reverse proxy server...
-- Subject: Начинается запуск юнита nginx.service
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Начат процесс запуска юнита nginx.service.
Мар 29 13:29:21 localhost.localdomain nginx[1885]: nginx: [emerg] a duplicate default server for 0.0.0.0:80 in /etc/nginx/nginx.conf:
Мар 29 13:29:21 localhost.localdomain nginx[1885]: nginx: configuration file /etc/nginx/nginx.conf test failed
Мар 29 13:29:21 localhost.localdomain systemd[1]: nginx.service: control process exited, code=exited status=1
Мар 29 13:29:21 localhost.localdomain systemd[1]: Failed to start The nginx HTTP and reverse proxy server.
-- Subject: Ошибка юнита nginx.service
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Произошел сбой юнита nginx.service.
-- 
-- Результат: failed.
Мар 29 13:29:21 localhost.localdomain systemd[1]: Unit nginx.service entered failed state.
Мар 29 13:29:21 localhost.localdomain polkitd[594]: Unregistered Authentication Agent for unix-process:1876:160748 (system bus name :
Мар 29 13:29:21 localhost.localdomain systemd[1]: nginx.service failed.

SysError
() автор топика
Ответ на: комментарий от SysError

Мар 29 13:29:21 localhost.localdomain nginx[1885]: nginx: configuration file /etc/nginx/nginx.conf test failed
Проверяйте конфиг.

ford1813
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.