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

Операционки на базе Unix
blackdog
Злой чайник
Злой чайник
Сообщения: 111
Зарегистрирован: 07 мар 2014, 18:23
ОС: MSDOS

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

Сообщение blackdog » 22 сен 2014, 09:59

Делал все вот по этому ману
http://en.opensuse.org/Cacti
Однако в браузере 403 ошибка и Access Forbidden,
с ругачкой на права либо отсутствие index.
Направьте на путь истинный(желательно с подробными объяснениями :-[ )
Какие логи выложить?
В качестве веб-сервака-апач2
Аватара пользователя
Infernal Flame
Злой Модер
Сообщения: 1796
Зарегистрирован: 03 мар 2010, 11:25
ОС: Centos 7
Контактная информация:

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

Сообщение Infernal Flame » 22 сен 2014, 11:42

blackdog
конф веб-сервака (в первую очередь алиаса когтей)
плюс ls -l директории куда ссылается алиас
Изображение
Изображение
Work: Centos 7 х 'all Servers'
blackdog
Злой чайник
Злой чайник
Сообщения: 111
Зарегистрирован: 07 мар 2014, 18:23
ОС: MSDOS

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

Сообщение blackdog » 22 сен 2014, 15:19

Infernal Flame писал(а):blackdog
конф веб-сервака (в первую очередь алиаса когтей)
плюс ls -l директории куда ссылается алиас

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

ls -l  директории куда ссылается алиас
Вот тут можно подробнее пожалста-я записываю)))

Вот file:///etc/apache2/default-server.conf
[apache]#
# Global configuration that will be applicable for all virtual hosts, unless
# deleted here, or overriden elswhere.
#

#DocumentRoot "/srv/www/htdocs"

#
# Configure the DocumentRoot
#
<Directory "/srv/www/cacti">
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs-2.2/mod/core.html#options
# for more information.
Options None
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
AllowOverride None
# Controls who can get stuff from this server.
Order allow,deny
Allow from all
</Directory>

# Aliases: aliases can be added as needed (with no limit). The format is
# Alias fakename realname
#
# Note that if you include a trailing / on fakename then the server will
# require it to be present in the URL. So "/icons" isn't aliased in this
# example, only "/icons/". If the fakename is slash-terminated, then the
# realname must also be slash terminated, and if the fakename omits the
# trailing slash, the realname must also omit it.
#
# We include the /icons/ alias for FancyIndexed directory listings. If you
# do not use FancyIndexing, you may comment this out.
#
Alias /icons/ "/usr/share/apache2/icons/"

<Directory "/usr/share/apache2/icons">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>

# ScriptAlias: This controls which directories contain server scripts.
# ScriptAliases are essentially the same as Aliases, except that
# documents in the realname directory are treated as applications and
# run by the server when requested rather than as documents sent to the client.
# The same rules about trailing "/" apply to ScriptAlias directives as to
# Alias.
#
ScriptAlias /cgi-bin/ "/srv/www/cgi-bin/"

# "/srv/www/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "/srv/www/cgi-bin">
AllowOverride None
Options +ExecCGI -Includes
Order allow,deny
Allow from all
</Directory>

# UserDir: The name of the directory that is appended onto a user's home
# directory if a ~user request is received.
#
# To disable it, simply remove userdir from the list of modules in APACHE_MODULES
# in /etc/sysconfig/apache2.
#
<IfModule mod_userdir.c>
# Note that the name of the user directory ("public_html") cannot simply be
# changed here, since it is a compile time setting. The apache package
# would have to be rebuilt. You could work around by deleting
# /usr/sbin/suexec, but then all scripts from the directories would be
# executed with the UID of the webserver.
UserDir public_html
# The actual configuration of the directory is in
# /etc/apache2/mod_userdir.conf.
Include /etc/apache2/mod_userdir.conf
</IfModule>


# Include all *.conf files from /etc/apache2/conf.d/.
#
# This is mostly meant as a place for other RPM packages to drop in their
# configuration snippet.
#
# You can comment this out here if you want those bits include only in a
# certain virtual host, but not here.
#
IncludeOptional /etc/apache2/conf.d/*.conf

# The manual... if it is installed ('?' means it won't complain)
IncludeOptional /etc/apache2/conf.d/apache2-manual?conf
[/apache]
Вот file:///var/log/apache2/error_log

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

AH00558: httpd2-prefork: 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
[Fri Sep 19 15:12:49.779077 2014] [ssl:warn] [pid 12645] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Fri Sep 19 15:12:49.782231 2014] [mpm_prefork:notice] [pid 12645] AH00163: Apache/2.4.6 (Linux/SUSE) OpenSSL/1.0.1i configured -- resuming normal operations
[Fri Sep 19 15:12:49.782522 2014] [core:notice] [pid 12645] AH00094: Command line: '/usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -D SYSTEMD -D FOREGROUND'
[Fri Sep 19 15:14:58.498989 2014] [access_compat:error] [pid 12763] [client ::1:46197] AH01797: client denied by server configuration: /srv/www/htdocs
[Fri Sep 19 15:14:58.611977 2014] [access_compat:error] [pid 12763] [client ::1:46197] AH01797: client denied by server configuration: /srv/www/htdocs
[Fri Sep 19 15:15:02.954331 2014] [access_compat:error] [pid 12763] [client ::1:46197] AH01797: client denied by server configuration: /srv/www/htdocs
[Fri Sep 19 15:15:03.040089 2014] [access_compat:error] [pid 12763] [client ::1:46197] AH01797: client denied by server configuration: /srv/www/htdocs
[Fri Sep 19 15:15:04.411234 2014] [access_compat:error] [pid 12763] [client ::1:46197] AH01797: client denied by server configuration: /srv/www/htdocs
[Fri Sep 19 15:15:04.545769 2014] [access_compat:error] [pid 12763] [client ::1:46197] AH01797: client denied by server configuration: /srv/www/htdocs
[Fri Sep 19 15:15:05.293289 2014] [access_compat:error] [pid 12763] [client ::1:46197] AH01797: client denied by server configuration: /srv/www/htdocs
[Fri Sep 19 15:15:05.367076 2014] [access_compat:error] [pid 12763] [client ::1:46197] AH01797: client denied by server configuration: /srv/www/htdocs
[Fri Sep 19 15:15:06.022756 2014] [access_compat:error] [pid 12763] [client ::1:46197] AH01797: client denied by server configuration: /srv/www/htdocs
[Fri Sep 19 15:15:06.101337 2014] [access_compat:error] [pid 12763] [client ::1:46197] AH01797: client denied by server configuration: /srv/www/htdocs
[Fri Sep 19 16:34:08.403011 2014] [access_compat:error] [pid 12765] [client ::1:47453] AH01797: client denied by server configuration: /srv/www/htdocs
[Fri Sep 19 16:34:08.846750 2014] [access_compat:error] [pid 12765] [client ::1:47453] AH01797: client denied by server configuration: /srv/www/htdocs
[Fri Sep 19 16:37:30.631649 2014] [access_compat:error] [pid 12759] [client ::1:47524] AH01797: client denied by server configuration: /srv/www/htdocs
[Fri Sep 19 16:37:30.760427 2014] [access_compat:error] [pid 12759] [client ::1:47524] AH01797: client denied by server configuration: /srv/www/htdocs
[Fri Sep 19 16:55:42.483582 2014] [mpm_prefork:notice] [pid 12645] AH00170: caught SIGWINCH, shutting down gracefully
AH00558: httpd2-prefork: 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
[Mon Sep 22 08:07:34.598753 2014] [ssl:warn] [pid 2746] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Mon Sep 22 08:07:34.600117 2014] [mpm_prefork:notice] [pid 2746] AH00163: Apache/2.4.6 (Linux/SUSE) OpenSSL/1.0.1i configured -- resuming normal operations
[Mon Sep 22 08:07:34.600199 2014] [core:notice] [pid 2746] AH00094: Command line: '/usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -D SYSTEMD -D FOREGROUND'
[Mon Sep 22 08:19:02.445803 2014] [access_compat:error] [pid 2946] [client ::1:45706] AH01797: client denied by server configuration: /srv/www/htdocs
[Mon Sep 22 08:19:03.017926 2014] [access_compat:error] [pid 2946] [client ::1:45706] AH01797: client denied by server configuration: /srv/www/htdocs
[Mon Sep 22 08:19:07.048320 2014] [access_compat:error] [pid 2946] [client ::1:45706] AH01797: client denied by server configuration: /srv/www/htdocs, referer: http://localhost/
[Mon Sep 22 08:19:07.206918 2014] [access_compat:error] [pid 2946] [client ::1:45706] AH01797: client denied by server configuration: /srv/www/htdocs
[Mon Sep 22 09:06:28.420575 2014] [access_compat:error] [pid 2950] [client ::1:46483] AH01797: client denied by server configuration: /srv/www/htdocs, referer: http://localhost/
[Mon Sep 22 10:41:24.663049 2014] [mpm_prefork:notice] [pid 2746] AH00170: caught SIGWINCH, shutting down gracefully
[Mon Sep 22 10:41:25.671920 2014] [core:notice] [pid 2746] AH00052: child pid 2946 exit signal Segmentation fault (11)
[Mon Sep 22 10:41:25.672009 2014] [core:notice] [pid 2746] AH00052: child pid 2947 exit signal Segmentation fault (11)
[Mon Sep 22 10:41:25.672050 2014] [core:notice] [pid 2746] AH00052: child pid 2950 exit signal Segmentation fault (11)
[Mon Sep 22 10:41:25.672077 2014] [core:notice] [pid 2746] AH00052: child pid 7206 exit signal Segmentation fault (11)
AH00558: httpd2-prefork: 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
[Mon Sep 22 10:42:32.873380 2014] [ssl:warn] [pid 2748] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Mon Sep 22 10:42:32.884967 2014] [mpm_prefork:notice] [pid 2748] AH00163: Apache/2.4.6 (Linux/SUSE) OpenSSL/1.0.1i configured -- resuming normal operations
[Mon Sep 22 10:42:32.885043 2014] [core:notice] [pid 2748] AH00094: Command line: '/usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -D SYSTEMD -D FOREGROUND'
[Mon Sep 22 11:32:39.711660 2014] [mpm_prefork:notice] [pid 2748] AH00170: caught SIGWINCH, shutting down gracefully
AH00558: httpd2-prefork: 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
[Mon Sep 22 11:33:54.310802 2014] [ssl:warn] [pid 2832] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Mon Sep 22 11:33:54.320364 2014] [mpm_prefork:notice] [pid 2832] AH00163: Apache/2.4.6 (Linux/SUSE) OpenSSL/1.0.1i configured -- resuming normal operations
[Mon Sep 22 11:33:54.320433 2014] [core:notice] [pid 2832] AH00094: Command line: '/usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -D SYSTEMD -D FOREGROUND'
[Mon Sep 22 11:36:16.652765 2014] [mpm_prefork:notice] [pid 2832] AH00170: caught SIGWINCH, shutting down gracefully
AH00558: httpd2-prefork: 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
[Mon Sep 22 12:48:50.437165 2014] [ssl:warn] [pid 2771] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Mon Sep 22 12:48:50.439236 2014] [mpm_prefork:notice] [pid 2771] AH00163: Apache/2.4.6 (Linux/SUSE) OpenSSL/1.0.1i configured -- resuming normal operations
[Mon Sep 22 12:48:50.439317 2014] [core:notice] [pid 2771] AH00094: Command line: '/usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -D SYSTEMD -D FOREGROUND'
[Mon Sep 22 13:01:33.237376 2014] [mpm_prefork:notice] [pid 2771] AH00170: caught SIGWINCH, shutting down gracefully
AH00558: httpd2-prefork: 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
[Mon Sep 22 14:21:48.019142 2014] [ssl:warn] [pid 2726] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Mon Sep 22 14:21:48.020489 2014] [mpm_prefork:notice] [pid 2726] AH00163: Apache/2.4.6 (Linux/SUSE) OpenSSL/1.0.1i configured -- resuming normal operations
[Mon Sep 22 14:21:48.020575 2014] [core:notice] [pid 2726] AH00094: Command line: '/usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -D SYSTEMD -D FOREGROUND'
[Mon Sep 22 15:08:15.724274 2014] [access_compat:error] [pid 2917] [client ::1:39726] AH01797: client denied by server configuration: /srv/www/htdocs
[Mon Sep 22 15:08:15.997570 2014] [access_compat:error] [pid 2917] [client ::1:39726] AH01797: client denied by server configuration: /srv/www/htdocs
Само собой смущает вот это

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

Mon Sep 22 15:08:15.997570 2014] [access_compat:error] [pid 2917] [client ::1:39726] AH01797: client denied by server configuration: /srv/www/htdocs
но опосля траблов с мускулом как то страшно с наскоку шатать систему.
Аватара пользователя
Raven
Бородатый сис
Бородатый сис
Сообщения: 2800
Зарегистрирован: 03 мар 2010, 15:12
ОС: RHEL 8
Откуда: Из серверной

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

Сообщение Raven » 22 сен 2014, 16:46

ls -la /srv/www/cacti/
ls -la /srv/www/htdocs

также интересует содержимое cacti.conf
Я не злопамятный, я просто часто ковыряю логи
blackdog
Злой чайник
Злой чайник
Сообщения: 111
Зарегистрирован: 07 мар 2014, 18:23
ОС: MSDOS

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

Сообщение blackdog » 23 сен 2014, 08:25

Raven писал(а):ls -la /srv/www/cacti/
ls -la /srv/www/htdocs

также интересует содержимое cacti.conf
ls -la /srv/www/cacti/

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

drwxr-xr-x 10 wwwrun www    4096 сен 19 14:24 .
drwxr-xr-x  3 root   root   4096 сен 19 14:24 ..
-rw-r--r--  1 wwwrun www    5945 апр 17 16:34 about.php
-rw-r--r--  1 wwwrun www    5348 апр 17 16:34 auth_changepassword.php
-rw-r--r--  1 wwwrun www   14288 апр 17 16:34 auth_login.php
-rw-r--r--  1 wwwrun www  178349 апр 17 16:34 cacti.sql
-rw-r--r--  1 wwwrun www   21676 апр 17 16:34 cdef.php
drwxr-xr-x  2 wwwrun www    4096 сен 19 14:24 cli
-rw-r--r--  1 wwwrun www   26620 апр 17 16:34 cmd.php
-rw-r--r--  1 wwwrun www    6974 апр 17 16:34 color.php
-rw-r--r--  1 wwwrun www   25068 апр 17 16:34 data_input.php
-rw-r--r--  1 wwwrun www   35505 апр 17 16:34 data_queries.php
-rw-r--r--  1 wwwrun www   60117 апр 17 16:34 data_sources.php
-rw-r--r--  1 wwwrun www   32920 апр 17 16:34 data_templates.php
-rw-r--r--  1 wwwrun www    6107 апр 17 16:34 gprint_presets.php
-rw-r--r--  1 wwwrun www    3657 апр 17 16:34 graph_image.php
-rw-r--r--  1 wwwrun www   13469 апр 17 16:34 graph.php
-rw-r--r--  1 wwwrun www    9208 апр 17 16:34 graph_settings.php
-rw-r--r--  1 wwwrun www   17426 апр 17 16:34 graphs_items.php
-rw-r--r--  1 wwwrun www   40166 апр 17 16:34 graphs_new.php
-rw-r--r--  1 wwwrun www   60571 апр 17 16:34 graphs.php
-rw-r--r--  1 wwwrun www   10006 апр 17 16:34 graph_templates_inputs.php
-rw-r--r--  1 wwwrun www   18542 апр 17 16:34 graph_templates_items.php
-rw-r--r--  1 wwwrun www   26703 апр 17 16:34 graph_templates.php
-rw-r--r--  1 wwwrun www   40313 апр 17 16:34 graph_view.php
-rw-r--r--  1 wwwrun www    6480 апр 17 16:34 graph_xport.php
-rw-r--r--  1 wwwrun www   60226 апр 17 16:34 host.php
-rw-r--r--  1 wwwrun www   20031 апр 17 16:34 host_templates.php
drwxr-xr-x  2 wwwrun www    4096 сен 19 14:24 images
drwxr-xr-x  4 wwwrun www    4096 сен 19 14:24 include
-rw-r--r--  1 wwwrun www    2313 апр 17 16:34 index.php
drwxr-xr-x  2 wwwrun www    4096 сен 19 14:24 install
drwxr-xr-x  3 wwwrun www    4096 сен 19 14:24 lib
-rw-r--r--  1 wwwrun www    2838 апр 17 16:34 logout.php
-rw-r--r--  1 wwwrun www   27362 апр 17 16:34 plugins.php
-rw-r--r--  1 wwwrun www    4310 апр 17 16:34 poller_commands.php
-rw-r--r--  1 wwwrun www    2243 апр 17 16:34 poller_export.php
-rw-r--r--  1 wwwrun www   18056 апр 17 16:34 poller.php
drwxr-xr-x  5 wwwrun www    4096 сен 19 14:24 resource
drwxr-xr-x  2 wwwrun www    4096 сен 19 14:24 rra
-rw-r--r--  1 wwwrun www    7394 апр 17 16:34 rra.php
drwxr-xr-x  2 wwwrun www    4096 сен 19 14:24 scripts
-rw-r--r--  1 wwwrun www   10820 апр 17 16:34 script_server.php
-rw-r--r--  1 wwwrun www    5761 апр 17 16:34 settings.php
-rw-r--r--  1 wwwrun www    6345 апр 17 16:34 templates_export.php
-rw-r--r--  1 wwwrun www    5835 апр 17 16:34 templates_import.php
-rw-r--r--  1 wwwrun www   19529 апр 17 16:34 tree.php
-rw-r--r--  1 wwwrun www   44997 апр 17 16:34 user_admin.php
-rw-r--r--  1 wwwrun www   65647 апр 17 16:34 utilities.php
ls -la /srv/www/htdocs
отсутствует вообще почему-то

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

ls -la /srv/www/htdocs
ls: невозможно получить доступ к /srv/www/htdocs: Нет такого файла или каталога
cacti.conf
[apache]# Example configuration for a cacti repository
#
# As default server
# put the string CACTI in /etc/sysconfig/apache2 APACHE_SERVER_FLAGS
# to enable the URL
# http://localhost/cacti
#
# As vhost
# If you want to use cacti in one vhost add
# Include /etc/apache2/vhosts.d/conf.d/cacti.conf
# to the vhost in the vhost.conf file
# put the string CACTIVHOST in /etc/sysconfig/apache2 APACHE_SERVER_FLAGS
# to enable the URL
# http://vhost/cacti
<IfDefine CACTIVHOST>

Alias /cacti/ /srv/www/cacti/
<Directory /srv/www/cacti/>
Options None
order deny,allow
deny from all
allow from localhost
</Directory>

# For SSL-servers
# Alias /cacti/ /srv/www/nagat/
# <Directory /srv/www/cacti/>
# Options None
# SSLRequireSSL
# order deny,allow
# deny from all
# AuthType Basic
# AuthUserFile /site/cfg/passwd
# AuthGroupFile /site/cfg/group
# AuthName "cacti"
# require group cacti
# Satisfy Any
# </Directory>

</IfDefine>
[/apache]34 templates_export
Аватара пользователя
Raven
Бородатый сис
Бородатый сис
Сообщения: 2800
Зарегистрирован: 03 мар 2010, 15:12
ОС: RHEL 8
Откуда: Из серверной

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

Сообщение Raven » 23 сен 2014, 09:52

То есть, ты получается немного отступил от мануала и подправил конфиг основного вирта... Это не есть правильно! Раскомментируй DocumentRoot и верни путь в <Directory> на место. У тебя есть конфиг для cacti (cacti.conf), нужноего только немного исправить:

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

Order allow,deny
Allow from All
и в /etc/sysconfig/apache2

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

APACHE_SERVER_FLAGS="CACTIVHOST"
перезапусти индейца и должно стать хорошо по адресу localhost/cacti
Я не злопамятный, я просто часто ковыряю логи
blackdog
Злой чайник
Злой чайник
Сообщения: 111
Зарегистрирован: 07 мар 2014, 18:23
ОС: MSDOS

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

Сообщение blackdog » 23 сен 2014, 10:30

Raven писал(а):То есть, ты получается немного отступил от мануала и подправил конфиг основного вирта... Это не есть правильно! Раскомментируй DocumentRoot и верни путь в <Directory> на место. У тебя есть конфиг для cacti (cacti.conf), нужноего только немного исправить:

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

Order allow,deny
Allow from All
и в /etc/sysconfig/apache2

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

APACHE_SERVER_FLAGS="CACTIVHOST"
перезапусти индейца и должно стать хорошо по адресу localhost/cacti
Раскомментировал DocumentRoot и поимел
Да и не правил я вроде как этот файл

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

linux:~ # service apache2 status
apache2.service - The Apache Webserver
   Loaded: loaded (/usr/lib/systemd/system/apache2.service; enabled)
   Active: failed (Result: exit-code) since Tue 2014-09-23 10:28:28 KGT; 11s ago
  Process: 18346 ExecStop=/usr/sbin/start_apache2 -D SYSTEMD -DFOREGROUND -k graceful-stop (code=exited, status=1/FAILURE)
  Process: 18328 ExecStart=/usr/sbin/start_apache2 -D SYSTEMD -DFOREGROUND -k start (code=exited, status=1/FAILURE)
 Main PID: 18328 (code=exited, status=1/FAILURE)
   Status: "Total requests: 0; Current requests/sec: 0; Current traffic:   0 B/sec"

Sep 23 10:28:27 linux start_apache2[18328]: AH00526: Syntax error on line 6 of /etc/apach...nf:
Sep 23 10:28:27 linux start_apache2[18328]: DocumentRoot must be a directory
Sep 23 10:28:28 linux systemd[1]: apache2.service: main process exited, code=exited, sta...LURE
Sep 23 10:28:28 linux start_apache2[18346]: AH00526: Syntax error on line 6 of /etc/apach...nf:
Sep 23 10:28:28 linux start_apache2[18346]: DocumentRoot must be a directory
Sep 23 10:28:28 linux systemd[1]: apache2.service: control process exited, code=exited status=1
Sep 23 10:28:28 linux systemd[1]: Failed to start The Apache Webserver.
Sep 23 10:28:28 linux systemd[1]: Unit apache2.service entered failed state.
Hint: Some lines were ellipsized, use -l to show in full.
linux:~ # 
в /etc/sysconfig/apache2

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

APACHE_SERVER_FLAGS="CACTIVHOST"
уже добавлял-результата не давало никакого
Аватара пользователя
Raven
Бородатый сис
Бородатый сис
Сообщения: 2800
Зарегистрирован: 03 мар 2010, 15:12
ОС: RHEL 8
Откуда: Из серверной

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

Сообщение Raven » 23 сен 2014, 10:51

blackdog писал(а): DocumentRoot must be a directory
сопоставь с
blackdog писал(а):ls -la /srv/www/htdocsls: невозможно получить доступ к /srv/www/htdocs: Нет такого файла или каталога
)))
У тебя этой папки нету.
Я не злопамятный, я просто часто ковыряю логи
blackdog
Злой чайник
Злой чайник
Сообщения: 111
Зарегистрирован: 07 мар 2014, 18:23
ОС: MSDOS

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

Сообщение blackdog » 23 сен 2014, 11:04

Raven писал(а):
blackdog писал(а): DocumentRoot must be a directory
сопоставь с
blackdog писал(а):ls -la /srv/www/htdocsls: невозможно получить доступ к /srv/www/htdocs: Нет такого файла или каталога
)))
У тебя этой папки нету.
Это то понятно,что ее нету,но в мане про нее нет ничего,соответственно ХЗ
чего там должно быть.И на второй системе своей я вчера тож глянул-ее и там нету.
Что должно быть вообще в этой папке?Или просто сама папка нужна для записи чего то
в нее?
Ребят,вы делайте скидку что я нуб))Я то видеть вижу,но чо делать с тем что вижу-
не понимаю...Поэтому,если можно то подробнее(насколько позволяет ваше время)
расписывайте в чем косяки.Я пока еще не умею думать в нужном направлении в лине,
поэтому как слепой щенок тыкаюсь во все подряд...
А почему в мане нет ниче про эти папки?По логике получается что апач
после установки сам должен их создать?
blackdog
Злой чайник
Злой чайник
Сообщения: 111
Зарегистрирован: 07 мар 2014, 18:23
ОС: MSDOS

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

Сообщение blackdog » 23 сен 2014, 11:14

/srv/www/htdocs создал папку,выполнил следующее

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

linux:~ # chown -R wwwrun:www /srv/www/htdocs
linux:~ # ls -la /srv/www/htdocs
итого 8
drwxr-xr-x 2 wwwrun www  4096 сен 23 11:09 .
drwxr-xr-x 4 root   root 4096 сен 23 11:09 ..
linux:~ # service apache2 restart
linux:~ # service apache2 status
apache2.service - The Apache Webserver
   Loaded: loaded (/usr/lib/systemd/system/apache2.service; enabled)
   Active: active (running) since Tue 2014-09-23 11:13:24 KGT; 3s ago
  Process: 23050 ExecStop=/usr/sbin/start_apache2 -D SYSTEMD -DFOREGROUND -k graceful-stop (code=exited, status=0/SUCCESS)
 Main PID: 23071 (httpd2-prefork)
   Status: "Processing requests..."
   CGroup: /system.slice/apache2.service
           |-23071 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -D SYSTEMD -DFOREGROUND -...
           |-23090 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -D SYSTEMD -DFOREGROUND -...
           |-23091 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -D SYSTEMD -DFOREGROUND -...
           |-23092 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -D SYSTEMD -DFOREGROUND -...
           |-23093 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -D SYSTEMD -DFOREGROUND -...
           `-23094 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -D SYSTEMD -DFOREGROUND -...

Sep 23 11:13:24 linux start_apache2[23071]: AH00558: httpd2-prefork: Could not reliably deter...age
Sep 23 11:13:24 linux systemd[1]: Started The Apache Webserver.
Hint: Some lines were ellipsized, use -l to show in full.
linux:~ # 

однако в браузере все равно 403 ошибка
Ответить

Вернуться в «Unix»