Установка SAMS на CentOS6.
Далее идет порядок действий, по которому я шел устанавливая SAMS.
nano /etc/selinux/config
SELINUX=disabled
-----------------
nano /etc/httpd/conf/httpd.conf
ServerName CentosVM:80
<Directory "/usr/local/share/sams/">
AllowOverride AuthConfig
Options Indexes MultiViews
Order allow,deny
Allow from all
</Directory>
----------------------
service httpd reload
yum install mysql mysql-server php mysql php-mysql php-gd php-ldap -y
chkconfig mysqld on
service mysqld start
/usr/bin/mysqladmin -u root password '123456'
mysql_secure_installation
n
y
n
y
y
yum install libmysqlclient15 --enablerepo=webtatic -y
rpm -i sams-1.0.5-91.1.i386.rpm
chkconfig sams on
nano /etc/php.ini
safe_mode = Off
--------
MySQL password: 123456
SAMS MySQL user password: 123456
nano /etc/sams.conf
[client]
SQUID_DB=squidlog
SAMS_DB=squidctrl
MYSQLHOSTNAME=localhost
MYSQLUSER=sams
MYSQLPASSWORD=123456
MYSQLVERSION=5.0
SQUIDCACHEFILE=access.log
SQUIDROOTDIR=/etc/squid
SQUIDLOGDIR=/var/log/squid
SQUIDCACHEDIR=/var/spool/squid
SAMSPATH=/usr
SQUIDPATH=/usr/sbin
SQUIDGUARDLOGPATH=/var/log
SQUIDGUARDDBPATH=/var/db/squidguard
RECODECOMMAND=iconv -f KOI8-R -t 866 %finp > %fout
LDAPSERVER=servername_or_ipadress
LDAPBASEDN=your.domain
LDAPUSER=DomainAdministrator
LDAPUSERPASSWD=passwd
LDAPUSERSGROUP=Users
REJIKPATH=/usr/local/rejik
SHUTDOWNCOMMAND=shutdown -h now
CACHENUM=0
----------------------------
service sams start
nano /usr/share/sams/src/configtray.php
nano /usr/share/sams/src/webconfigtray.php
GetHostName заменить на GetSamsHostName
-------------------
service httpd restart
admin qwerty
squid -k reconfigure
service squid restart
service httpd restart
service sams restart
service mysqld restart
samsdaemon