New install

Forum for questions and support relating to the 1.30.x releases only.
Locked
Akilian
Posts: 4
Joined: Sun Sep 18, 2016 6:45 pm

New install

Post by Akilian »

Hello, I just installed ZM on Centos 7. I did everything on the "read me" file. My question is what is the url of the web page? I get the apache screen.
User avatar
knight-of-ni
Posts: 2406
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: New install

Post by knight-of-ni »

Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
Akilian
Posts: 4
Joined: Sun Sep 18, 2016 6:45 pm

Re: New install

Post by Akilian »

Thank you for your reply. This is what I get""This site can’t be reached localhost refused to connect." It's like the db isn't accessible.
Akilian
Posts: 4
Joined: Sun Sep 18, 2016 6:45 pm

Re: New install

Post by Akilian »

Also, I'm managing this from another workstation. So wouldn't localhost bring me to my ip?
Akilian
Posts: 4
Joined: Sun Sep 18, 2016 6:45 pm

Re: New install

Post by Akilian »

I'm a noob. I forgot about the firewall. They may want to add that to their documentation for others. Thanks, man.


firewall-cmd --set-default-zone=public
firewall-cmd --permanent --zone=public --add-service=http
firewall-cmd --permanent --zone=public --add-service=https
firewall-cmd --reload
User avatar
knight-of-ni
Posts: 2406
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: New install

Post by knight-of-ni »

Yes, just like Windows (dare I say it), Redhat distros ship with the firewall turned on.
You have to poke a hole in the firewall for any server function to work when attempting to access from a remote client.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
jk787
Posts: 4
Joined: Sun Sep 25, 2016 5:34 am

Re: New install

Post by jk787 »

Hi All

Back again. Having unsuccessfully tried to get Zoneminder working in a number of combinations (14.04 with 1.29 and 1.30) I finally settled on Ubuntu 16.04 with Zoneminder 1.30. The logic behind my decision was the “newest being most idiot proof”. This hasn’t proven to be quite true. My Ubuntu installs have been seamless with no issue however zoneminder has not been so good. I have installed Zoneminder as per the official documentation on the zoneminder site

(http://zoneminder.readthedocs.io/en/lat ... untu-16-04).

All went as per the document until step 7 when the console threw back the messages below:

root@john-VPCEB4J0E:~# a2enconf zoneminder
Enabling conf zoneminder.
To activate the new configuration, you need to run:
service apache2 reload
root@john-VPCEB4J0E:~# service apache2 reload

root@john-VPCEB4J0E:~# a2enmod cgi
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
Enabling module cgi.
To activate the new configuration, you need to run:
service apache2 restart

root@john-VPCEB4J0E:~# a2enmod rewrite
Enabling module rewrite.
To activate the new configuration, you need to run:
service apache2 restart

root@john-VPCEB4J0E:~# service apache2 restart
root@john-VPCEB4J0E:~# systemctl enable zoneminder
Synchronizing state of zoneminder.service with SysV init with /lib/systemd/systemd-sysv-install...
Executing /lib/systemd/systemd-sysv-install enable zoneminder
root@john-VPCEB4J0E:~# systemctl start zoneminder

root@john-VPCEB4J0E:~#



Having completed process as per the documentation (with the exception of the blue text above) I am unable to open either link from step 11. Both links result in “Server not found” error page.

I have carried out the steps in blue as per the wiki

(https://wiki.zoneminder.com/Ubuntu_Serv ... e_easy_way)

<Directory /usr/share>
AllowOverride All
Require all granted
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>

but again I get the same error page when I try to open a zoneminder console.

Opening a page with 127.0.0.1 returns the Apache 2 Ubuntu default page confirming (as per the text in the page) that the server is working properly.
Opening a page with 127.0.0.1/zm/ or localhost/zm/ returns a page with the following text on a white background

ZoneMinder is not installed properly: php's date.timezone is not set to a valid timezone

however the following output is taken directly from the console



[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
;date.timezone = Europe/Dublin


I have carried out all of the above (including a full reinstall of 16.04) three times just in case, but all to no avail. I am still unable to open a zoneminder console or verify the version of zoneminder installed. Any and all help very much appreciated.
User avatar
iconnor
Posts: 3276
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: New install

Post by iconnor »

Remove the ; in front of date.timezone.
jk787
Posts: 4
Joined: Sun Sep 25, 2016 5:34 am

Re: New install

Post by jk787 »

Many thanks for the help. I had to do a restart but I am now happily looking at a zoneminder console. Its always the obvious isn't it!
bbunge
Posts: 2956
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: New install

Post by bbunge »

OK, I have added "Make sure to remove the ; from the front of date.timezone" to the WIKI install procedures for Ubuntu...

Now we can hope people read it!
Locked