No web interface after upgrade to 1.36.21

Discussions related to the 1.36.x series of ZoneMinder
User avatar
zSprawl
Posts: 17
Joined: Tue Aug 09, 2022 2:53 am

Re: No web interface after upgrade to 1.36.21

Post by zSprawl »

nah you and I are using older php, so he wrote an "if statement" to account for how dates are handled with older php.

I've already built a new Oracle Linux 8 box, so I should likely migrate soon anyhow, but this should tide me over for a while.

Thanks again.
User avatar
iconnor
Posts: 2880
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: No web interface after upgrade to 1.36.21

Post by iconnor »

The problem is php8.1. Our code no longer works on it. So each release has fixes.
User avatar
zSprawl
Posts: 17
Joined: Tue Aug 09, 2022 2:53 am

Re: No web interface after upgrade to 1.36.21

Post by zSprawl »

For what it's worth, the box you fixed for me is running CentOS 7 with PHP 5.

I built a new box when I ran into this using Oracle Linux 8 and PHP 7, and it hasn't had the issue.
nea1
Posts: 10
Joined: Thu Feb 25, 2016 10:45 am

Re: No web interface after upgrade to 1.36.21

Post by nea1 »

knight-of-ni wrote: Sun Aug 07, 2022 10:29 pm check if the php-intl package is installed:

Code: Select all

rpm -qa |grep php-intl
If it is not, then install it and restart httpd:

Code: Select all

sudo dnf install php-intl
sudo systemctl restart httpd
Please report back
Hi all.

I have the same issue with web interface after updating.
Running centos 7.

installing php-intl did not help.

Any ideas?
User avatar
zSprawl
Posts: 17
Joined: Tue Aug 09, 2022 2:53 am

Re: No web interface after upgrade to 1.36.21

Post by zSprawl »

Turn on errors in /etc/php.ini and review them /var/log/httpd/ssl_error.log
nea1
Posts: 10
Joined: Thu Feb 25, 2016 10:45 am

Re: No web interface after upgrade to 1.36.21

Post by nea1 »

Thanks for your reply.
Unfortunately there is nothing to review, i am not getting any entries trying to reach ZM URL.
Browser gives->
---
Not Found
The requested URL /zm/ was not found on this server.
---
Magic919
Posts: 1381
Joined: Wed Sep 18, 2013 6:56 am

Re: No web interface after upgrade to 1.36.21

Post by Magic919 »

Sounds like it lacks the ZM Apache config.
-
nea1
Posts: 10
Joined: Thu Feb 25, 2016 10:45 am

Re: No web interface after upgrade to 1.36.21

Post by nea1 »

Using default one

Code: Select all

[root@srv02 www]# ls -l /etc/httpd/conf.d/
total 32
-rw-r--r-- 1 root root 2926 Mar 24 16:57 autoindex.conf
-rw-r--r-- 1 root root  691 Apr  1  2020 php.conf
-rw-r--r-- 1 root root  366 Mar 24 16:58 README
-rw-r--r-- 1 root root 9443 Jan 13  2022 ssl.conf
-rw-r--r-- 1 root root 1252 Jan  7  2022 userdir.conf
-rw-r--r-- 1 root root  824 Jan 13  2022 welcome.conf
lrwxrwxrwx 1 root root   33 Aug 14 20:48 zoneminder.httpd.conf -> /etc/zm/www/zoneminder.httpd.conf
[root@srv02 www]# ls -l /etc/zm/www/
total 16
-rw-r--r--  1 root root  197 Jul 25 18:20 com.zoneminder.systemctl.rules.httpd
lrwxrwxrwx  1 root root   33 Aug 14 21:14 zoneminder.conf -> /etc/zm/www/zoneminder.httpd.conf
-rw-r--r--  1 root root 2298 Aug 14 21:36 zoneminder.httpd.conf
-rw-r--r--  1 root root 2423 Jul 25 18:20 zoneminder.httpd.conf.rpmnew
-rw-r--r--. 1 root root 2429 Jul 13  2019 zoneminder.httpd.conf.rpmsave
[root@srv02 www]#
i am starting to think this is something stupid...
Magic919
Posts: 1381
Joined: Wed Sep 18, 2013 6:56 am

Re: No web interface after upgrade to 1.36.21

Post by Magic919 »

It’s not using it.
-
doubledown00
Posts: 6
Joined: Tue Oct 26, 2021 12:20 pm

Re: No web interface after upgrade to 1.36.21

Post by doubledown00 »

I having the exact same problem as the first poster. Running RHEL 8.3. Upgraded via dnf to zoneminder-1.36.21-1.el8.x86_64.

/var/log/messages shows Zoneminder is analyzing cameras.
When try to go to /zm I get error 500.
ssl_access_log shows:
[15/Aug/2022:17:22:40 -0500] "GET /zm/ HTTP/1.1" 500 -

ssl_error_log shows nothing.

I ran through all the upgrade steps in the readme file. I didn't notice any files that needed changing. The database upgrade script did not throw out any errors.

I did the two suggestions at the beginning on this post. The "php-intl" install did not work as the package was not found. But it probably wouldn't have anyway as the system shows I'm running PHP 7.2.24-1.

The other suggestion to make a line change to "/usr/share/zoneminder/www/ajax/log.php" also did not work.

So what am I missing here?
Last edited by doubledown00 on Mon Aug 15, 2022 10:43 pm, edited 1 time in total.
User avatar
zSprawl
Posts: 17
Joined: Tue Aug 09, 2022 2:53 am

Re: No web interface after upgrade to 1.36.21

Post by zSprawl »

Not sure if it helps, but there is a php7.0-intl package.
nea1
Posts: 10
Joined: Thu Feb 25, 2016 10:45 am

Re: No web interface after upgrade to 1.36.21

Post by nea1 »

Magic919 wrote: Mon Aug 15, 2022 8:06 pm It’s not using it.
What can be the reason?
I moved it into /etc/httpd/conf.d/
also put testsite.conf into same directory, and httpd did catch it...
nea1
Posts: 10
Joined: Thu Feb 25, 2016 10:45 am

Re: No web interface after upgrade to 1.36.21

Post by nea1 »

zSprawl wrote: Mon Aug 15, 2022 10:42 pm Not sure if it helps, but there is a php7.0-intl package.
installed php7.3

Code: Select all

[root@srv02 conf.d]# rpm -qa |grep php
php-pecl-apcu-5.1.21-1.el7.remi.7.3.x86_64
php-gd-7.3.33-3.el7.remi.x86_64
php-json-7.3.33-3.el7.remi.x86_64
php-7.3.33-3.el7.remi.x86_64
php-xml-7.3.33-3.el7.remi.x86_64
php-cli-7.3.33-3.el7.remi.x86_64
php-pdo-7.3.33-3.el7.remi.x86_64
gd3php-2.3.3-7.el7.remi.x86_64
php-common-7.3.33-3.el7.remi.x86_64
php-intl-7.3.33-3.el7.remi.x86_64
php-process-7.3.33-3.el7.remi.x86_64
php-mysqlnd-7.3.33-3.el7.remi.x86_64
php-pear-1.10.13-1.el7.remi.noarch
same result...
Magic919
Posts: 1381
Joined: Wed Sep 18, 2013 6:56 am

Re: No web interface after upgrade to 1.36.21

Post by Magic919 »

nea1 wrote: Tue Aug 16, 2022 6:51 am
Magic919 wrote: Mon Aug 15, 2022 8:06 pm It’s not using it.
What can be the reason?
I moved it into /etc/httpd/conf.d/
also put testsite.conf into same directory, and httpd did catch it...
Dunno. There will be entries in your Apache logs I expect.

You could run some checks in Apache, like apachectl -S to see the vhosts.
-
nea1
Posts: 10
Joined: Thu Feb 25, 2016 10:45 am

Re: No web interface after upgrade to 1.36.21

Post by nea1 »

Thanks, all solved.
for some reason upgrade also updted my zoneminder.httpd.conf and I was dumb to notice that all path has been erased from there
Post Reply