Page 1 of 1

Debian package: zmconfig.pl and Apache missing?

Posted: Sun Aug 21, 2005 1:22 pm
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

Posted: Tue Aug 23, 2005 2:43 pm
by jfdill2
zmconfig.pl should be in the source distribution where you built the software, not installed into the system.

Posted: Tue Aug 23, 2005 5:23 pm
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

Posted: Thu Aug 25, 2005 7:10 pm
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

Posted: Fri Aug 26, 2005 2:18 am
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

Posted: Fri Aug 26, 2005 9:51 pm
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

Posted: Mon Aug 29, 2005 6:40 pm
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