RasperryPi 5 installation roadblock (solved)

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
fairfacts
Posts: 16
Joined: Fri Feb 07, 2025 7:42 pm

RasperryPi 5 installation roadblock (solved)

Post by fairfacts »

Solution: add port in the URL localhost:8080/zm

404 error in browser for localhost/zm
default Appache page on browser from localhost:8080 (apache is configured and running correctly):
"Apache2 Debian Default Page
It works!
This is the default welcome page used to test the correct operation of the Apache2 server after installation on Debian systems. If you can read this page, it means that the Apache HTTP server installed at this site is working properly. You should replace this file (located at /var/www/html/index.html) before continuing to operate your HTTP server.

If you are a normal user of this web site and don't know what this page is about, this probably means that the site is currently unavailable due to maintenance. If the problem persists, please contact the site's administrator."

I followed the Debian bookworm instructions for Zoneminder install from here:https://zoneminder.readthedocs.io/en/st ... 2-bookworm
I had to change the port from 80 to 8080 since I share the Pi with Homeassistant and pihole

no errors from zoneminder start commands, Status:
sudo systemctl status zoneminder.service
● zoneminder.service - ZoneMinder CCTV recording and surveillance system
Loaded: loaded (/lib/systemd/system/zoneminder.service; enabled; preset: enabled)
Active: active (running) since Fri 2025-02-07 15:34:27 EST; 19s ago
Process: 57555 ExecStart=/usr/bin/zmpkg.pl start (code=exited, status=0/SUCCESS)
Main PID: 57571 (zmdc.pl)
Tasks: 5 (limit: 4755)
CPU: 12.330s
CGroup: /system.slice/zoneminder.service
├─57571 /usr/bin/perl -wT /usr/bin/zmdc.pl startup
├─57602 /usr/bin/perl -wT /usr/bin/zmfilter.pl --filter_id=1 --daemon
├─57607 /usr/bin/perl -wT /usr/bin/zmfilter.pl --filter_id=2 --daemon
├─57613 /usr/bin/perl -wT /usr/bin/zmwatch.pl
└─57618 /usr/bin/perl -wT /usr/bin/zmstats.pl

Feb 07 15:34:24 raspberrypi sudo[57603]: root : PWD=/usr/share/zoneminder/www ; USER=www-data ; COMMAND=/usr/bin/zmdc.pl start zmfilter.pl --filter_id=2 --daemon
Feb 07 15:34:24 raspberrypi sudo[57603]: pam_unix(sudo:session): session opened for user www-data(uid=33) by (uid=0)
Feb 07 15:34:25 raspberrypi sudo[57603]: pam_unix(sudo:session): session closed for user www-data
Feb 07 15:34:25 raspberrypi sudo[57608]: root : PWD=/usr/share/zoneminder/www ; USER=www-data ; COMMAND=/usr/bin/zmdc.pl start zmwatch.pl
Feb 07 15:34:25 raspberrypi sudo[57608]: pam_unix(sudo:session): session opened for user www-data(uid=33) by (uid=0)
Feb 07 15:34:26 raspberrypi sudo[57608]: pam_unix(sudo:session): session closed for user www-data
Feb 07 15:34:26 raspberrypi sudo[57614]: root : PWD=/usr/share/zoneminder/www ; USER=www-data ; COMMAND=/usr/bin/zmdc.pl start zmstats.pl
Feb 07 15:34:26 raspberrypi sudo[57614]: pam_unix(sudo:session): session opened for user www-data(uid=33) by (uid=0)
Feb 07 15:34:27 raspberrypi sudo[57614]: pam_unix(sudo:session): session closed for user www-data
Feb 07 15:34:27 raspberrypi systemd[1]: Started zoneminder.service - ZoneMinder CCTV recording and surveillance system.

nothing is appearing in a log file on the PI when I hit the page its simply file not found (and apparently not writing to a log). (Searched for timestamp on .log files)

stuck ... help ?
Last edited by fairfacts on Sat Feb 08, 2025 8:58 pm, edited 2 times in total.
User avatar
iconnor
Posts: 3328
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: RasperryPi 5 installation roadblock

Post by iconnor »

You missed the part where you configure apache.

Try a2enconf zoneminder
bbunge
Posts: 2967
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: RasperryPi 5 installation roadblock

Post by bbunge »

You do not need to change the port. ZM uses http://ip-address/zm

You can also use these instructions for an RPI: https://wiki.zoneminder.com/Debian_12_B ... and_1.37.x
fairfacts
Posts: 16
Joined: Fri Feb 07, 2025 7:42 pm

Re: RasperryPi 5 installation roadblock

Post by fairfacts »

I got it this morning !
I went through several sets of instructions and tested apache and that my zoneminder was running cleanly. I thought it was a config error on apache that was not 'pointing' at the zoneminder directories but I spent hours poring through the configs and eventually decided to be more explicit in the URL and specify the port (I though the config file that is configured to 8080 would have brought this but apparently not)

The issue is if you DONT use Port 80 then the web URL needs to have the PORT inserted in the URL string (maybe you need it for 80 but I doubt it)

http://IP Address:8080/zm/
And it popped right up (from anywhere, not just the local machine)

So I am up...and now fighting to add generic 10 year old IP based cameras that want to use activeX for their local app. I suspect a couple have failed and or the cat6 cabling has failed (I redid most of the terminations because my contractors work wasnt good enough but not all).
If I can get 1 working I may pull them down and have them next to me to verify the hardware works (one I know the IR transmitters have failed over time)

Anyone know how I can mark my post as closed ?
bbunge
Posts: 2967
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: RasperryPi 5 installation roadblock

Post by bbunge »

You can amend the post title with (solved) or something like that.
I feel for you trying to configure the old ActiveX cams. I have not done any of those in a while. I suppose if needed one could install a copy of Windows 7 on an old PC to get Internet Explorer. Otherwise check the Zoneminder WIKI (https://wiki.zoneminder.com/Welcome) for your camera model and Zoneminder settings.
fairfacts
Posts: 16
Joined: Fri Feb 07, 2025 7:42 pm

Re: RasperryPi 5 installation roadblock

Post by fairfacts »

I pulled one that wasnt getting an IP to check. Opened the shell (its an inside camera looking down the stairwell at the front door so no daylight or water) and the wiring from the POE adapter to the camera boards has simply lost almost ALL of its insulation inside the camera shell. I separated the wires as best possible but this one is surely dead
Attachments
IMG_E2144[2].JPG
IMG_E2144[2].JPG (725.92 KiB) Viewed 5370 times
Post Reply