I tried this several times on my redhat 8.0 box installed with "Everything". here is my steps:
1. ./configure --with-mysql=/usr --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin
2. perl zmconfig.pl ; most of the options are left as default. the full access user is zmuser and other one is called guest
3. cd db ; mysql -u root -p < zmschema.sql ; create the database;
4. perl zmconfig.pl -noi;
5. mysql -u root -p ;
6. mysql> grant select,insert,update,delete on zm.* to zmuser@localhost identified by "zmuser";
7. mysq> grant select on zm.* to guest@localhost identified by "guest";
9. quit;
10. mysqladmin -u root -p reload
11. make ; make install; cp script/zm /etc/rc.d/init.d/zm ; chmod +x /etc/rc.d/init.d/zm
12. /etc/rc.d/init.d/zm start
13. using Netscape 7.1: http://localhost/zm/
14. show the ZM - console
ZoneMinder Console - () - v Server Load:
Monitor Configured for bandwidth
Id Name Function Source Events Hour Day Week Month Archive Zones Mark
[Refresh] [add new monitor] [Delete]
when I click on "Add new monitor", nothing happened
here is what my ps aux output:
apache 9085 0.5 1.6 8684 5212 pts/0 S 18:03 0:00 /usr/bin/perl -wT /usr/local/bin/zmdc.pl status
apache 9106 9.0 1.3 7760 4284 pts/0 S 18:04 0:00 /usr/bin/perl -wT /usr/local/bin/zmaudit.pl -d 900 -y
apache 9112 10.6 1.4 8124 4588 pts/0 S 18:04 0:00 /usr/bin/perl -wT /usr/local/bin/zmwatch.pl
/tmp/zmpkg.log:
Removing shared memory
Executing: su apache --shell=/bin/sh --command='/usr/local/bin/zmfix'
Executing: su apache --shell=/bin/sh --command='/usr/local/bin/zmdc.pl status'
Executing: su apache --shell=/bin/sh --command='/usr/local/bin/zmdc.pl start zmaudit.pl -d 900 -y'
Executing: su apache --shell=/bin/sh --command='/usr/local/bin/zmdc.pl start zmwatch.pl'
/tmp/zmaudit.log:
DBD::mysql::st execute failed: Table 'zm.Monitors' doesn't exist at /usr/local/bin/zmaudit.pl line 181.
Can't execute: Table 'zm.Monitors' doesn't exist at /usr/local/bin/zmaudit.pl line 181.
/tmp/zmdc.log:
Server starting at 03/10/12 18:09:45
'zmaudit.pl -d 900 -y' starting at 03/10/12 18:09:49, pid = 9246
'zmaudit.pl -d 900 -y' started at 03/10/12 18:09:49
'zmwatch.pl' starting at 03/10/12 18:09:49, pid = 9252
'zmwatch.pl' started at 03/10/12 18:09:49
/tmp/zmwatch.log:
Watchdog starting at 03/10/11 20:25:04
Watchdog pausing for 30 seconds
DBD::mysql::st execute failed: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) at /usr/local/bin/zmwatch.pl line 106.
Can't execute: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) at /usr/local/bin/zmwatch.pl line 106.
Watchdog starting at 03/10/12 15:53:31
Watchdog pausing for 30 seconds
Watchdog starting at 03/10/12 15:56:24
Watchdog pausing for 30 seconds
DBD::mysql::st execute failed: Table 'zm.Monitors' doesn't exist at /usr/local/bin/zmwatch.pl line 106.
Can't execute: Table 'zm.Monitors' doesn't exist at /usr/local/bin/zmwatch.pl line 106.
Watchdog starting at 03/10/12 16:38:28
Watchdog pausing for 30 seconds
DBD::mysql::st execute failed: Table 'zm.Monitors' doesn't exist at /usr/local/bin/zmwatch.pl line 106.
Can't execute: Table 'zm.Monitors' doesn't exist at /usr/local/bin/zmwatch.pl line 106.
Watchdog starting at 03/10/12 17:21:34
Watchdog pausing for 30 seconds
Watchdog starting at 03/10/12 18:04:03
Watchdog pausing for 30 seconds
Watchdog starting at 03/10/12 18:09:50
Watchdog pausing for 30 seconds
here is my php rpms:
php-dbg-client-2.10-6
php-pgsql-4.2.2-8.0.5
php-4.2.2-8.0.5
asp2php-0.76.2-3
php-dbg-server-2.10pl3-6
php-manual-4.2.2-8.0.5
php-snmp-4.2.2-8.0.5
php-imap-4.2.2-8.0.5
asp2php-gtk-0.76.2-3
php-dbg-base-2.10-4
php-mysql-4.2.2-8.0.5
php-ldap-4.2.2-8.0.5
php-odbc-4.2.2-8.0.5
php-devel-4.2.2-8.0.5
did I miss something?
cannot add new monitor
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
Re: cannot add new monitor
Hi Lijia,
A couple of things.
If you do 'mysql -u root -p zm' and then at the prompt type 'show tables;', what do you get?
Secondly, I think what you see on the web pages may be addressed in the README. If you look for short_open_tag you should hopefully find that section.
Cheers,
Phil,
A couple of things.
If you do 'mysql -u root -p zm' and then at the prompt type 'show tables;', what do you get?
Secondly, I think what you see on the web pages may be addressed in the README. If you look for short_open_tag you should hopefully find that section.
Cheers,
Phil,
Re: cannot add new monitor
This fixed my Add Monitor problem.
Same OS same setup exactly as this other individual...
Same OS same setup exactly as this other individual...