ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] SAMS: проблемы в настройке
@ 2007-12-11  7:58 Безруков Александр
  2007-12-11  8:11 ` Slava Dubrovskiy
  2007-12-11  9:46 ` Alexander Volkov
  0 siblings, 2 replies; 4+ messages in thread
From: Безруков Александр @ 2007-12-11  7:58 UTC (permalink / raw)
  To: community

День добрый!

ВОПРОС:
Как правильно сконфигурировать sams?
Или менять вызовы в скриптах?

При конфигурировании sams (из backports), если ничего не менять в коде sams,
все время выскакивают ошибки в apache.log:
 
[root@alt ~]# tail /var/log/httpd2/error_log
[Tue Dec 11 10:42:04 2007] [notice] Apache/2.2.4 (Unix) PHP/4.4.7 with
Suhosin-Patch configured -- resuming normal operations
sh: freemem: command not found
sh: freeswap: command not found
sh: fsusage: command not found
sh: getwbinfousers: command not found

Файлы freemem, freeswap и т.д. находятся соответственно в ...sams/bin.
В php соде соответственно вызов выглядит как
$value=exec("getwbinfousers $e");

Если код в скриптах поменять на 
$value=exec("bin/getwbinfousers $e");
то ошибки выполнения пропадают.

Установлены из backports:

sams-web-20070524-alt0.M40.2
sams-config-20070524-alt0.M40.2
sams-20070524-alt0.M40.2
sams-server-20070524-alt0.M40.2

Файл настроек sams.conf
----------------------------
[client]
SQUID_DB=squidlog
SAMS_DB=squidctrl
MYSQLHOSTNAME=localhost
MYSQLUSER=sams
MYSQLPASSWORD=XXXXXXX
MYSQLVERSION=4.0
SQUIDCACHEFILE=access.log
SQUIDROOTDIR=/etc/squid
SQUIDLOGDIR=/var/log/squid
SAMSPATH=/usr/bin
SQUIDPATH=/usr/sbin
SQUIDGUARDLOGPATH=/var/log
SQUIDGUARDDBPATH=/var/db/squidguard
RECODECOMMAND=iconv -f KOI8-R -t 866 %finp > %fout
LDAPSERVER=servername_or_ipadress
LDAPBASEDN=VM
LDAPUSER=Administrator
LDAPUSERPASSWD=XXXXXXXX
LDAPUSERSGROUP=Users
REJIKPATH=/usr/share/rejik
SHUTDOWNCOMMAND=shutdown -h now

-- 
С уважением, Безруков А.И.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-12-11  9:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-12-11  7:58 [Comm] SAMS: проблемы в настройке Безруков Александр
2007-12-11  8:11 ` Slava Dubrovskiy
2007-12-11  9:46 ` Alexander Volkov
2007-12-11  9:54   ` Алексей Шенцев

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/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 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git