ZM Console blank white screen

Forum for questions and support relating to the 1.30.x releases only.
Post Reply
Andy-VE4PER
Posts: 4
Joined: Sat Sep 22, 2018 8:21 pm

ZM Console blank white screen

Post by Andy-VE4PER » Sat Sep 22, 2018 8:31 pm

I just completed install with MySQL database. All steps went well per instructions however when localhost/zm is accessed using browser it just shows a blank white screen. php.ini short_open_tag set to ON. Accessing database using phpmyadmin shows zm database and user were properly created.
Attempting to use a LOREX QL440 capture card. OS is ubuntuStudio 18.04LTS full updates 64 bit with 16G RAM.

Even with no cameras live I would have expected at least a GUI with some sort of config or option selections be available; but nothing at all.
Any tips would be a help; thanks

bbunge
Posts: 2153
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: ZM Console blank white screen

Post by bbunge » Sat Sep 22, 2018 9:11 pm

What install instructions did you use?

Andy-VE4PER
Posts: 4
Joined: Sat Sep 22, 2018 8:21 pm

Re: ZM Console blank white screen

Post by Andy-VE4PER » Sat Sep 22, 2018 11:04 pm

#1 https://wiki.zoneminder.com/Ubuntu_Serv ... e_easy_way <-----*****

#2 https://wiki.zoneminder.com/Shell_scrip ... all-bionic

#3 https://zoneminder.readthedocs.io/en/st ... tionguide/

#4 https://zoneminder.readthedocs.io/en/st ... buntu.html

#5 viewtopic.php?t=27098

#6 https://www.howtoforge.com/video_survei ... der_ubuntu


Primarily used step 1 above. When that did not appear to work I did a few google searches wrt "white screen" which resulted in setting php.ini setting described in original post as well as setting time zone. When that didn't work either I looked through steps 2 to 6 for a possible hint or solution without success. I un-installed it and tried again using the wget add ppa procedure that referenced the web site here as the ppa source.
https://launchpad.net/~iconnor/+archive ... zoneminder which is current one now. {1.30.4-bionic phpmyadmin is 4.4.6.6.5 php is 1:7.2+60ubuntu1 apache2 2.4.29-1ubuntu4.3 mysql (client & server) 5.7

There was also another install instruction set suggesting installing a mariadb which would uninstall MySQL which I could not do because this machine is online feeding Personal Weather data from my home weather station (and that uses MYSQL) to NOAA/CWOP and WeatherUnderground as well as my web site. The video capture feed I am trying to get working here is so I can combine residential security as well as a live web cam feed to the weather web site for visibility reference info esp during storm events.

Next step was to work through this; https://zoneminder.readthedocs.io/en/st ... arted.html but no GUI showed up to be able to follow these steps.

Looks like nginx/1.14.0 (Ubuntu) has something wrong now as installing zoneminder the second time has screwed up the phpmyadmin now.

bbunge
Posts: 2153
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: ZM Console blank white screen

Post by bbunge » Sun Sep 23, 2018 1:12 am

Well, if you are using NGINX you used the wrong install instructions.

Here are the instructions you need to use:
https://wiki.zoneminder.com/Ubuntu_Serv ... .2C_PHP.29

Best to start over with a fresh Ubuntu install. May I suggest that you stick with Ubuntu LAMP (with Apache, PHP7.2 and MySQL) and use the install script for that flavor. It will work best if you are learning Zoneminder. NGINX can be a pain...

Andy-VE4PER
Posts: 4
Joined: Sat Sep 22, 2018 8:21 pm

Re: ZM Console blank white screen

Post by Andy-VE4PER » Sun Sep 23, 2018 2:41 am

Yes the command line instructions in the link you quote includes installing nginx and I just had to completely remove that to get phpmyadmin back and get phpinfo to work properly. I re-installed apache2, php phpmyadmin all clean from scratch.

If I follow the steps in your quoted link can I expect that phpinfo, phpmyadmin AND zoneminder should work properly? or is there an additional tweak I need to ensure it will do that for all those applications to play nice?

The steps indicate to install nginx and mariadb-server; given latest experience I am hesitant to mess with mariaDB server and MySQL as I don't want to mess up the weather databases and phpmyadmin databases by changing it (not being at all familiar with mariadb-server and how it works under mysql). And nginx well I went through all the steps of editing and creating the conf files etc to undo them all and it still did not allow phpmyadmin to return to work nor did it allow phpinfo to display properly either; in the end complete removal was the only thing that worked. Unless I am missing a proper tweak or something.

OK so I am seeing that nginx is a separate and distinct www server installation that can run coincident with apache2 as long as the listening port is different from apache2's listening port from remarks here: https://stackoverflow.com/questions/230 ... -on-ubuntu
Having them both listen on the same port likely does not allow either one to work properly. hence the need to uninstall it to get phpmyadmin and phpinfo to work. However, I did have nginx listening on 8081 port and apache2 on 80 and still it did not work but there may have been other configs needed also.

The problem I am trying to fathom an answer to is how does phpmyadmin and phpinfo configurations work with either one and/or both of these servers?

Likewise, mariadb is a separate database from mysql from the remarks here: https://mariadb.com/kb/en/library/maria ... ith-mysql/ and again finding a correct database working tool for mariadb similar to phpmyadmin and MySQL, would seem to imply it would be installed and set to use nginx server rather than apache2 in order to keep them distinct and separate. It would seem that one would need to install a phpmariadbadmin that associated with nginx server and thus would create an phpmariadbadmin database in a mariadb database server similar to MySQLadmin does for phpmyadmin.

The confusing point arises when one tries to visualize how a single install of say php needs to be configured to work with both apache2 and nginx similtaneously.


UPDATE: it appears the link explaining mariadb is a separate database that can run simultaneously with MySQL is somewhat misleading; it is an improved version of MySQL and when it is installed it replaces the older mysql server and client. It preserves existing mysql databases and works with phpmyadmin as well. All existing databases appear to work normally so it is compatible with existing as well as newer databases. However the assumption that both will run simultaneously is incorrect.

I followed the install instructions step by step as outlined in recommended link. I did however NOT install nginx server at all and it appears it adapted to the apache2 installed and began working with that; at least it is displaying text on the zm console page now. Thanks for the tips and pointers; although I cant for certain say what worked to get it going.

It appears [SOLVED] was only temporary as when PC was restarted completely http://localhost/zm now results in an error ;
"Unable to connect to ZM db.SQLSTATE[HY000] [2002] No such file or directory"
and phpmyadmin also generates same errors when trying to connect to databases now. GRRRRR !

attempt to access mysql from command line (mysql -uroot -p ) generates ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) it appears installing mariadb did trash the mysql databases on PC restart.
Last edited by Andy-VE4PER on Sun Sep 23, 2018 6:42 am, edited 3 times in total.

Andy-VE4PER
Posts: 4
Joined: Sat Sep 22, 2018 8:21 pm

Re: ZM Console blank white screen

Post by Andy-VE4PER » Sun Sep 23, 2018 3:56 am

apt install php-fpm php-mysql fcgiwrap
Reading package lists... Done
Building dependency tree
Reading state information... Done
php-mysql is already the newest version (1:7.2+60ubuntu1).
fcgiwrap is already the newest version (1.1.0-10).
php-fpm is already the newest version (1:7.2+60ubuntu1).

bbunge
Posts: 2153
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: ZM Console blank white screen

Post by bbunge » Sun Sep 23, 2018 11:28 am

Apache or NGINX but not both
MySQL or Mariadb but not both

As I said before, wipe the system and start over with a clean Ubuntu install. I do not use phpadmin or phpinfo. Webmin is the management too! I use.

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests