View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 10 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject: Zoneminder R6.03
PostPosted: Tue Jul 06, 2010 8:27 am 
Offline
Joined: Tue Oct 11, 2005 11:55 am
Posts: 38
Does anyone have a write up on how to install zoneminder on R6.O3
I found a few old post but not sure how much still applies to the latest
ver. In one post it said installing via service menu 'mythzoneminder'
I checked it off but can't find that it installed
Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 12, 2010 9:51 pm 
Offline
Joined: Wed Jan 18, 2006 8:36 pm
Posts: 199
I posted that original message and I recently had to re-install my system. I did not keep good notes, but I believe I had to use about 90% of those steps. Not sure of your skills, but if you understand what I am trying to do, it should not be too bad.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 13, 2011 10:38 pm 
Offline
Joined: Wed Jan 18, 2006 8:36 pm
Posts: 199
Hard drive crashed, had to do this again:

Install the package:
Code:
pacman -S zoneminder


Initialize database:
Code:
/usr/lib/zm/bin/zminit


Add http to the video group
Code:
vigr
vigr -s


Append these two lines:
Quote:
kernel.shmall = 134217728
kernel.shmmax = 134217728

to /etc/sysctl.conf
Code:
sudoedit /etc/sysctl.conf

and run sysctl to make the settings take effect
Code:
sudo /sbin/sysctl -p /etc/sysctl.conf


edit /etc/lighttpd/lighttpd.conf
Code:
sudo /etc/lighttpd/lighttpd.conf

and uncomment mod_alias and then append the following lines:
Quote:
alias.url = (
"/cgi-bin" => "/data/srv/httpd/htdocs/cgi-bin/"
)

$HTTP["url"] =~ "^/cgi-bin" {
cgi.assign = ( "" => "" )
}

restart lighttpd
Code:
sudo killall lighttpd


Fix log permissions
Code:
mkdir /var/log/zm
sudo chown -R http:http /var/log/zm


Fix data directory permissions
Code:
sudo chown -R http:http /var/lib/zm


Fix permissions for images, events, sounds, etc
Code:
sudo chown http:http -R /home/httpd/html/zm



Configure logrotate to notify zoneminder when log files have been rotated:
Code:
sudoedit /etc/logrotate.d/zm


and add
Quote:
postrotate
/usr/lib/zm/bin/zmpkg.pl logrot
endscript

below in the /var/log/zm/*log section

Use you favorite web browser to configure zoneminder.

Edit: /zm not needed in alias URL; open_basedir not needed


Last edited by bobmyth on Fri Apr 15, 2011 4:54 pm, edited 1 time in total.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 14, 2011 5:14 am 
Offline
Joined: Mon Apr 10, 2006 3:48 pm
Posts: 997
Location: Lexington, Ky
Thanks for the great write up!

What kind of camera you are using? I had tired this once before but couldn't get it to work with an IP camera.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 14, 2011 9:15 pm 
Offline
Joined: Tue Aug 15, 2006 11:14 am
Posts: 1343
Location: Orlando FL
oh is that all those steps are so easy and logical I could have done them in my sleep.... :D

_________________
My System


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 15, 2011 4:59 pm 
Offline
Joined: Wed Jan 18, 2006 8:36 pm
Posts: 199
tscholl wrote:
What kind of camera you are using?


The IP cameras are tricky, not all of them are supported. I am using a capture card (Hauppage Impact VCB, bt878 chipset) with an analog camera. It meets my minimal needs.


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 13, 2011 2:38 pm 
Offline
Joined: Mon Apr 10, 2006 3:48 pm
Posts: 997
Location: Lexington, Ky
Well I did have this working but since upgrading to 6.04 the console is not working correctly. It has size problems and buttons sliders on some pages are missing.

I uncommented mod_alias in lighthttpd.conf, but can't remember where to append:

Quote:
alias.url = (
"/cgi-bin" => "/data/srv/httpd/htdocs/cgi-bin/"
)

$HTTP["url"] =~ "^/cgi-bin" {
cgi.assign = ( "" => "" )
}


It goes at the bottom of the of the lighthttpd.conf, correct?

The rest of the problem is related to some changes made in the php part of the lighttpd.conf but I'm not sure where.

The console starts but has size and button problems. And complains about time zone issues.
Code:
Warning: strftime() [function.strftime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EDT/-4.0/DST' instead in /data/srv/httpd/htdocs/zm/zm_html_view_console.php on line 89

Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EDT/-4.0/DST' instead in /data/srv/httpd/htdocs/zm/zm_html_view_console.php on line 267
Fri 13th May, 4:31pm    ZoneMinder Console - Running - v1.23.3    Load: 0.69 / Disk: 75%
0 Monitors
   Configured for Low Bandwidth    
     Options

Warning: strtotime() [function.strtotime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EDT/-4.0/DST' instead in /data/srv/httpd/htdocs/zm/zm_funcs.php on line 1304

This warning repeats 7 times


Any suggestions?


Last edited by tscholl on Tue May 17, 2011 9:47 am, edited 1 time in total.


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 17, 2011 7:04 am 
Offline
Joined: Wed Jan 18, 2006 8:36 pm
Posts: 199
tscholl wrote:
I uncommented mod_alias in php.ini but can't remember where to append:

Quote:
alias.url = (
"/cgi-bin" => "/data/srv/httpd/htdocs/cgi-bin/"
)

$HTTP["url"] =~ "^/cgi-bin" {
cgi.assign = ( "" => "" )
}



This goes in /etc/lighttpd/lighthttpd.conf, not php.ini. Hopefully this will help you.


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 17, 2011 9:55 am 
Offline
Joined: Mon Apr 10, 2006 3:48 pm
Posts: 997
Location: Lexington, Ky
My bad it was suppose to say lighthttpd.conf, and I updated my previous post to reflect this change.

Anyway just needed a sanity check here; it is appended at bottom of the lighthttpd.conf file correct?

I pretty much decided that this is a php issue and not zonemider but have no idea on how to fix it. I do know that some changes were made to lighthttpd in the update.

Thanks for catching my error.


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 18, 2011 12:12 am 
Offline
Joined: Mon Apr 10, 2006 3:48 pm
Posts: 997
Location: Lexington, Ky
Ok I figured out the "Warning time zone" messages.

I had to uncomment line 638 of the php.ini and add

America/Detroit after

date.timezone =

That fixes the time zone messages.

I still see some window problems on the Options screen but I can manually expand it and get to the buttons.


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu