ltavenne
30-08-2005, 14:44
First, I installed the following free packages from sunfreeware
expat, libiconv, gdbm, db-4.2.52.NC, gcc, gnu tar, libxml2, zlib, libpng, freetype, jpeg, xpm, fontconfig, gd
then I used
mysql-max-3.23.58-pc-solaris2.8-i386
follow documentation about installation of mysql
apache_1.3.27
./configure --prefix=/usr/local/apache --enable-shared=max --enable-module=so
make
make install
php-4.3.5
./configure --prefix=/usr/local/php --with-apxs=/usr/local/apache/bin/apxs --with-mysql=/usr/local/mysql --enable-track-vars --with-xml --with-zlib --with-zlib-dir=/usr/local/lib --with-gd --with-jpeg-dir=/usr/local/lib --with-png-dir=/usr/local/lib
make
make install
net-snmp-5.0.10.2
./configure
make
make install
fping-2.2b2
./configure
make
make install
chmod u+s /usr/local/sbin/fping
zabbix-1.0
./configure --with-mysql=/usr/local/mysql --with-net-snmp
make
then follow documentation about installation of zabbix
I already success install zabbix in Solaris 10 local zone.
Here some of my tips. Maybe you can get some idea.
But I saw the graphic value for all localzone for disk, proc, free mem usage are all the same for all zone. I think that one because all local zone sharing the same mem, proc and disk.
I might be wrong.
I install all pkg in /opt/csw because that location is default pkg location for blastwave pkg. I can't use sunfreeware one, because it default location is in /usr/local and that usr is read only in local zone, unless you want remove /usr in inherited pkg, but that mean it will copy all /usr from global zone to local zone
GD
-download GD from http://www.boutell.com/gd/
APACHE
# groupadd apache
# useradd -d /opt/csw/apache -g apache -s /bin/false apache
# cd httpd-2.0.54
# ./configure --prefix=/opt/csw/apache --with-mpm=prefork --disable-charset-lite --disable-include --disable-env --disable-status --disable-autoindex --disable-asis --disable-negotiation --disable-imap --disable-actions --disable-userdir --enable-so
# gmake
# umask 022
# gmake install
# chown -Rf apache:apache /opt/csw/apache
MYSQL
# groupadd mysql
# useradd -g mysql -d /var/empty -c "MySQL Server" -s /bin/false mysql
# gtar -zxf mysql-4.1.14.tar.gz
# cd mysql-4.1.14
# export LDFLAGS='-R/opt/csw/lib'
# ./configure --prefix=/opt/csw/mysql --localstatedir=/var/mysql
# gmake;gmake install
# cp /opt/csw/mysql/share/mysql/my-large.cnf /etc/my.cnf
# vi /etc/my.cnf
-comment out log-bin
# /opt/csw/mysql/bin/mysql_install_db
# chown -R mysql:mysql /var/mysql
# cp /opt/csw/mysql/share/mysql/mysql.server /opt/csw/mysql/bin/
# /opt/csw/mysql/bin/mysql.server start
PHP5
# cd php-5.0.5
# ./configure --prefix=/opt/csw --with-apxs2=/opt/csw/apache/bin/apxs --with-mysql=/opt/csw/mysql --with-gd --with-zlib=/opt/csw
# gmake;gmake install
# cp php.ini-recommended /opt/csw/lib/php.ini
# vi /opt/csw/lib/php.ini
- ;include_path = ".:/php/includes"
+ include_path = ".:/php/includes:/opt/csw/lib/php"
ZABBIX SERVER
-download and install fping from www.blastwave.org
# mkdir /opt/csw/apache/htdocs/zabbix
-compile zabbix server
# ./configure --prefix=/opt/csw --with-mysql=/opt/csw/mysql --without-net-snmp;gmake
# chown zabbix:zabbix bin/*
# cp -p bin/zabbix* /opt/csw/bin/
# crle -u -l /opt/csw/mysql/lib/mysql:/opt/csw/lib
-Note PHP5 is not supported in zabbix 1.0, we need to change in
# vi /opt/csw/lib/php.ini
- allow_call_time_pass_reference = Off
+ allow_call_time_pass_reference = On
# vi /opt/csw/apache/htdocs/zabbix/include/config.inc.php
before the last line "?>" insert these
if (!isset($HTTP_POST_VARS) && isset($_POST))
{
$HTTP_POST_VARS = $_POST;
$HTTP_GET_VARS = $_GET;
$HTTP_SERVER_VARS = $_SERVER;
$HTTP_COOKIE_VARS = $_COOKIE;
$HTTP_ENV_VARS = $_ENV;
$HTTP_POST_FILES = $_FILES;
}