Solved
I did the following Steps:
Installing MySQL 5.0
Code: Select all
cat >> /etc/portage/package.use << "EOF"
=dev-db/mysql-5.0* -berkdb
EOF
emerge "=dev-db/mysql-5.0*"
Configure MySQL
Code: Select all
cat > /etc/mysql/my.cnf << "EOF"
[client]
character-sets-dir = /usr/share/mysql/charsets
default-character-set = utf8
port = 3306
socket = /var/run/mysqld/mysqld.sock
[mysql]
character-sets-dir = /usr/share/mysql/charsets
default-character-set = utf8
[mysqladmin]
character-sets-dir = /usr/share/mysql/charsets
default-character-set = utf8
[mysqlcheck]
character-sets-dir = /usr/share/mysql/charsets
default-character-set = utf8
[mysqldump]
character-sets-dir = /usr/share/mysql/charsets
default-character-set = utf8
max_allowed_packet = 16M
quick
[mysqlimport]
character-sets-dir = /usr/share/mysql/charsets
default-character-set = utf8
[mysqlshow]
character-sets-dir = /usr/share/mysql/charsets
default-character-set = utf8
[isamchk]
character-sets-dir = /usr/share/mysql/charsets
key_buffer_size = 128M
sort_buffer_size = 128M
read_buffer_size = 4M
write_buffer_size = 4M
[myisamchk]
character-sets-dir = /usr/share/mysql/charsets
key_buffer_size = 128M
sort_buffer_size = 128M
read_buffer_size = 4M
write_buffer_size = 4M
[myisampack]
character-sets-dir = /usr/share/mysql/charsets
[mysqld_safe]
err-log = /var/log/mysql/mysql.err
[mysqld]
character-set-server = utf8
default-character-set = utf8
user = mysql
port = 3306
bind-address = 127.0.0.1
socket = /var/run/mysqld/mysqld.sock
pid-file = /var/run/mysqld/mysqld.pid
log-error = /var/log/mysql/mysqld.err
basedir = /usr
datadir = /var/lib/mysql
tmpdir = /tmp
language = /usr/share/mysql/english
log-bin = mysql-bin
server-id = 1
sync_binlog = 1
max_binlog_size = 10M
# expire_logs_days = 2
slave_compressed_protocol = 1
delay-key-write = ALL
skip-locking
# skip-networking
skip-name-resolve
skip-external-locking
skip-show-database
safe-user-create = 1
net_buffer_length = 8K
key_buffer_size = 128M
sort_buffer_size = 4M
join_buffer_size = 4M
read_buffer_size = 4M
read_rnd_buffer_size = 8M
myisam_sort_buffer_size = 64M
max_allowed_packet = 16M
thread_cache_size = 8
table_cache = 256
query_cache_type = 1
query_cache_size = 32M
query_cache_limit = 1M
thread_concurrency = 8
local-infile = 0
long_query_time = 2
log_slow_queries
log_long_format
myisam_recover
skip-innodb
innodb_buffer_pool_size = 32M
innodb_additional_mem_pool_size = 4M
innodb_data_home_dir = /var/lib/mysql/
innodb_log_arch_dir = /var/lib/mysql/
innodb_log_group_home_dir = /var/lib/mysql/
innodb_data_file_path = ibdata1:10M:autoextend:max:128M
innodb_log_file_size = 5M
innodb_log_buffer_size = 8M
innodb_log_files_in_group = 2
innodb_flush_log_at_trx_commit = 1
innodb_lock_wait_timeout = 50
[mysqlhotcopy]
interactive-timeout
EOF
Code: Select all
emerge --config "=dev-db/mysql-5.0*"
rc-update add mysql default
/etc/init.d/mysql start
/usr/bin/mysql_secure_installation
/etc/init.d/mysql stop
/etc/init.d/mysql start
Insatlling PHP5
Edit
/etc/make.conf as follow:
Code: Select all
USE="apache2 berkdb cli crypt doc gdbm iconv mysql mysqli ncurses nls pcre readline reflection session spell spl ssl truetype vhosts xml zlib -adabas -apache -bcmath -birdstep -bzip2 -calendar -cdb -cgi -cjk -concurrentmodphp -ctype -curl -curlwrappers -db2 -dbase -dbmaker -debug -discard-path -empress -empress-bcs -esoob -exif -fastbuild -fdftk -filepro -firebird -flatfile -force-cgi-redirect -frontbase -ftp -gd -gd-external -gmp -hardenedphp -hash -hyperwave-api -imap -informix -inifile -interbase -iodbc -ipv6 -java-external -kerberos -ldap -libedit -mcve -memlimit -mhash -ming -msql -mssql -oci8 -oci8-instant-client -odbc -pcntl -pdo -pdo-external -pic -posix -postgres -qdbm -recode -sapdb -sasl -sharedext -sharedmem -simplexml -snmp -soap -sockets -solid -sqlite -sybase -sybase-ct -sysvipc -threads -tidy -tokenizer -unicode -vm-goto -vm-switch -wddx -xmlreader -xmlrpc -xmlwriter -xpm -xsl -yaz -zip
Installing a Perl Module
Downloading, configure and installing Zoneminder
Code: Select all
cd /usr/local/src
wget http://www2.zoneminder.com/downloads/ZoneMinder-1.22.2.tar.gz
tar -xvzf ZoneMinder-1.22.2.tar.gz
cd ZoneMinder-1.22.2
./configure --with-webdir=/var/www/localhost/htdocs/zm --with-cgidir=/var/www/localhost/cgi-bin --with-mysql=/usr/bin --with-ffmpeg=/usr/bin
mysql mysql < db/zm_create.sql
mysql mysql
mysql> GRANT ALL PRIVILEGES ON zm.* TO 'zmuser'@localhost identified by 'zmpass';
mysql> GRANT ALL PRIVILEGES ON zm.* TO 'zmuser'@'%' identified by 'zmpass';
mysql> quit
mysqladmin reload
make install
Installig Cambozola
Code: Select all
emerge dev-java/ant
cd /usr/local/src
wget http://www.charliemouse.com/code/cambozola/cambozola-latest.tar.gz
tar xvfz cambozola-latest.tar.gz
cp /usr/local/src/cambozola-0.68/dist/cambozola.jar /var/www/localhost/htdocs/zm
chmod 775 /var/www/localhost/htdocs/zm/cambozola.jar
Then under the tools or Images tab enable
ZM_OPT_CAMBOZOLA
NOTE This is only for the Mysql-PHP-ZM part, --> Apache, ffmpeg, etc must be installed before!
I hope it's helpfull for other Gentoo Users