Страница 2 из 5

Re: Cacti.И снова я ...

Добавлено: 23 сен 2014, 11:35
blackdog
Вроде чуть прошарил
это часть содержимого file:///var/log/apache2/error_log

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

1:13:24.836930 2014] [ssl:warn] [pid 23071] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Tue Sep 23 11:13:24.840657 2014] [mpm_prefork:notice] [pid 23071] AH00163: Apache/2.4.6 (Linux/SUSE) OpenSSL/1.0.1i configured -- resuming normal operations
[Tue Sep 23 11:13:24.840727 2014] [core:notice] [pid 23071] AH00094: Command line: '/usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -D SYSTEMD -D FOREGROUND'
[Tue Sep 23 11:13:49.584196 2014] [access_compat:error] [pid 23093] [client 127.0.0.1:42419] AH01797: client denied by server configuration: /srv/www/htdocs/cacti
[Tue Sep 23 11:13:49.673826 2014] [access_compat:error] [pid 23093] [client 127.0.0.1:42419] AH01797: client denied by server configuration: /srv/www/htdocs/favicon.ico
Вот последнее из file:///var/log/apache2/cacti-access_log

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

::1 - - [19/Sep/2014:13:49:03 +0600] "GET / HTTP/1.1" 403 994 "-" "Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Firefox/31.0"
::1 - - [19/Sep/2014:13:49:04 +0600] "GET /favicon.ico HTTP/1.1" 403 980 "-" "Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Firefox/31.0"
::1 - - [19/Sep/2014:13:51:12 +0600] "GET / HTTP/1.1" 403 994 "-" "Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Firefox/31.0"
::1 - - [19/Sep/2014:13:51:13 +0600] "GET /favicon.ico HTTP/1.1" 403 980 "-" "Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Firefox/31.0"
::1 - - [19/Sep/2014:13:51:14 +0600] "GET / HTTP/1.1" 403 994 "-" "Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Firefox/31.0"
::1 - - [19/Sep/2014:13:51:14 +0600] "GET /favicon.ico HTTP/1.1" 403 980 "-" "Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Firefox/31.0"
::1 - - [19/Sep/2014:13:51:16 +0600] "GET / HTTP/1.1" 403 994 "-" "Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Firefox/31.0"
::1 - - [19/Sep/2014:13:51:16 +0600] "GET /favicon.ico HTTP/1.1" 403 980 "-" "Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Firefox/31.0"
::1 - - [19/Sep/2014:13:51:17 +0600] "GET / HTTP/1.1" 403 994 "-" "Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Firefox/31.0"
::1 - - [19/Sep/2014:13:51:17 +0600] "GET /favicon.ico HTTP/1.1" 403 980 "-" "Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Firefox/31.0"
::1 - - [19/Sep/2014:13:53:25 +0600] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.4.6 (Linux/SUSE) (internal dummy connection)"
::1 - - [19/Sep/2014:13:53:25 +0600] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.4.6 (Linux/SUSE) (internal dummy connection)"
::1 - - [19/Sep/2014:13:53:25 +0600] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.4.6 (Linux/SUSE) (internal dummy connection)"
::1 - - [19/Sep/2014:13:53:25 +0600] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.4.6 (Linux/SUSE) (internal dummy connection)"
::1 - - [19/Sep/2014:13:53:25 +0600] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.4.6 (Linux/SUSE) (internal dummy connection)"
::1 - - [19/Sep/2014:13:53:25 +0600] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.4.6 (Linux/SUSE) (internal dummy connection)"
Куда дальше курить?
где взять favicon.iso и какой файл должен быть в /srv/www/htdocs/cacti?

Re: Cacti.И снова я ...

Добавлено: 23 сен 2014, 13:18
Raven
Забудь про favicon - это тебе сейчас не нужно.

Покажи-ка вывод команд:

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

apache2ctl -М
apache2ctl -M

Re: Cacti.И снова я ...

Добавлено: 23 сен 2014, 13:32
blackdog
Raven писал(а):Забудь про favicon - это тебе сейчас не нужно.

Покажи-ка вывод команд:

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

apache2ctl -М
apache2ctl -M
Вот

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

linux:~ # apache2ctl -М
Usage: /usr/sbin/httpd2 [-D name] [-d directory] [-f file]
                        [-C "directive"] [-c "directive"]
                        [-k start|restart|graceful|graceful-stop|stop]
                        [-v] [-V] [-h] [-l] [-L] [-t] [-T] [-S] [-X]
Options:
  -D name            : define a name for use in <IfDefine name> directives
  -d directory       : specify an alternate initial ServerRoot
  -f file            : specify an alternate ServerConfigFile
  -C "directive"     : process directive before reading config files
  -c "directive"     : process directive after reading config files
  -e level           : show startup errors of level (see LogLevel)
  -E file            : log startup errors to file
  -v                 : show version number
  -V                 : show compile settings
  -h                 : list available command line options (this page)
  -l                 : list compiled in modules
  -L                 : list available configuration directives
  -t -D DUMP_VHOSTS  : show parsed vhost settings
  -t -D DUMP_RUN_CFG : show parsed run settings
  -S                 : a synonym for -t -D DUMP_VHOSTS -D DUMP_RUN_CFG
  -t -D DUMP_MODULES : show all loaded modules 
  -M                 : a synonym for -t -D DUMP_MODULES
  -t                 : run syntax check for config files
  -T                 : start without DocumentRoot(s) check
  -X                 : debug mode (only one worker, do not detach)
linux:~ # 

Re: Cacti.И снова я ...

Добавлено: 23 сен 2014, 13:39
Raven
О, вон даже как! Ну йа косячник! Там буква на кириллице попалась.
apache2ctl -M и apache2ctl -V

Re: Cacti.И снова я ...

Добавлено: 23 сен 2014, 13:52
blackdog
Raven писал(а):О, вон даже как! Ну йа косячник! Там буква на кириллице попалась.
apache2ctl -M и apache2ctl -V
Вот

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

linux:~ # apache2ctl -V
Server version: Apache/2.4.6 (Linux/SUSE)
Server built:   2014-08-01 11:56:17.000000000 +0000
Server's Module Magic Number: 20120211:23
Server loaded:  APR 1.4.8, APR-UTIL 1.5.2
Compiled using: APR 1.4.8, APR-UTIL 1.5.2
Architecture:   32-bit
Server MPM:     prefork
  threaded:     no
    forked:     yes (variable process count)
Server compiled with....
 -D APR_HAS_SENDFILE
 -D APR_HAS_MMAP
 -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
 -D APR_USE_PROC_PTHREAD_SERIALIZE
 -D APR_USE_PTHREAD_SERIALIZE
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D DYNAMIC_MODULE_LIMIT=256
 -D HTTPD_ROOT="/srv/www"
 -D SUEXEC_BIN="/usr/sbin/suexec2"
 -D DEFAULT_PIDLOG="/run/httpd.pid"
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 -D DEFAULT_ERRORLOG="/var/log/apache2/error_log"
 -D AP_TYPES_CONFIG_FILE="/etc/apache2/mime.types"
 -D SERVER_CONFIG_FILE="/etc/apache2/httpd.conf"
linux:~ # 

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

apache2ctl -M
AH00558: httpd2: Could not reliably determine the server's fully qualified domain name, using 192.168.100.45. Set the 'ServerName' directive globally to suppress this message
Loaded Modules:
 core_module (static)
 access_compat_module (static)
 so_module (static)
 http_module (static)
 mpm_prefork_module (static)
 unixd_module (static)
 systemd_module (static)
 actions_module (shared)
 alias_module (shared)
 auth_basic_module (shared)
 authn_file_module (shared)
 authz_host_module (shared)
 authz_groupfile_module (shared)
 authz_user_module (shared)
 autoindex_module (shared)
 cgi_module (shared)
 dir_module (shared)
 env_module (shared)
 expires_module (shared)
 include_module (shared)
 log_config_module (shared)
 mime_module (shared)
 negotiation_module (shared)
 setenvif_module (shared)
 ssl_module (shared)
 userdir_module (shared)
 reqtimeout_module (shared)
 authn_core_module (shared)
 authz_core_module (shared)
linux:~ # 

Re: Cacti.И снова я ...

Добавлено: 23 сен 2014, 15:20
Raven
Вот значит как. Попробуй заменить в конфиге

[apache]
Order allow,deny
Allow from All
[/apache]

на
[apache]
Require all granted
[/apache]

Re: Cacti.И снова я ...

Добавлено: 23 сен 2014, 15:43
blackdog
Raven писал(а):Вот значит как. Попробуй заменить в конфиге

[apache]
Order allow,deny
Allow from All
[/apache]

на
[apache]
Require all granted
[/apache]
поменял указанную строку в 2-х конфигурационных файлах
file:///etc/apache2/default-server.conf
и
file:///etc/apache2/default-vhost.conf
а в браузере все равно 403.
Апача рестартил после того как поменял строчку

Re: Cacti.И снова я ...

Добавлено: 23 сен 2014, 15:50
Raven
и в cacti.conf
[apache]
order deny,allow
deny from all
allow from localhost
[/apache]

тоже на нее замени

Re: Cacti.И снова я ...

Добавлено: 23 сен 2014, 15:55
blackdog
Raven
Заменил,так же 403 в браузере.
Я ток не пойму почему у меня cacti.conf
находится в file:///etc/apache2/vhosts.d/conf.d/ ?
Оно так и должно быть?

Re: Cacti.И снова я ...

Добавлено: 23 сен 2014, 16:28
blackdog
403 победил,теперь 404,object not found.
403 была из за этого

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

SERVER_CONFIG_FILE="/etc/apache2/httpd.conf"
а вот в этом файле как раз и было

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

deny from all
....
Теперь надо кактуса найти