Debian package: zmconfig.pl and Apache missing?

Support and queries relating to all previous versions of ZoneMinder
Locked
timjhl
Posts: 3
Joined: Sun Aug 21, 2005 1:16 pm
Location: Belgium

Debian package: zmconfig.pl and Apache missing?

Post by timjhl »

Hi,

I'm running (or, trying to run) ZoneMinder 1.21.3 (thanks Phil!) on Debian testing. I used the Debian package (thanks matrix!) to meet all dependencies, but I still have some problems...

When starting ZoneMinder, I get the following error:

Starting ZoneMinder: Bareword "ZM_PATH_LOGS" not allowed while "strict subs" in use at /usr/bin/zmpkg.pl line 77.
BEGIN not safe after errors--compilation aborted at /usr/bin/zmpkg.pl line 78.
failure

I read in the manual and on the fora that I should run zmconfig.pl twice. And here is my first problem: there is no zmconfig.pl present on my system. Was it left out because I don't need it when using the Debian package or did something go wrong?
The log path as described in zmconfig.txt in the doc section, is available.

Second, I was wondering how I can change the MySQL password for the zm user? I can change it in the database, but cannot find where I should change it for ZoneMinder.

A third thing that came to my attention, is that Apache seems to be missing on my system (I seem to have docs and config files, but no executables). Am I missing something or did something go wrong? And what should I install to get it running?

Thanks a lot for any help!


Cheers,
Tim
jfdill2
Posts: 5
Joined: Thu Aug 18, 2005 3:15 am
Location: MD, US

Post by jfdill2 »

zmconfig.pl should be in the source distribution where you built the software, not installed into the system.
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Installing from a package does not give you zmconfig.pl with is used in the source to configure everything.
You can change to user and password that zm uses to access the database in the file /etc/zm.conf
You can change the users and passwords in options under the users tab (only visable when you have ZM_OPT_USE_AUTH checked under the system tab (defualt login is admin:admin)
As far as apache, look to see if the httpd or apache startup script is there (/etc/init.d) this may yeild a clue to where your binaries are. If they are missing then you will need to obviously need to reinstall apache.
Regards,
Cordel
timjhl
Posts: 3
Joined: Sun Aug 21, 2005 1:16 pm
Location: Belgium

Post by timjhl »

I'm sure Apache isn't installed on my system and zmconfig.pl isn't available either.
It's logical for zmconfig.pl to not be available, since I installed from the package. But this means that Apache should be there (a dependency).

Since I'm getting this error:

Code: Select all

Starting ZoneMinder: Bareword "ZM_PATH_LOGS" not allowed while "strict subs" in use at /usr/bin/zmpkg.pl line 77.
BEGIN not safe after errors--compilation aborted at /usr/bin/zmpkg.pl line 78.
failure
and it was installed from a package, it can't have anything to do with zmconfig.pl, unless something went wrong with my install (which might be the case, since Apache is missing).

I just don't know where to look to find out what is causing the problem or how to solve it. Does anybody have any ideas?

Thanks a lot.

Cheers,
Tim
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

If you are sure that apache (and of coarse PHP) are not installed, then I would install them.
Also you may wish to check in the hints and tips topic for the required dependancies, but be aware that this list includes things that are needed to build and run zm so some of the packages you do not need.
Regards,
Cordel
Image
Image
3939663646337

It's better to keep your mouth shut and appear stupid than open it and remove all doubt.
-Mark Twain
timjhl
Posts: 3
Joined: Sun Aug 21, 2005 1:16 pm
Location: Belgium

Post by timjhl »

I installed Apache and PHP. Do you know if that should be installed by the Debian package?

I also looked for the other dependencies and I think everything should be in place. However, the error remains the same :-(
Any other ideas?


Thanks a lot for the help,
Tim
tim@pcs-alaska.com
Posts: 45
Joined: Fri May 06, 2005 7:30 pm
Location: Kenai, Alaska

Post by tim@pcs-alaska.com »

I tested the debian packages a few months back and I had to setup the Php, Apache, & Mysql packages before installing the zoneminder package.

Good luck,
Tim
Tim Jordan
ZoneMinder 1.22
Debian Sarge
P4 1.7Ghz, 512MB, 160GB HD
(3) Panisonic KX-HCM10 Network Cameras
Locked