blank webpage zm URL

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
blaczero
Posts: 29
Joined: Sat Sep 21, 2024 12:19 pm

blank webpage zm URL

Post by blaczero »

just installed clean from a newly imaged raspberry pi from here: https://raspberrytips.com/install-zonem ... pberry-pi/

getting blank webpage (as in, all white, no info/errors) going to http://192.168.0.253/zm/

default apache webiste works at http://192.168.0.253/

nothing interesting in /var/log/zm logs

any ideas?

/var/log/apache2/error.log
[Thu Sep 26 09:35:45.918905 2024] [mpm_event:notice] [pid 14412:tid 14412] AH00489: Apache/2.4.62 (Debian) configured -- resuming normal operations
[Thu Sep 26 09:35:45.919287 2024] [core:notice] [pid 14412:tid 14412] AH00094: Command line: '/usr/sbin/apache2'
[Thu Sep 26 09:42:34.407974 2024] [mpm_event:notice] [pid 14412:tid 14412] AH00493: SIGUSR1 received. Doing graceful restart
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using ::1. Set the 'ServerName' directive globally to suppress this message
[Thu Sep 26 09:42:34.420692 2024] [mpm_event:notice] [pid 14412:tid 14412] AH00489: Apache/2.4.62 (Debian) configured -- resuming normal operations
[Thu Sep 26 09:42:34.420747 2024] [core:notice] [pid 14412:tid 14412] AH00094: Command line: '/usr/sbin/apache2'
[Thu Sep 26 10:00:30.410386 2024] [mpm_event:notice] [pid 14412:tid 14412] AH00493: SIGUSR1 received. Doing graceful restart
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using ::1. Set the 'ServerName' directive globally to suppress this message
[Thu Sep 26 10:00:30.427236 2024] [mpm_event:notice] [pid 14412:tid 14412] AH00489: Apache/2.4.62 (Debian) configured -- resuming normal operations
[Thu Sep 26 10:00:30.427288 2024] [core:notice] [pid 14412:tid 14412] AH00094: Command line: '/usr/sbin/apache2'
alladmin@orangepi5:/etc/mysql/mariadb.conf.d$ sudo hostname zerozm.ddns.net
alladmin@orangepi5:/etc/mysql/mariadb.conf.d$ sudo tail -n 50 /var/log/apache2/error.log
[Thu Sep 26 09:35:45.918905 2024] [mpm_event:notice] [pid 14412:tid 14412] AH00489: Apache/2.4.62 (Debian) configured -- resuming normal operations
[Thu Sep 26 09:35:45.919287 2024] [core:notice] [pid 14412:tid 14412] AH00094: Command line: '/usr/sbin/apache2'
[Thu Sep 26 09:42:34.407974 2024] [mpm_event:notice] [pid 14412:tid 14412] AH00493: SIGUSR1 received. Doing graceful restart
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using ::1. Set the 'ServerName' directive globally to suppress this message
[Thu Sep 26 09:42:34.420692 2024] [mpm_event:notice] [pid 14412:tid 14412] AH00489: Apache/2.4.62 (Debian) configured -- resuming normal operations
[Thu Sep 26 09:42:34.420747 2024] [core:notice] [pid 14412:tid 14412] AH00094: Command line: '/usr/sbin/apache2'
[Thu Sep 26 10:00:30.410386 2024] [mpm_event:notice] [pid 14412:tid 14412] AH00493: SIGUSR1 received. Doing graceful restart
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using ::1. Set the 'ServerName' directive globally to suppress this message
[Thu Sep 26 10:00:30.427236 2024] [mpm_event:notice] [pid 14412:tid 14412] AH00489: Apache/2.4.62 (Debian) configured -- resuming normal operations
[Thu Sep 26 10:00:30.427288 2024] [core:notice] [pid 14412:tid 14412] AH00094: Command line: '/usr/sbin/apache2'
blaczero
Posts: 29
Joined: Sat Sep 21, 2024 12:19 pm

Re: blank webpage zm URL

Post by blaczero »

even when I go to http://192.168.0.253/zm/cgi-bin/nph-zms it's still blank, although black, not white.
zm-error1.png
zm-error1.png (11.6 KiB) Viewed 5221 times
here is the white page when I go to http://192.168.0.253/zm
zm-error2.png
zm-error2.png (5.96 KiB) Viewed 5221 times
maybe something with cgi? logs aren't showing much, where should I look to see what the problem is?
User avatar
iconnor
Posts: 3197
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: blank webpage zm URL

Post by iconnor »

Check /var/log/zm/web_php.log

I assume since you got a blank page you actually did the a2enconf zoneminder.

Normally a blank page means php crashed, and there should be more info in the apache logs, but you posted them and we don't see anything.
blaczero
Posts: 29
Joined: Sat Sep 21, 2024 12:19 pm

Re: blank webpage zm URL

Post by blaczero »

sudo a2enconf zoneminder
Conf zoneminder already enabled

------------

sudo ls /var/log/zm/
zmdc.log zmfilter_2.log zms_e0.log zmwatch.log
zmfilter_1.log zmpkg.log zmstats.log

------------

$ ps -ef | grep zm
www-data 3760092 1 0 08:33 ? 00:00:00 /usr/bin/perl -wT /usr/bin/zmdc.pl startup
www-data 3760122 3760092 1 08:33 ? 00:00:00 /usr/bin/perl -wT /usr/bin/zmfilter.pl --filter_id=1 --daemon
www-data 3760126 3760092 1 08:33 ? 00:00:00 /usr/bin/perl -wT /usr/bin/zmfilter.pl --filter_id=2 --daemon
www-data 3760132 3760092 0 08:33 ? 00:00:00 /usr/bin/perl -wT /usr/bin/zmwatch.pl
www-data 3760136 3760092 0 08:33 ? 00:00:00 /usr/bin/perl -wT /usr/bin/zmstats.pl

-------------

no web_php.log
JDS
Posts: 6
Joined: Sat Sep 28, 2024 1:08 am

Re: blank webpage zm URL

Post by JDS »

Hey, I have got the same issue after updating Ubuntu Server to 24.04, however my apache error log (/var/log/apache2/error.log) contains the following:

Code: Select all

[php:error] [pid 1042] [client 192.168.1.4:60282] PHP Fatal error:  Uncaught Error: Found unconstructed IntlDateFormatter in /usr/share/zoneminder/www/includes/config.php:168\nStack trace:\n#0 /usr/share/zoneminder/www/includes/config.php(168): IntlDateFormatter->setPattern()\n#1 /usr/share/zoneminder/www/index.php(51): require_once('...')\n#2 {main}\n  thrown in /usr/share/zoneminder/www/includes/config.php on line 168
User avatar
iconnor
Posts: 3197
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: blank webpage zm URL

Post by iconnor »

sudo apt install php-intl
sudo systemctl reload apache2
blaczero
Posts: 29
Joined: Sat Sep 21, 2024 12:19 pm

Re: blank webpage zm URL

Post by blaczero »

iconnor wrote: Sat Sep 28, 2024 2:14 pm sudo apt install php-intl
sudo systemctl reload apache2
page is still blank after this.

Don't know if this means anything but I can display

http://192.168.0.253/zm/robots.txt in browser
User-agent: *
Disallow: /
###

and for the heck of it

$ sudo apt list php
Listing... Done
php/oldstable,oldstable 2:7.4+76 all
blaczero
Posts: 29
Joined: Sat Sep 21, 2024 12:19 pm

Re: blank webpage zm URL

Post by blaczero »

Getting this in Chromium browser, still blank in firefox

just displaying index.php...
zm-error3.png
zm-error3.png (44.81 KiB) Viewed 5003 times
should I try and repair php?
JDS
Posts: 6
Joined: Sat Sep 28, 2024 1:08 am

Re: blank webpage zm URL

Post by JDS »

Same here, php-intl is already installed.
blaczero
Posts: 29
Joined: Sat Sep 21, 2024 12:19 pm

Re: blank webpage zm URL

Post by blaczero »

apt install php

working now... problem is i'm on 1.34 from my repository. how do I get to 1.36?
JDS
Posts: 6
Joined: Sat Sep 28, 2024 1:08 am

Re: blank webpage zm URL

Post by JDS »

Still no joy on my end. I am running 1.36. Did you install from the PPA? You probably just need to update your software sources then.
JDS
Posts: 6
Joined: Sat Sep 28, 2024 1:08 am

Re: blank webpage zm URL

Post by JDS »

I've done some more digging but still haven't been successful in finding a solution. I wonder whether there is an issue with compatibility with PHP 8.3 which ships with Ubuntu Server 24.04.1. I might end up having to reinstall the entire VM.
JDS
Posts: 6
Joined: Sat Sep 28, 2024 1:08 am

Re: blank webpage zm URL

Post by JDS »

Having left this for a while, it seems to have fixed itself with an update of some package. All back to normal... pheew, I was dreading having to set this all up again.
Post Reply