looking in apache logs I get this
It looks to me ( but ive no idea what im doing really ) that its not connecting to the database .DBI connect('database=zm;host=localhost','zm',...) failed: Lost connection to MySQL server during query at /usr/lib/perl5/site_perl/5.8.8/ZoneMinder/Config.pm line 89
Can't call method "prepare_cached" on an undefined value at /usr/lib/perl5/site_perl/5.8.8/ZoneMinder/Config.pm line 91.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/ZoneMinder/Config.pm line 100.
Compilation failed in require at /usr/lib/perl5/site_perl/5.8.8/ZoneMinder.pm line 33.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/ZoneMinder.pm line 33.
Compilation failed in require at /usr/bin/zmdc.pl line 50.
BEGIN failed--compilation aborted at /usr/bin/zmdc.pl line 50.
DBI connect('database=zm;host=localhost','zm',...) failed: Lost connection to MySQL server during query at /usr/lib/perl5/site_perl/5.8.8/ZoneMinder/Config.pm line 89
Can't call method "prepare_cached" on an undefined value at /usr/lib/perl5/site_perl/5.8.8/ZoneMinder/Config.pm line 91.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/ZoneMinder/Config.pm line 100.
Compilation failed in require at /usr/lib/perl5/site_perl/5.8.8/ZoneMinder.pm line 33.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/ZoneMinder.pm line 33.
Compilation failed in require at /usr/bin/zmdc.pl line 50.
BEGIN failed--compilation aborted at /usr/bin/zmdc.pl line 50.
[Fri Feb 16 18:54:06 2007] [error] [client 60.216.232.97] script '/var/www/localhost/htdocs/proxygrade.php' not found or unable to stat, referer: http://www.proxygrade.com/proxygrade.ph ... 3698723D3E
DBI connect('database=zm;host=localhost','zm',...) failed: Lost connection to MySQL server during query at /usr/lib/perl5/site_perl/5.8.8/ZoneMinder/Config.pm line 89
Can't call method "prepare_cached" on an undefined value at /usr/lib/perl5/site_perl/5.8.8/ZoneMinder/Config.pm line 91.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/ZoneMinder/Config.pm line 100.
Compilation failed in require at /usr/lib/perl5/site_perl/5.8.8/ZoneMinder.pm line 33.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/ZoneMinder.pm line 33.
Compilation failed in require at /usr/bin/zmdc.pl line 50.
BEGIN failed--compilation aborted at /usr/bin/zmdc.pl line 50.
jpegtopnm: Unable to open file 'events/1/1/001-capture.jpg' for reading. fopen() returns errno 2 (No such file or directory)
pnmscalefixed: Error reading magic number from Netpbm image stream. Most often, this means your input file is empty.
pnmtojpeg: Error reading magic number from Netpbm image stream. Most often, this means your input file is empty.
jpegtopnm: Unable to open file 'events/1/1/002-capture.jpg' for reading. fopen() returns errno 2 (No such file or directory)
pnmscalefixed: Error reading magic number from Netpbm image stream. Most often, this means your input file is empty.
pnmtojpeg: Error reading magic number from Netpbm image stream. Most often, this means your input file is empty.
jpegtopnm: Unable to open file 'events/1/1/003-capture.jpg' for reading. fopen() returns errno 2 (No such file or directory)
pnmscalefixed: Error reading magic number from Netpbm image stream. Most often, this means your input file is empty.
pnmtojpeg: Error reading magic number from Netpbm image stream. Most often, this means your input file is empty.
jpegtopnm: Unable to open file 'events/1/1/004-capture.jpg' for reading. fopen() returns errno 2 (No such file or directory)
pnmscalefixed: Error reading magic number from Netpbm image stream. Most often, this means your input file is empty.
pnmtojpeg: Error reading magic number from Netpbm image stream. Most often, this means your input file is empty.
jpegtopnm: Unable to open file 'events/1/1/005-capture.jpg' for reading. fopen() returns errno 2 (No such file or directory)
pnmscalefixed: Error reading magic number from Netpbm image stream. Most often, this means your input file is empty.
pnmtojpeg: Error reading magic number from Netpbm image stream. Most often, this means your input file is empty.
jpegtopnm: Unable to open file 'events/1/1/006-capture.jpg' for reading. fopen() returns errno 2 (No such file or directory)
pnmscalefixed: Error reading magic number from Netpbm image stream. Most often, this means your input file is empty.
pnmtojpeg: Error reading magic number from Netpbm image stream. Most often, this means your input file is empty.
jpegtopnm: Unable to open file 'events/1/1/007-capture.jpg' for reading. fopen() returns errno 2 (No such file or directory)
pnmscalefixed: Error reading magic number from Netpbm image stream. Most often, this means your input file is empty.
pnmtojpeg: Error reading magic number from Netpbm image stream. Most often, this means your input file is empty.
jpegtopnm: Unable to open file 'events/1/1/008-capture.jpg' for reading. fopen() returns errno 2 (No such file or directory)
pnmscalefixed: Error reading magic number from Netpbm image stream. Most often, this means your input file is empty.
pnmtojpeg: Error reading magic number from Netpbm image stream. Most often, this means your input file is empty.
jpegtopnm: Unable to open file 'events/1/1/009-capture.jpg' for reading. fopen() returns errno 2 (No such file or directory)
pnmscalefixed: Error reading magic number from Netpbm image stream. Most often, this means your input file is empty.
pnmtojpeg: Error reading magic number from Netpbm image stream. Most often, this means your input file is empty.
jpegtopnm: Unable to open file 'events/1/1/010-capture.jpg' for reading. fopen() returns errno 2 (No such file or directory)
pnmscalefixed: Error reading magic number from Netpbm image stream. Most often, this means your input file is empty.
pnmtojpeg: Error reading magic number from Netpbm image stream. Most often, this means your input file is empty.
jpegtopnm: Unable to open file 'events/1/1/011-capture.jpg' for reading. fopen() returns errno 2 (No such file or directory)
pnmscalefixed: Error reading magic number from Netpbm image stream. Most often, this means your input file is empty.
pnmtojpeg: Error reading magic number from Netpbm image stream. Most often, this means your input file is empty.
jpegtopnm: Unable to open file 'events/1/1/012-capture.jpg' for reading. fopen() returns errno 2 (No such file or directory)
pnmscalefixed: Error reading magic number from Netpbm image stream. Most often, this means your input file is empty.
pnmtojpeg: Error reading magic number from Netpbm image stream. Most often, this means your input file is empty.
jpegtopnm: Unable to open file 'events/1/1/013-capture.jpg' for reading. fopen() returns errno 2 (No such file or directory)
pnmscalefixed: Error reading magic number from Netpbm image stream. Most often, this means your input file is empty.
pnmtojpeg: Error reading magic number from Netpbm image stream. Most often, this means your input file is empty.
jpegtopnm: Unable to open file 'events/1/1/014-capture.jpg' for reading. fopen() returns errno 2 (No such file or directory)
pnmscalefixed: Error reading magic number from Netpbm image stream. Most often, this means your input file is empty.
pnmtojpeg: Error reading magic number from Netpbm image stream. Most often, this means your input file is empty.
jpegtopnm: Unable to open file 'events/1/1/015-capture.jpg' for reading. fopen() returns errno 2 (No such file or directory)
pnmscalefixed: Error reading magic number from Netpbm image stream. Most often, this means your input file is empty.
pnmtojpeg: Error reading magic number from Netpbm image stream. Most often, this means your input file is empty.
jpegtopnm: Unable to open file 'events/1/1/016-capture.jpg' for reading. fopen() returns errno 2 (No such file or directory)
pnmscalefixed: Error reading magic number from Netpbm image stream. Most often, this means your input file is empty.
pnmtojpeg: Error reading magic number from Netpbm image stream. Most often, this means your input file is empty.
jpegtopnm: Unable to open file 'events/1/4/001-capture.jpg' for reading. fopen() returns errno 2 (No such file or directory)
pnmscalefixed: Error reading magic number from Netpbm image stream. Most often, this means your input file is empty.
pnmtojpeg: Error reading magic number from Netpbm image stream. Most often, this means your input file is empty.
jpegtopnm: Unable to open file 'events/1/4/002-capture.jpg' for reading. fopen() returns errno 2 (No such file or directory)
pnmscalefixed: Error reading magic number from Netpbm image stream. Most often, this means your input file is empty.
pnmtojpeg: Error reading magic number from Netpbm image stream. Most often, this means your input file is empty.
jpegtopnm: Unable to open file 'events/1/4/003-capture.jpg' for reading. fopen() returns errno 2 (No such file or directory)
pnmscalefixed: Error reading magic number from Netpbm image stream. Most often, this means your input file is empty.
pnmtojpeg: Error reading magic number from Netpbm image stream. Most often, this means your input file is empty.
jpegtopnm: Unable to open file 'events/1/4/004-capture.jpg' for reading. fopen() returns errno 2 (No such file or directory)
pnmscalefixed: Error reading magic number from Netpbm image stream. Most often, this means your input file is empty.
pnmtojpeg: Error reading magic number from Netpbm image stream. Most often, this means your input file is empty.
jpegtopnm: Unable to open file 'events/1/4/005-capture.jpg' for reading. fopen() returns errno 2 (No such file or directory)
pnmscalefixed: Error reading magic number from Netpbm image stream. Most often, this means your input file is empty.
pnmtojpeg: Error reading magic number from Netpbm image stream. Most often, this means your input file is empty.
jpegtopnm: Unable to open file 'events/1/4/006-capture.jpg' for reading. fopen() returns errno 2 (No such file or directory)
pnmscalefixed: Error reading magic number from Netpbm image stream. Most often, this means your input file is empty.
pnmtojpeg: Error reading magic number from Netpbm image stream. Most often, this means your input file is empty.
jpegtopnm: Unable to open file 'events/1/4/007-capture.jpg' for reading. fopen() returns errno 2 (No such file or directory)
pnmscalefixed: Error reading magic number from Netpbm image stream. Most often, this means your input file is empty.
pnmtojpeg: Error reading magic number from Netpbm image stream. Most often, this means your input file is empty.
jpegtopnm: Unable to open file 'events/1/4/008-capture.jpg' for reading. fopen() returns errno 2 (No such file or directory)
pnmscalefixed: Error reading magic number from Netpbm image stream. Most often, this means your input file is empty.
pnmtojpeg: Error reading magic number from Netpbm image stream. Most often, this means your input file is empty.
jpegtopnm: Unable to open file 'events/1/4/009-capture.jpg' for reading. fopen() returns errno 2 (No such file or directory)
pnmscalefixed: Error reading magic number from Netpbm image stream. Most often, this means your input file is empty.
pnmtojpeg: Error reading magic number from Netpbm image stream. Most often, this means your input file is empty.
jpegtopnm: Unable to open file 'events/1/4/010-capture.jpg' for reading. fopen() returns errno 2 (No such file or directory)
pnmscalefixed: Error reading magic number from Netpbm image stream. Most often, this means your input file is empty.
pnmtojpeg: Error reading magic number from Netpbm image stream. Most often, this means your input file is empty.
jpegtopnm: Unable to open file 'events/1/4/011-capture.jpg' for reading. fopen() returns errno 2 (No such file or directory)
pnmscalefixed: Error reading magic number from Netpbm image stream. Most often, this means your input file is empty.
pnmtojpeg: Error reading magic number from Netpbm image stream. Most often, this means your input file is empty.
jpegtopnm: Unable to open file 'events/1/4/012-capture.jpg' for reading. fopen() returns errno 2 (No such file or directory)
pnmscalefixed: Error reading magic number from Netpbm image stream. Most often, this means your input file is empty.
pnmtojpeg: Error reading magic number from Netpbm image stream. Most often, this means your input file is empty.
jpegtopnm: Unable to open file 'events/1/4/013-capture.jpg' for reading. fopen() returns errno 2 (No such file or directory)
pnmscalefixed: Error reading magic number from Netpbm image stream. Most often, this means your input file is empty.
pnmtojpeg: Error reading magic number from Netpbm image stream. Most often, this means your input file is empty.
jpegtopnm: Unable to open file 'events/1/4/014-capture.jpg' for reading. fopen() returns errno 2 (No such file or directory)
pnmscalefixed: Error reading magic number from Netpbm image stream. Most often, this means your input file is empty.
pnmtojpeg: Error reading magic number from Netpbm image stream. Most often, this means your input file is empty.
jpegtopnm: Unable to open file 'events/1/4/015-capture.jpg' for reading. fopen() returns errno 2 (No such file or directory)
pnmscalefixed: Error reading magic number from Netpbm image stream. Most often, this means your input file is empty.
pnmtojpeg: Error reading magic number from Netpbm image stream. Most often, this means your input file is empty.
jpegtopnm: Unable to open file 'events/1/4/016-capture.jpg' for reading. fopen() returns errno 2 (No such file or directory)
pnmscalefixed: Error reading magic number from Netpbm imabut ge stream. Most often, this means your input file is empty.
pnmtojpeg: Error reading magic number from Netpbm image stream. Most often, this means your input file is empty.
But I can connect to the database 'manually' with the details in etc/zm.conf (this is a gentoo install);
How to debug it ?
[/code]chickcam apache2 # mysql -u zm -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 30188 to server version: 5.0.26-log
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> use zm;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
mysql> show tables ;
+----------------+
| Tables_in_zm |
+----------------+
| Config |
| ControlPresets |
| Controls |
| Devices |
| Events |
| Filters |
| Frames |
| Groups |
| MonitorPresets |
| Monitors |
| States |
| Stats |
| TriggersX10 |
| Users |
| ZonePresets |
| Zones |
+----------------+
16 rows in set (0.00 sec)
mysql> [/code]