http://en.opensuse.org/Cacti
Однако в браузере 403 ошибка и Access Forbidden,
с ругачкой на права либо отсутствие index.
Направьте на путь истинный(желательно с подробными объяснениями )
Какие логи выложить?
В качестве веб-сервака-апач2
Infernal Flame писал(а):blackdog
конф веб-сервака (в первую очередь алиаса когтей)
плюс ls -l директории куда ссылается алиас
Код: Выделить всё
ls -l директории куда ссылается алиас
Код: Выделить всё
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
ls -la /srv/www/cacti/Raven писал(а):ls -la /srv/www/cacti/
ls -la /srv/www/htdocs
также интересует содержимое cacti.conf
Код: Выделить всё
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: невозможно получить доступ к /srv/www/htdocs: Нет такого файла или каталога
Код: Выделить всё
Order allow,deny
Allow from All
Код: Выделить всё
APACHE_SERVER_FLAGS="CACTIVHOST"
Раскомментировал DocumentRoot и поимелRaven писал(а):То есть, ты получается немного отступил от мануала и подправил конфиг основного вирта... Это не есть правильно! Раскомментируй DocumentRoot и верни путь в <Directory> на место. У тебя есть конфиг для cacti (cacti.conf), нужноего только немного исправить:и в /etc/sysconfig/apache2Код: Выделить всё
Order allow,deny Allow from All
перезапусти индейца и должно стать хорошо по адресу localhost/cactiКод: Выделить всё
APACHE_SERVER_FLAGS="CACTIVHOST"
Код: Выделить всё
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:~ #
Код: Выделить всё
APACHE_SERVER_FLAGS="CACTIVHOST"
сопоставь сblackdog писал(а): DocumentRoot must be a directory
)))blackdog писал(а):ls -la /srv/www/htdocsls: невозможно получить доступ к /srv/www/htdocs: Нет такого файла или каталога
Это то понятно,что ее нету,но в мане про нее нет ничего,соответственно ХЗRaven писал(а):сопоставь сblackdog писал(а): DocumentRoot must be a directory)))blackdog писал(а):ls -la /srv/www/htdocsls: невозможно получить доступ к /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:~ #