From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on sa.local.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1507053468; bh=vcLX4kv+PA4dER5iS9rifib5gcOpHX4aBKCPdANC9rk=; h=From:Subject:To:References:Message-ID:Date:In-Reply-To; b=mYCCxYGaF+26FPbilXbCOQ9qOjHpiaK2Q85XLd8Cjg/lNUhJE9helP5Fm1fxRtsgt d/LdJjQRJ6E94c8ge0tqDSRWrsQ5W7cT3gxYKyVw+cnXNax870zDJZ14gwc/EIZ55r Z1kIBgY0QYb66PUSA5hIKC8MMFD+YHrAFA7JlagE= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1507053468; bh=vcLX4kv+PA4dER5iS9rifib5gcOpHX4aBKCPdANC9rk=; h=From:Subject:To:References:Message-ID:Date:In-Reply-To; b=mYCCxYGaF+26FPbilXbCOQ9qOjHpiaK2Q85XLd8Cjg/lNUhJE9helP5Fm1fxRtsgt d/LdJjQRJ6E94c8ge0tqDSRWrsQ5W7cT3gxYKyVw+cnXNax870zDJZ14gwc/EIZ55r Z1kIBgY0QYb66PUSA5hIKC8MMFD+YHrAFA7JlagE= Authentication-Results: smtp1j.mail.yandex.net; dkim=pass header.i=@yandex.ru From: =?UTF-8?B?0JDQu9C10LrRgdC10Lkg0KjQtdC90YbQtdCy?= To: sisyphus@lists.altlinux.org References: Message-ID: Date: Tue, 3 Oct 2017 20:57:45 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: ru Subject: Re: [sisyphus] zoneminder & apache2 & systemd X-BeenThere: sisyphus@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: ALT Linux Sisyphus discussions List-Id: ALT Linux Sisyphus discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Oct 2017 17:57:51 -0000 Archived-At: List-Archive: List-Post: Всем привет. Продолжаю мучить сабж Создал: cat /lib/systemd/system/zoneminder.service # ZoneMinder systemd unit file # This file is intended to work with all Linux distributions [Unit] Description=ZoneMinder CCTV recording and security system After=network.target mysqld.service httpd2.service Requires=mysqld.service httpd2.service [Service] User=apache Type=forking ExecStart=/usr/bin/zmpkg.pl start ExecReload=/usr/bin/zmpkg.pl restart ExecStop=/usr/bin/zmpkg.pl stop PIDFile=/var/run/zm/zm.pid Environment=TZ=:/etc/localtime [Install] WantedBy=multi-user.target Выполнил systemctl enable zoneminder.service Создал файл: cat /etc/tmpfiles.d/zoneminder.conf d /var/run/zm 0775 apache _webserver - d /var/lock/subsys/zm 2775  apache _webserver - Прописал свой часовой пояс (по умолчанию значение не определено) иначе web-морда zoneminder даёт ошибку: cat /etc/php/5.6/apache2-mod_php/php.ini|grep 'date.timezone =' date.timezone = Europe/Moscow Создал: cat /etc/httpd2/conf/extra-available/zoneminder.conf #zoneminder.conf for apache2         ErrorLog /var/log/httpd2/zm.error.log         # Possible values include: debug, info, notice, warn, error, crit,         # alert, emerg.         LogLevel debug         # Access log         CustomLog /var/log/httpd2/zm.access.log combined             Alias /zm /usr/share/zoneminder/www/             Alias /zoneminder /usr/share/zoneminder/www/                             Options Indexes MultiViews                 AllowOverride All                 Order Allow,Deny                 Allow from all #               Allow from localhost #               Deny from all                         ScriptAlias /cgi-bin /usr/lib/zoneminder/cgi-bin/                             Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch                 AllowOverride All                 Options Indexes MultiViews                 AllowOverride All                 Order Allow,Deny                 Allow from all #               Allow from localhost #               Deny from all             Выполнил a2enextra zoneminder apachectl configtest Перезапустил апач и запустил zonemider. Стартанули нормально. Для запуска и работы zoneminder под systemd оказалось необходимым и достаточным вышеуказанные /lib/systemd/system/zoneminder.service и /etc/tmpfiles.d/zoneminder.conf При обращении к http://localhost/zm получаю на экране такую ругань: MooTools not found! Please check that it was installed correctly in ZoneMinder web root. В логах такое: [Tue Oct 03 20:33:21.669273 2017] [access_compat:error] [pid 14096] [client 127.0.0.1:43408] AH01797: client denied by server configuration: /usr/share/zoneminder/www/ [Tue Oct 03 20:38:32.466497 2017] [:error] [pid 14898] [client 127.0.0.1:43502] ERR [Cannot write to content dirs('events','images').  Check that these exist and are owned by the web account user] [Tue Oct 03 20:38:32.839732 2017] [:error] [pid 14898] [client 127.0.0.1:43502] PHP Warning:  disk_total_space(): No such file or directory in /usr/share/zoneminder/www/includes/functions.php on line 1448 [Tue Oct 03 20:38:32.877822 2017] [:error] [pid 14898] [client 127.0.0.1:43502] ERR [disk_total_space returned false. Verify the web account user has access to events] [Tue Oct 03 20:38:33.065912 2017] [core:error] [pid 14901] [client 127.0.0.1:43510] AH00037: Symbolic link not allowed or link target not accessible: /usr/share/zoneminder/www/tools/mootools/mootools-core.js, referer: http://localhost/zm/ [Tue Oct 03 20:38:33.104259 2017] [core:error] [pid 14898] [client 127.0.0.1:43502] AH00037: Symbolic link not allowed or link target not accessible: /usr/share/zoneminder/www/tools/mootools/mootools-more.js, referer: http://localhost/zm/ Имею: ls -l /usr/share/zoneminder/www/tools/mootools/ итого 532 -rw-r--r-- 1 root root 160495 окт  2 17:03 mootools-core-1.4.5-compat.js lrwxrwxrwx 1 root root     29 окт  2 17:07 mootools-core.js -> mootools-core-1.4.5-compat.js -rw-r--r-- 1 root root 379351 окт  2 17:03 mootools-more-1.5.1.js lrwxrwxrwx 1 root root     22 окт  2 17:07 mootools-more.js -> mootools-more-1.5.1.js В чём может быть проблема? -- С уважением, Шенцев Алексей.