Автор Тема: Нет страницы zabbix после установки  (Прочитано 6784 раз)

Оффлайн Cool_Lamer

  • Давно тут
  • **
  • Сообщений: 473
Установил zabbix по этой инструкции
Пытаюсь зайти по http://ip/zabbix вижу
Object not found! Error 404.
zabbix_mysql работает, по логам всё как-бы ровно.
« Последнее редактирование: 16.12.2016 16:59:18 от Cool_Lamer »

Оффлайн Dmytro

  • Мастер
  • ***
  • Сообщений: 1 001
Re: Нет страницы zabbix после установки
« Ответ #1 : 15.12.2016 22:08:18 »
А апач работает?

Оффлайн Cool_Lamer

  • Давно тут
  • **
  • Сообщений: 473
Re: Нет страницы zabbix после установки
« Ответ #2 : 16.12.2016 16:18:05 »
Работает конечно. Если его выключить то страница тогда вообще не грузится.

Оффлайн Cool_Lamer

  • Давно тут
  • **
  • Сообщений: 473
Re: Нет страницы zabbix после установки
« Ответ #3 : 16.12.2016 17:35:03 »
Подозреваю, что где-то нужно ещё апач донастроить, но не пойму где.

Оффлайн Skull

  • Глобальный модератор
  • *****
  • Сообщений: 19 908
    • Домашняя страница
    • Email
Re: Нет страницы zabbix после установки
« Ответ #4 : 16.12.2016 17:46:01 »
Подозреваю, что где-то нужно ещё апач донастроить, но не пойму где.
zabbix-phpfrontend-apache
zabbix-phpfrontend-apache2
Андрей Черепанов (cas@)

Оффлайн Cool_Lamer

  • Давно тут
  • **
  • Сообщений: 473
Re: Нет страницы zabbix после установки
« Ответ #5 : 17.12.2016 12:41:13 »
zabbix-phpfrontend-apache2
Установлено

Оффлайн Cool_Lamer

  • Давно тут
  • **
  • Сообщений: 473
Re: Нет страницы zabbix после установки
« Ответ #6 : 18.12.2016 12:58:21 »
Из-за нестандартныйх root директорий в конфиге апача может быть?

Оффлайн hasculdr

  • Завсегдатай
  • *
  • Сообщений: 672
Re: Нет страницы zabbix после установки
« Ответ #7 : 18.12.2016 18:58:41 »
Тоже не мог запустить, но только GLPI. Проблема была в путях в конфиге апача (подробностей, увы, не помню).

Оффлайн Cool_Lamer

  • Давно тут
  • **
  • Сообщений: 473
Re: Нет страницы zabbix после установки
« Ответ #8 : 26.12.2016 16:45:02 »
Грусть печаль.

Оффлайн hasculdr

  • Завсегдатай
  • *
  • Сообщений: 672
Re: Нет страницы zabbix после установки
« Ответ #9 : 27.12.2016 10:43:38 »
Вобщем при обращении к самому себе я получал от апача "it works!", но при этом на один сайт не работал, писало "object not found!"
Вот мой конфиг апача, там из стандартных настроек изменено полторы-две строчки:
Спойлер
# cat /etc/httpd2/conf/httpd2.conf
#
# This is the main Apache HTTP server configuration file.  It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.4/> for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/2.4/mod/directives.html>
# for a discussion of each configuration directive.
#
# Do NOT simply read the instructions in here without understanding
# what they do.  They're here only as hints or reminders.  If you are unsure
# consult the online docs. You have been warned. 
#
# Configuration and logfile names: If the filenames you specify for many
# of the server's control files begin with "/" (or "drive:/" for Win32), the
# server will use that explicit path.  If the filenames do *not* begin
# with "/", the value of ServerRoot is prepended -- so "logs/access_log"
# with ServerRoot set to "/usr/local/apache2" will be interpreted by the
# server as "/usr/local/apache2/logs/access_log", whereas "/logs/access_log"
# will be interpreted as '/logs/access_log'.

#
# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# Do not add a slash at the end of the directory path.  If you point
# ServerRoot at a non-local disk, be sure to specify a local disk on the
# Mutex directive, if file-based mutexes are used.  If you wish to share the
# same ServerRoot for multiple httpd daemons, you will need to change at
# least PidFile.
#
ServerRoot "/etc/httpd2"

#
# Mutex: Allows you to set the mutex mechanism and mutex file directory
# for individual mutexes, or change the global defaults
#
# Uncomment and change the directory if mutexes are file-based and the default
# mutex file directory is not on a local disk or is not appropriate for some
# other reason.
#
# Mutex default:/var/run/httpd2

#
# Dynamic Shared Object (DSO) Support
#
# To be able to use the functionality of a module which was built as a DSO you
# have to place corresponding `LoadModule' lines at this location so the
# directives contained in it are actually available _before_ they are used.
# Statically compiled modules (those listed by `httpd -l') do not need
# to be loaded here.
#
# Example:
# LoadModule foo_module modules/mod_foo.so
#
# Include module configuration:
Include conf/mods-enabled/*.load
Include conf/mods-enabled/*.conf


# Include ports listing
Include conf/ports-enabled/*.conf

<IfModule unixd_module>
#
# If you wish httpd to run as a different user or group, you must run
# httpd as root initially and it will switch. 
#
# User/Group: The name (or #number) of the user/group to run httpd as.
# It is usually good practice to create a dedicated user and group for
# running httpd, as with most system services.
#
User apache2
Group apache2

</IfModule>

#
# The following lines prevent .htaccess and .htpasswd files from being
# viewed by Web clients.
#
<Files ".ht*">
   Require all denied
#   <IfModule authz_host_module>
#      Order allow,deny
#      Deny from all
#   </IfModule>
#   Satisfy All
</Files>

#
# ErrorLog: The location of the error log file.
# If you do not specify an ErrorLog directive within a <VirtualHost>
# container, error messages relating to that virtual host will be
# logged here.  If you *do* define an error logfile for a <VirtualHost>
# container, that host's errors will be logged there and not here.
#
ErrorLog "/var/log/httpd2/error_log"

#
# LogLevel: Control the number of messages logged to the error_log.
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
#
LogLevel warn

#
# Customizable error responses come in three flavors:
# 1) plain text 2) local redirects 3) external redirects
#
# Some examples:
#ErrorDocument 500 "The server made a boo boo."
#ErrorDocument 404 /missing.html
#ErrorDocument 404 "/cgi-bin/missing_handler.pl"
#ErrorDocument 402 http://www.example.com/subscription_info.html
#

#
# MaxRanges: Maximum number of Ranges in a request before
# returning the entire resource, or one of the special
# values 'default', 'none' or 'unlimited'.
# Default setting is to accept 200 Ranges.
#MaxRanges unlimited

#
# EnableMMAP and EnableSendfile: On systems that support it,
# memory-mapping or the sendfile syscall may be used to deliver
# files.  This usually improves server performance, but must
# be turned off when serving from networked-mounted
# filesystems or if support for these functions is otherwise
# broken on your system.
# Defaults: EnableMMAP On, EnableSendfile Off
#
#EnableMMAP off
#EnableSendfile on

# Supplemental configuration
#
# The configuration files in the conf/extra/ directory can be
# included to add extra features or to modify the default configuration of
# the server, or you may simply copy their contents here and change as
# necessary.

# Server-pool management (MPM specific)
#Include conf/extra/httpd-mpm.conf

# Multi-language error messages
#Include conf/extra/httpd-multilang-errordoc.conf

# Fancy directory listings
#Include conf/extra/httpd-autoindex.conf

# Language settings
#Include conf/extra/httpd-languages.conf

# User home directories
#Include conf/extra/httpd-userdir.conf

# Real-time info on requests and configuration
#Include conf/extra/httpd-info.conf

# Virtual hosts
#Include conf/extra/httpd-vhosts.conf

# Local access to the Apache HTTP Server Manual
#Include conf/extra/httpd-manual.conf

# Distributed authoring and versioning (WebDAV)
#Include conf/extra/httpd-dav.conf

# Various default settings
Include conf/extra-enabled/*.conf

# Configure mod_proxy_html to understand HTML4/XHTML1
#<IfModule proxy_html_module>
#Include conf/extra/proxy-html.conf
#</IfModule>

# Include the virtual host configurations:
Include conf/sites-enabled/*.conf

ServerName   glpi
Alias /glpi "/var/www/webapps/glpi"
    <Directory /var/www/webapps/glpi>
    AllowOverride   Options   FileInfo
    </Directory>

Сравните конец файла с вашим.

Оффлайн Cool_Lamer

  • Давно тут
  • **
  • Сообщений: 473
Re: Нет страницы zabbix после установки
« Ответ #10 : 18.01.2017 15:21:55 »
Вобщем при обращении к самому себе я получал от апача "it works!", но при этом на один сайт не работал, писало "object not found!"
Вот мой конфиг апача, там из стандартных настроек изменено полторы-две строчки:
..
Сравните конец файла с вашим.
Так у меня то веб-сервер работает и сайты на нём работают, только вот забикс нивкакую.

Оффлайн SergeyL

  • Начинающий
  • *
  • Сообщений: 2
    • Email
Re: Нет страницы zabbix после установки
« Ответ #11 : 22.01.2017 14:54:10 »
Проблема в изменении настроек апача.
Zabbix подключается через /etc/httpd2/conf/addon.d/A.zabbix.conf, но после апгрейда этот файл не попадает в настройки апача, т.к. в файле /etc/httpd2/conf/extra-start.d/010-httpd-addon.d.conf опция httpd-addon.d=no.

Нужно изменить на "yes" и выполнить команды:

/usr/sbin/a2chkconfig
service httpd2 condreload

В итоге файл ссылки на настройки выше будет скопирован из extra-available в extra-enabled.
Frontend Zabbix начнет отвечать.

Оффлайн SergeyL

  • Начинающий
  • *
  • Сообщений: 2
    • Email
Re: Нет страницы zabbix после установки
« Ответ #12 : 22.01.2017 15:03:32 »
Если не работает https:

a2enmod ssl
service httpd2 condreload

Eще потребуется (увидите ошибки сразу после открытия страницы) доставить один пакет "php5-xmlreader" и настроить заново php.ini (timezone) в новой версии 5.6.