https://server.com/zm shows white blank screen

Forum for questions and support relating to the 1.31.x releases only.
Locked
AncientAliens
Posts: 3
Joined: Tue Jun 26, 2018 4:50 pm

https://server.com/zm shows white blank screen

Post by AncientAliens »

It's been a 2 week ordeal just getting linux up and running! I'm using the latest Ubuntu server distro. I got SSH with keys running along with a basic LAMP setup (MySQL).

I ran the instructions under "Install Zoneminder on Ubuntu 18.04 with shell script" at https://wiki.zoneminder.com/Ubuntu_Serv ... e_easy_way (with corrections to the filename install script since the wiki author used the wrong filenames)

In any case, after I ran the script, I originally got the error "Unable to connect to ZM db.SQLSTATE[HY000] [1045] Access denied for user 'zmuser'@'localhost' (using password: YES)". I suspected it was a database connection error so I created a new MySQL user (I'm using Webmin) and assigned it ALL permissions to the ZM database. Then I modified the /etc/zm/zm.conf file to use the username/password I just created.

Now when I visit my server https://myserver.com/zm, it just returns a blank white screen.

I have no idea whatsoever what is wrong or how to fix it. I'm not Linux literate at all but I can follow instructions.
bbunge
Posts: 2934
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: https://server.com/zm shows white blank screen

Post by bbunge »

Try using http: unless you specifically added https: to Apache.

File name corrected in WIKI. I usually use just "install" for a file name.

Am running the install to make sure it still works. When you did the MySQL security did you accept the password plugin? If so you will need to use a complicated password for MySQL in Zoneminder and create the database manually.

Edit: Shell script ran successfully without modification. System up and running with three cameras added.

Oh, your post should have been in the Zoneminder 1.30.x area....
AncientAliens
Posts: 3
Joined: Tue Jun 26, 2018 4:50 pm

Re: https://server.com/zm shows white blank screen

Post by AncientAliens »

bbunge wrote: Wed Jun 27, 2018 1:24 am Try using http: unless you specifically added https: to Apache.
I did add HTTPS and it's working fine. I have a 2 virtual directories: one for the primary server (hello world) and one for Webmin on Port 10000. I tried HTTP but the configuration automatically forces HTTPS.
bbunge wrote: Wed Jun 27, 2018 1:24 amFile name corrected in WIKI. I usually use just "install" for a file name.
I'm so glad you made the install script. I just about gave up on ZM being so complicated to install. I'm using to running an EXE or MSI.
bbunge wrote: Wed Jun 27, 2018 1:24 amAm running the install to make sure it still works. When you did the MySQL security did you accept the password plugin? If so you will need to use a complicated password for MySQL in Zoneminder and create the database manually.
I hate to admit that I don't remember! I tend not to remember things like that. Is there some way to check? It appears that the script was able to log into the DB because there is a ZM db with lots of tables in there.
2018-06-26 22_36_57-(1) Edit Database — Webmin 1.881 on yaco2 (Ubuntu Linux 18.04).png
2018-06-26 22_36_57-(1) Edit Database — Webmin 1.881 on yaco2 (Ubuntu Linux 18.04).png (98.33 KiB) Viewed 3909 times
bbunge wrote: Wed Jun 27, 2018 1:24 amEdit: Shell script ran successfully without modification. System up and running with three cameras added.
I checked the HTML output of /zm and it is sending nothing... no headers, no body tags, no nothing.

EDIT: Something occurred to me... if I can see the database via Webmin, shouldn't ZM also be able to connect to the db?
AncientAliens
Posts: 3
Joined: Tue Jun 26, 2018 4:50 pm

Re: https://server.com/zm shows white blank screen

Post by AncientAliens »

bbunge wrote: Wed Jun 27, 2018 1:24 am Try using http: unless you specifically added https: to Apache.

File name corrected in WIKI. I usually use just "install" for a file name.

Am running the install to make sure it still works. When you did the MySQL security did you accept the password plugin? If so you will need to use a complicated password for MySQL in Zoneminder and create the database manually.

Edit: Shell script ran successfully without modification. System up and running with three cameras added.

Oh, your post should have been in the Zoneminder 1.30.x area....
I attempted to reinstall ZM and this time I paid attention to the password option - I did not select the password plugin. When I get to the step of visiting http://server-ip/zm, again it displays a blank HTML output (no code).
Locked