ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: "Алексей Шенцев" <lex.shen@yandex.ru>
To: ALT Linux Sisyphus discussions <sisyphus@lists.altlinux.org>
Subject: [sisyphus] zoneminder 1.30 & p8
Date: Thu, 26 Oct 2017 10:38:59 +0300
Message-ID: <5984381509003539@web23o.yandex.ru> (raw)

Всем привет!

Собрал zm-1.3 на p8.

Сборка и развёртывание с использованием systemd проблем не вызвала:
 
rpm -qa|grep zoneminder|sort
zoneminder-1.30.4-alt3.M80P.1
zoneminder-api-1.30.4-alt3.M80P.1
zoneminder-nginx-1.30.4-alt3.M80P.1

Однако при попытке зайти в консоль получаю следующее:

Unable to connect to ZM db.could not find driver

В логах apache2 такое:

PHP Fatal error:  Call to a member function query() on null in /usr/share/zoneminder/www/includes/config.php on line 151

Т.е. вэб-морда не может подключиться к БД.
Данная проблема решается установкой php-PDO, что и выполненно:

rpm -qa|grep -i pdo|sort
php5-mysqlnd-pdo_mysql-5.6.31.20170607-alt1.M80P.1
php5-pdo-5.6.31.20170607-alt1.M80P.1

Однако phpinfo выдаёт:

PDO
PDO support	enabled
PDO drivers 	no value

Как я понимаю не видит драйвер БД для mysql

Вопрос:

как правильно  у нас подключить pdo_mysql ?

phpMyAdmin работает без проблем.


             reply	other threads:[~2017-10-26  7:38 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-26  7:38 Алексей Шенцев [this message]
2017-10-26  7:47 ` Alexey Shabalin
2017-10-26  8:01   ` Алексей Шенцев
2017-10-26  8:07     ` Alexey Shabalin
2017-10-26  8:28       ` Алексей Шенцев
2017-10-26  8:17     ` Anton Farygin
2017-10-26  8:27       ` Алексей Шенцев
2017-10-26  9:02           ` Алексей Шенцев
2017-10-26  9:05             ` Anton Farygin
2017-10-26  9:07               ` Anton Farygin
2017-10-26  9:28                 ` Алексей Шенцев
2017-10-26  9:30                   ` Anton Farygin
2017-10-26  9:36                     ` Алексей Шенцев
2017-10-26 10:21                       ` Anton Farygin
2017-10-26 10:45                         ` Алексей Шенцев
2017-10-26 10:46                           ` Anton Farygin
2017-10-26 11:28                           ` Шенцев Алексей
2017-10-26 11:44                             ` Anton Farygin
2017-10-26 11:46                             ` Шенцев Алексей
2017-10-26 12:20                               ` Шенцев Алексей
2017-10-26  9:11             ` Alexei Takaseev
2017-10-26  9:23               ` Алексей Шенцев
2017-10-26  9:29                 ` Anton Farygin
2017-10-26  9:38                   ` Алексей Шенцев
2017-10-26  9:56                   ` Алексей Шенцев
2017-10-26 10:22                     ` Anton Farygin
2017-10-26 12:29 ` Шенцев Алексей
2017-10-26 12:32   ` Anton Farygin
2017-10-26 12:50     ` Шенцев Алексей
2017-10-26 13:06       ` Anton Farygin
2017-10-27  9:19         ` Шенцев Алексей
2017-10-27 10:56           ` [sisyphus] zoneminder 1.30.4 Шенцев Алексей
2017-10-27 18:46             ` Lex Shen

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=5984381509003539@web23o.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