Page 1 of 1
Help needed to start ZM
Posted: Thu Aug 05, 2004 9:06 am
by Ben
Because my livecd install is still rebooting with the spectra8 capturecard (see topic rebooting) I have the spectra8 installed in my Clarkconnect linux server (cc)
http://www.clarkconnect.org
CC is based on redhat 9.
I think I have installed all the necessaries files.. I hope.
I have the zm database and 2 users with passwords.
I'm not able to enter zm in my webbrowser with 192.168.1.1/zm
I can't find the file 'zm''to start zm or to copy the file 'zm' to /init.d.
When I install zm , I don't see any problems.
I know it is difficult to help from a distance but I'm busy for weeks now and no luck..
Thanks
Ben
The Netherlands
Posted: Fri Aug 06, 2004 11:39 am
by Ben
Because it is hard to give some advise without any log, I will place my log here. I hope somebody can discover what is wrong.
After tar –zxvf zm…..
[root@gateway /]# cd zm-1.19.4
[root@gateway zm-1.19.4]# ./configure --with-mysql=/usr --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
configure: WARNING: You can call configure with the --with-ffmpeg option.
This tells configure where to find the ffmpeg build directory within which are the libavcodec
and libavformat files that can be used to build true MPEG streaming into ZoneMinder. A normal
install of ffmpeg only installs the applications and not the libraries or headers necessary
to link to so this will probably be a local or temporary directory.
e.g. --with-ffmpeg=/usr/local
configure: WARNING: You can call configure with the --with-lame option.
This tells configure where to find the Lame library which can be used by the ffmpeg libraries
to generate IE compatible MPEG audio streams. This option is only necessary if you have built
the ffmpeg package itself with the --enable-mp3lame option and if the normal link cannot
find the library. Using mp3lame is not necessary or of any benefit to ZoneMinder per se.
e.g. --with-lame=/use/local/lib
configure: WARNING: You can call configure with the --with-webuser option.
This tells configure what the user name of the web user is if it is not the default of 'apache'.
e.g. --with-webuser=apache or --with-webuser=web
configure: WARNING: You can call configure with the --with-webgroup option.
This tells configure what the group name of the web group is if it is not the default of 'apache'.
e.g. --with-webgroup=apache or --with-webgroup=web
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking for a BSD-compatible install... /usr/bin/install -c
checking whether make sets $(MAKE)... (cached) yes
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking how to run the C++ preprocessor... g++ -E
checking pcre/pcre.h usability... no
checking pcre/pcre.h presence... no
checking for pcre/pcre.h... no
checking pcre.h usability... no
checking pcre.h presence... no
checking for pcre.h... no
checking whether round is declared... yes
checking whether strsignal is declared... yes
checking for jpeg_start_compress in -ljpeg... yes
checking for compress in -lz... yes
checking for dlsym in -ldl... yes
checking for mysql_init in -lmysqlclient... yes
checking for pcre_compile in -lpcre... no
configure: WARNING: libpcre.a is required for remote/network camera support
checking for avcodec_init in -lavcodec... no
configure: WARNING: libavcodec.a is required for MPEG streaming
checking for av_new_stream in -lavformat... no
configure: WARNING: libavformat.a is required for MPEG streaming
checking for lame_init in -lmp3lame... no
configure: WARNING: libmp3lame.a may be required if ffmpeg was built with it
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating web/Makefile
config.status: creating scripts/Makefile
config.status: creating db/Makefile
config.status: creating zmconfig.pl
config.status: creating config.h
config.status: executing depfiles commands
checking for zmconfig.txt... no
configure: WARNING: Now run 'perl zmconfig.pl' to create your ZoneMinder configuration
# running Perl ./zmconfig
[root@gateway zm-1.19.4]# perl ./zmconfig.pl
Loading config from DB
DBI connect('database=zm;host=localhost','',...) failed: Unknown database 'zm' at ./zmconfig.pl line 1508
Warning: unable to load options from database. Ignore if database not created yet
Welcome to the ZoneMinder interactive configuration utility.
You will now be prompted to enter information allowing ZoneMinder to
be configured for your system. Entering '?' at most prompts will print
further information about each option if you are not sure what to put.
You can also type 'q' at any time to exit without saving or 'x' to
exit with the remaining options set to their previous or default
values.
Press enter to continue:
Machine on which the database server is running (host.your.domain) [localhost] :
Database containing the tables (alphanumeric) [zm] :
Privileged DB user name, needs at least select, insert, update and delete privileges (alphanumeric) [] : ben
Privileged DB user password (alphanumeric) [] : passwrd-ben
Unprivileged DB user name, need just select privilege. (alphanumeric) [] : gast
Unprivileged DB user password (alphanumeric) [] : passwrd-gast
----------------------------------------------------------------------------
You have completed the options that are fixed in compilation. You can now
continue and specify the remaining options or press 'x' to exit and save
your changes and then edit the remainder from the web interface.
----------------------------------------------------------------------------
Default language used by web interface (directory) [en_gb] : x
Using existing values for remaining options
Saving config to 'zmconfig.txt'
Saving config to DB
DBI connect('database=zm;host=localhost','ben',...) failed: Access denied for user: 'ben@localhost' (Using password: YES) at ./zmconfig.pl line 1412
Warning: unable to save options to database. Ignore if database not created yet
Generating 'src/zm_config_defines.h'
Processing 'src/zm_config.h'
Processing 'web/zm_config.php'
Processing 'scripts/zmdc.pl'
Processing 'scripts/zmwatch.pl'
Processing 'scripts/zmaudit.pl'
Processing 'scripts/zmfilter.pl'
Processing 'scripts/zmx10.pl'
Processing 'scripts/zmpkg.pl'
Processing 'scripts/zmupdate.pl'
Processing 'scripts/zmvideo.pl'
Processing 'scripts/zm'
Processing 'db/zmschema.sql'
Now please create your database and database users and then run
'perl zmconfig.pl -noi' to import your configuration into the database
# MYSQL
[root@gateway zm-1.19.4]# cd db
[root@gateway db]# mysql mysql < zmschema.sql
[root@gateway db]# mysql mysql
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 68 to server version: 4.0.20-standard
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> grant select,insert,update,delete on zm.* to 'ben'@localhost identified by 'passwrd-ben';
Query OK, 0 rows affected (0.04 sec)
mysql> grant select on zm.* to 'gast'@localhost identified by 'passwrd-gast';
Query OK, 0 rows affected (0.00 sec)
mysql> quit
Bye
[root@gateway db]# mysqladmin reload
[root@gateway db]# cd ..
[root@gateway zm-1.19.4]# perl ./zmconfig.pl -noi
Loading config from 'zmconfig.txt'
Loading config from DB
Saving config to 'zmconfig.txt'
Saving config to DB
Generating 'src/zm_config_defines.h'
Processing 'src/zm_config.h'
Processing 'web/zm_config.php'
Processing 'scripts/zmdc.pl'
Processing 'scripts/zmwatch.pl'
Processing 'scripts/zmaudit.pl'
Processing 'scripts/zmfilter.pl'
Processing 'scripts/zmx10.pl'
Processing 'scripts/zmpkg.pl'
Processing 'scripts/zmupdate.pl'
Processing 'scripts/zmvideo.pl'
Processing 'scripts/zm'
Processing 'db/zmschema.sql'
# After this 'make'and 'make install'
Do I have to start ZM now?.. Or is it already running?..
Thnx
Ben
Posted: Fri Aug 06, 2004 12:12 pm
by Ben
Finally.. I can login... Itw as an apache problem..!!! Solved and it's running.