Page 1 of 1

Blank index page, fresh install

Posted: Tue May 02, 2023 4:55 am
by joea
New to ZM. Installed fresh OS, Suse LEAP 15.4 and a packaged version of ZM.

Seems to be "up" but when browsing to http://myip/zm just get a blank screen. No timeout, just blank.

If I browse to http://myip/index.html, I get the apache not file not found message. Same with variations of that.

If I browse to http://myip/index.php I get a blank screen, same as going to http://myip/zm, which make sense to me.

All the files in /usr/share/zoneminder/www/ are owned by root. That seems wrong. But I will wait for those in the know to tell me so.

Re: Blank index page, fresh install

Posted: Tue May 02, 2023 7:07 am
by dougmccrary
Try wwwrun:wwwrun

root won't work for sure.

Re: Blank index page, fresh install

Posted: Tue May 02, 2023 2:06 pm
by joea
dougmccrary wrote: Tue May 02, 2023 7:07 am Try wwwrun:wwwrun

root won't work for sure.
Thanks. Did not change behavior that I noticed. But I do find all subdirectories and files are also root:root. Would it be sane/safe to change those as well?

Perhaps I made an wrong choice when installing that caused this?

Re: Blank index page, fresh install

Posted: Tue May 02, 2023 2:48 pm
by joea
After playing with wget I discovered "internal server error 500" is produced. Seems to be related to a php problem.

After turning on error reporting, trying to access page gives:

"Fatal error: Uncaught Error: Class 'IntlDateFormatter' not found in /usr/share/zoneminder/www/includes/config.php:144 Stack trace: #0 /usr/share/zoneminder/www/index.php(45): require_once() #1 {main} thrown in /usr/share/zoneminder/www/includes/config.php on line 144".

which lists as "-rw-r--r-- 1 root root 9637 Apr 28 14:12 /usr/share/zoneminder/www/includes/config.php", which, may have incorrect owner/group, but still got read sufficiently to pop up that error.

So, while have more information now, the solution is not apparent, and likely will not clear with additional coffee consumption. But, it is worth a try.

ISTR reading something about having to diddle this file for things to work, but, also that it was no longer necessary in later versions. I may be conflating something(s) here.

Re: Blank index page, fresh install

Posted: Tue May 02, 2023 3:32 pm
by Magic919
Try ot install php-intl.

Re: Blank index page, fresh install

Posted: Tue May 02, 2023 3:45 pm
by joea
Magic919 wrote: Tue May 02, 2023 3:32 pm Try ot install php-intl.
Thanks, that got me much further. It was actually php7-intl, which stumped me for a few minutes.