Page 1 of 1

HELP - recent ubuntu update uninstalled zoneminder

Posted: Fri Sep 24, 2010 8:01 pm
by barrydocks
just ran an update on ubuntu 8.04 LTS and the apache update has uninstalled zoneminder and dropped the mysql databaser. What is worse is I can't get apche to run after the reinstall Here are the errors:

Code: Select all

root@Fileserver:~# apache2ctl restart
Syntax error on line 4 of /etc/apache2/conf.d/zoneminder:
Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration
Also there is no zm directory in the www directory anymore!

Thanks :cry:

Posted: Sun Sep 26, 2010 11:19 am
by caladeira
Well, I've upgraded my system through webmin interface and now I discover that some packages have been removed.

Here what I've found on "/var/log/apt/history.log":

Code: Select all

Start-Date: 2010-09-25  20:04:51
Install: apache2-mpm-worker (2.2.14-5ubuntu8.2)
Upgrade: apache2.2-bin (2.2.14-5ubuntu8, 2.2.14-5ubuntu8.2), php5-gd (5.3.2-1ubuntu4.2, 5.3.2-1ubuntu4.5), apache2 (2.2.14-5ubuntu8, 2.2.14-5ubunt$
Remove: php5 (5.3.2-1ubuntu4.2), apache2-mpm-prefork (2.2.14-5ubuntu8), zoneminder (1.24.2-2build3), phpmyadmin (3.3.2-1), libapache2-mod-php5 (5.$
End-Date: 2010-09-25  20:05:55
After this I've tried to reinstall zoneminder with apt-get:

Code: Select all

$ sudo apt-get install zoneminder
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-headers-2.6.32-21 linux-headers-2.6.32-23 linux-headers-2.6.32-23-generic-pae linux-headers-2.6.32-21-generic-pae
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
  zoneminder
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/1,541kB of archives.
After this operation, 6,693kB of additional disk space will be used.
Selecting previously deselected package zoneminder.
(Reading database ... 133724 files and directories currently installed.)
Unpacking zoneminder (from .../zoneminder_1.24.2-2build3_i386.deb) ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
Setting up zoneminder (1.24.2-2build3) ...
Starting ZoneMinder: DBI connect('database=zm;host=localhost','zmuser',...) failed: Unknown database 'zm' at /usr/share/perl5/ZoneMinder/Config.pm line 89
Can't call method "prepare_cached" on an undefined value at /usr/share/perl5/ZoneMinder/Config.pm line 91.
BEGIN failed--compilation aborted at /usr/share/perl5/ZoneMinder/Config.pm line 100.
Compilation failed in require at /usr/share/perl5/ZoneMinder.pm line 33.
BEGIN failed--compilation aborted at /usr/share/perl5/ZoneMinder.pm line 33.
Compilation failed in require at /usr/bin/zmpkg.pl line 45.
BEGIN failed--compilation aborted at /usr/bin/zmpkg.pl line 45.
failure

invoke-rc.d: initscript zoneminder, action "start" failed.
dpkg: error processing zoneminder (--configure):
 subprocess installed post-installation script returned error exit status 255
Errors were encountered while processing:
 zoneminder
E: Sub-process /usr/bin/dpkg returned an error code (1)
I'm running Ubuntu server.10.04.1

Any one has an idea?

Thanks.

Re: HELP - recent ubuntu update uninstalled zoneminder

Posted: Mon Sep 27, 2010 2:41 pm
by savoy9020
There shouldn't be.. at least with 1.24..

It's an apache alias to the zm webroot..

Bill
barrydocks wrote:just ran an update on ubuntu 8.04 LTS and the apache update has uninstalled zoneminder and dropped the mysql databaser. What is worse is I can't get apche to run after the reinstall Here are the errors:

Code: Select all

root@Fileserver:~# apache2ctl restart
Syntax error on line 4 of /etc/apache2/conf.d/zoneminder:
Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration
Also there is no zm directory in the www directory anymore!

Thanks :cry:

Posted: Tue Sep 28, 2010 10:59 am
by caladeira
Well, with Peter Howard help, I've put my system up and running again.

Check this thread:
http://www.zoneminder.com/forums/viewto ... 4780#64780

Posted: Wed Oct 06, 2010 9:13 am
by barrydocks
Well, with Peter Howard help, I've put my system up and running again.

Check this thread:
http://www.zoneminder.com/forums/viewto ... 4780#64780
nope, still have the same error
There shouldn't be.. at least with 1.24..

It's an apache alias to the zm webroot..

Bill
How do I fix it?