From: "Алексей Шенцев" <lex.shen@yandex.ru> To: sisyphus@lists.altlinux.org Subject: Re: [sisyphus] zoneminder & apache2 & systemd Date: Tue, 3 Oct 2017 20:57:45 +0300 Message-ID: <c3c22955-0269-a455-1b7e-71379b0b10ad@yandex.ru> (raw) In-Reply-To: <ec2a929c-1805-b8bd-5a30-1075690fcd4d@yandex.ru> Всем привет. Продолжаю мучить сабж Создал: 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 <IfModule alias_module> 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/ <Directory /usr/share/zoneminder/www/> Options Indexes MultiViews AllowOverride All Order Allow,Deny Allow from all # Allow from localhost # Deny from all </Directory> ScriptAlias /cgi-bin /usr/lib/zoneminder/cgi-bin/ <Directory /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 </Directory> </IfModule> Выполнил 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 В чём может быть проблема? -- С уважением, Шенцев Алексей.
next prev parent reply other threads:[~2017-10-03 17:57 UTC|newest] Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top 2017-10-01 10:00 [sisyphus] cctv & face control Алексей Шенцев 2017-10-02 4:56 ` Anton Farygin 2017-10-02 7:05 ` Алексей Шенцев 2017-10-02 7:21 ` Anton Farygin 2017-10-02 13:58 ` Anton Farygin 2017-10-02 14:06 ` Алексей Шенцев 2017-10-02 14:26 ` Anton Farygin 2017-10-02 14:40 ` Алексей Шенцев 2017-10-02 15:19 ` Anton Farygin 2017-10-02 15:52 ` Алексей Шенцев 2017-10-02 16:34 ` Anton Farygin 2017-10-02 16:43 ` Alexei Takaseev 2017-10-03 8:51 ` В.А. Илларионов 2017-10-03 12:49 ` Алексей Шенцев 2017-10-04 1:34 ` В.А. Илларионов 2017-10-02 20:59 ` [sisyphus] zoneminder & systemd Алексей Шенцев 2017-10-02 21:07 ` Алексей Шенцев 2017-10-02 21:35 ` Алексей Шенцев 2017-10-03 8:54 ` В.А. Илларионов 2017-10-03 19:48 ` Алексей Шенцев 2017-10-07 7:57 ` Алексей Шенцев 2017-10-07 8:57 ` Anton Farygin 2017-10-07 9:42 ` Алексей Шенцев 2017-10-07 20:10 ` Anton Farygin 2017-10-08 9:25 ` Алексей Шенцев 2017-10-08 19:51 ` Anton Farygin 2017-10-08 19:58 ` Алексей Шенцев 2017-10-09 7:23 ` Anton Farygin 2017-10-03 17:57 ` Алексей Шенцев [this message] 2017-10-03 22:08 ` [sisyphus] zoneminder & apache2 " Алексей Шенцев 2017-10-04 5:10 ` Алексей Шенцев
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=c3c22955-0269-a455-1b7e-71379b0b10ad@yandex.ru \ --to=lex.shen@yandex.ru \ --cc=sisyphus@lists.altlinux.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux Sisyphus discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \ sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru public-inbox-index sisyphus Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.sisyphus AGPL code for this site: git clone https://public-inbox.org/public-inbox.git